Getting Started
1. Create an account
Section titled “1. Create an account”Sign up at flags.gg and create your first project.
2. Create a project
Section titled “2. Create a project”From the dashboard, create a new project. Each project can have multiple agents and environments.
3. Get your credentials
Section titled “3. Get your credentials”Every SDK requires three identifiers:
| Credential | Description |
|---|---|
| Project ID | Identifies your project |
| Agent ID | Identifies the agent (application or service) |
| Environment ID | Identifies the environment (production, staging, etc.) |
You can find these in the dashboard under your project settings.
4. Create a flag
Section titled “4. Create a flag”In your project dashboard, create a feature flag and toggle it on or off.
5. Install an SDK
Section titled “5. Install an SDK”Pick the SDK for your stack:
Frontend
Section titled “Frontend”| SDK | Install |
|---|---|
| React | pnpm add @flags-gg/react-library |
| Next.js | pnpm add @flags-gg/react-library |
Backend
Section titled “Backend”| SDK | Install |
|---|---|
| Go | go get github.com/flags-gg/go-flags |
| Rust | cargo add flags-rs |
| Python | pip install flags-gg |
| PHP | composer require flags-gg/flags-php |
| C# | dotnet add package Flags.GG |
| Swift | Add via Swift Package Manager |
| Kotlin | implementation("gg.flags:flags-kotlin:1.0.0") |
| Ruby | gem install flags-gem |
6. Check a flag
Section titled “6. Check a flag”Every SDK follows the same pattern — initialize a client with your credentials, then check flags:
client.is("my-feature").enabled()See individual SDK pages for language-specific examples.