Secret Menu
Overview
Section titled “Overview”The secret menu is a debug UI built into the React SDK that lets you toggle feature flags at runtime without using the dashboard. It’s activated by a customizable key sequence.
How It Works
Section titled “How It Works”- The secret menu is enabled in the Flags.gg dashboard under your environment settings
- A custom key sequence is configured (e.g., a Konami-style code)
- When the sequence is entered in the browser, the secret menu appears
- You can toggle any flag on or off
- Changes persist in
localStorageunder the keyflagsgg:overrides
Features
Section titled “Features”- Pagination — Handles large numbers of flags
- Reset — Clear all local overrides and return to API values
- Runtime toggling — No deploy needed to test flag combinations
- Local persistence — Overrides survive page reloads
Enabling the Secret Menu
Section titled “Enabling the Secret Menu”- Go to the Flags.gg dashboard
- Navigate to your project → agent → environment
- Enable the secret menu option
- Configure a custom key sequence
The FlagsProvider automatically loads the secret menu configuration from the API when it’s enabled.
Use Cases
Section titled “Use Cases”- Development — Test flag combinations without modifying the dashboard
- QA — Verify behavior with different flag states
- Demos — Toggle features during presentations
- Support — Enable debug features when troubleshooting