1. Create a flag
- Navigate to your project in the OmniFlags dashboard.
- Click New flag. Set the key (e.g.
charge-delivery-fee), type (Boolean), and category (Release). - In the Targeting tab, enable the flag and set rollout to
100%.
Flag keys are scoped to their project. The SDK key you reference in code is
{projectKey}.{flagKey}, for example checkout.charge-delivery-fee.2. Copy your SDK key
Go to Settings → Environments and copy the SDK key for the environment you’re targeting. SDK keys are environment-scoped. Use separate keys for development, staging, and production.3. Install and initialise the SDK
- React (Vite / CRA)
- Next.js
- React Native
- .NET
OmniFlagsProvider. It fetches the flag snapshot and makes the client available to all descendant components.4. Evaluate your flag
- React
- React Native
- .NET
Next steps
- Configure targeting rules to roll out to specific users or segments.
- Use traffic splits to A/B test multiple values.
- Read the evaluation reference to understand exactly how the SDK resolves a flag value.