Switchflag
Getting Started

Create a Project

Set up a project with environments and API keys for your feature flags.

What is a project?

A project groups related feature flags together. Projects belong to an organization and are scoped by a unique slug (auto-generated from the name).

Create a project

  1. Navigate to your organization dashboard
  2. Click New Project
  3. Enter a project name (e.g. "Web App")

Default environments

Every new project comes with three environments:

EnvironmentPurpose
DevelopmentLocal development and testing
StagingPre-production validation
ProductionLive user traffic

Each environment has its own API key and independent flag configuration. A flag can be enabled in development but disabled in production — they're completely separate.

API keys

Each environment has a unique API key in the format:

sf_{environment}_{random}

For example: sf_development_abc123... or sf_production_xyz789....

You'll use this key to initialize the SDK. Find it in your project's Environments section.

API keys are environment-scoped — a development key can only access flags configured for the development environment. This prevents accidentally reading production flag state during development.

Next steps

  • Create a flag — define your first feature flag
  • API Keys — key format, rotation, and security best practices
  • Environments — how independent environment configs work