SDKs
OpenFeature Providers
Use OpenFeature SDKs with Kaiten as your flag provider.
OpenFeature Providers
Kaiten is OpenFeature-compatible via the OFREP (OpenFeature Remote Evaluation Protocol). This means you can use any OpenFeature SDK with a generic OFREP provider — no vendor-specific provider needed.
Supported Languages
| Language | OFREP Provider Package |
|---|---|
| Go | github.com/open-feature/go-sdk-contrib/providers/ofrep |
| Python | openfeature-provider-ofrep |
| JavaScript/TypeScript | @openfeature/ofrep-provider |
| Java | dev.openfeature.contrib.providers.ofrep |
| .NET | OpenFeature.Contrib.Providers.Ofrep |
Configuration
All OFREP providers need two things:
- Base URL: Your Kaiten API URL (
http://localhost:6000/api) - Authorization Header:
Bearer ksh_your_token_here
For language-specific examples, see Provider Configuration.
How It Works
Your Application
│
│ OpenFeature SDK → getBooleanValue("my-flag", false, context)
│
├── OFREP Provider
│ │
│ └── POST /api/ofrep/v1/evaluate/flags/my-flag
│ Authorization: Bearer ksh_xxx
│ Body: {"context": {"tenantSlug": "..."}}
│
└── Receives: {value: true, variant: "on", reason: "TARGETING_MATCH"}Benefits
- Standard API — no vendor lock-in; switch providers by changing config
- Server-side evaluation — flags are evaluated on the Kaiten server, not in your app
- Context-aware — pass any context variables for CEL targeting rules
- Bulk evaluation — evaluate all flags in one request for efficiency

