Feature Flag Portability
A feature flag is a named switch evaluated at runtime: show the new checkout to 10% of users, or enable an export button for one customer. Commercial flag services such as LaunchDarkly, Statsig, Split, and Flagsmith, and open-source ones such as Unleash and Flipt, each ship their own SDK. Application code calls that SDK wherever a flag is checked.
OpenFeature is a specification and set of SDKs that standardises those calls. It joined the Cloud Native Computing Foundation in 2022 and has been at incubating level since December 2023. Application code asks the OpenFeature client for a boolean, string, number, or object value. A plug-in, which the specification calls a provider and this article will call an adapter, translates the request for the flag system behind it.
In principle, changing suppliers then means registering a different adapter at startup instead of rewriting every flag check. Most major vendors and open-source systems publish adapters for common languages.
The interface is portable. Much of what surrounds it is not.
What Teams Overestimate
The standard covers how code asks for a flag value. It does not cover where flags are defined. Targeting rules, segments, percentage rollouts, approvals, and audit history live in each vendor's control plane in proprietary formats. Moving 400 flags to another system still means recreating or converting 400 definitions.
Percentage rollouts hide a sharper problem. Each system hashes a user identifier into a bucket with its own algorithm and salt. A user in the 10% group on one platform may fall outside it on another, so a migration mid-rollout reshuffles who sees what. The OpenFeature project's own mid-2026 update listed inconsistent hashing across adapters for its flagd engine as open work, which, frankly, shows how hard bucketing is to standardise.
Vendor extras also sit outside the common interface. Experiment analysis, automatic exposure logging, offline bootstrapping on mobile, and specialised flag types are reached through the native SDK. An adapter may expose some through hooks or the tracking call, and often not all.
Several moving parts support the standard. The evaluation context carries user and request attributes, including a targeting key. Hooks run before and after evaluation for logging or tracing. Events report readiness and configuration changes. The OpenFeature Remote Evaluation Protocol, OFREP, defines an HTTP interface so one generic adapter can talk to any compliant backend, and version 0.3.0 added streaming updates. flagd is the project's reference evaluation engine. Specification v0.9.0, released in 2026, included three breaking changes, a reminder that the standard is still pre-1.0.
Adopting It Sensibly
Wrap First, Switch Later
Adopt the neutral interface while keeping your current vendor. Install the OpenFeature SDK, register that vendor's adapter, and replace direct SDK calls service by service. A codemod or search-and-replace script handles most boolean checks. A codebase with 1,500 to 2,000 call sites typically takes a few engineer-weeks, mostly on testing. Behaviour stays the same because the same backend still decides. Once this is done, a later supplier change touches startup code and context mapping, not business logic.
Standardise The Evaluation Context
Decide one schema for context attributes: targeting key, organisation ID, plan, region, app version. Populate it in middleware so every evaluation receives the same fields. Vendors name things differently, and one may expect "key" where another wants "userId". The adapter maps your schema to theirs. Without a fixed schema, rules written against attribute names in one system fail silently in the next. You set the names once, fill them centrally, and targeting rules stop depending on who wrote the call.
Keep Flag Definitions Exportable
Store a manifest of flags in version control: name, type, default value, owner, and expiry date. Tools in the OpenFeature project can generate typed accessors from such a manifest. Export vendor-side definitions on a schedule through the vendor's API or Terraform configuration. This does not make rules portable by itself, but it gives a migration script something structured to read instead of a web console.
Verify With Parallel Evaluation
The Multi-Provider utility, available in most OpenFeature SDKs with the JavaScript version furthest along, can evaluate one flag against two backends and report disagreements. Run old and new systems side by side for a week, with the old one authoritative, and log mismatches. Expect differences on percentage rollouts and on rules using operators the new system handles differently. Resolve those, then flip which backend is authoritative.
Two Team Scenarios
A backend-heavy SaaS company. Sixty engineers maintain 14 services with about 400 flags and roughly 1,900 flag checks, all through one vendor's SDK. A renewal quote prompts a move to a self-hosted open-source system. They first convert to the neutral interface on the existing vendor, taking two sprints. Then they recreate flag definitions with a script that reads the old vendor's API, and run parallel evaluation. About 3% of evaluations disagree, nearly all on flags in partial rollout. They finish or reset those rollouts to 0% or 100% before cutover, since matching buckets across systems is not possible. The switch itself is a configuration change per service. The quiet cost was the definitions, not the code.
A mobile app team. A consumer app relies on its vendor for experiments with automatic exposure events, plus cached flag values so the app starts offline. The team tests the OpenFeature adapter and finds exposure logging needs custom hooks and the offline bootstrap option is not surfaced. They stay on the native SDK and put it behind a thin internal interface of their own with five methods. That gives them one place to change later without adopting a pre-1.0 standard on the client. Less elegant. Fit for their case.
Approaches Compared
| Concern | OpenFeature Interface | Direct Vendor SDK | What Still Needs Work When Switching |
|---|---|---|---|
| Flag checks in code | Same calls across backends | Vendor-specific calls throughout | Startup registration and context mapping only, with the neutral interface |
| Flag definitions and rules | Not covered | Proprietary format | Recreate or convert every flag |
| Percentage rollouts | Bucketing left to the backend | Vendor hashing | Users re-bucketed unless rollouts are completed first |
| Experiments and analytics | Basic tracking call and hooks | Full native feature set | Exposure events, metrics, and history do not transfer |
| New vendor features | Available when the adapter adds them | Available at release | Possible lag behind the native SDK |
| Stability | Specification pre-1.0, breaking changes possible | Vendor-managed versioning | Two dependencies to upgrade instead of one |
Common Mistakes
Reaching around the abstraction. Once a few files import the vendor SDK directly for a special feature, the portability benefit erodes. Put vendor-specific calls in one module and name it honestly.
Assuming adapters are equal. Some are written by the vendor and track the native SDK closely. Others are community-maintained and trail behind. Check the last release date and open issues before depending on one, and it rarely takes more than ten minutes.
Ignoring defaults. Every evaluation call takes a default returned when the backend is unreachable or the flag is missing. During a migration, missing flags are common, so wrong defaults become live behaviour.
Migrating during active rollouts or experiments. Finish them, record results, and move flags in a settled state.
Treating portability as the only goal. Flag debt, meaning stale flags nobody removes, causes more day-to-day trouble than supplier lock-in. An expiry date on each flag does more for most codebases.
FAQ
What is OpenFeature?
An open specification and SDK set, hosted by the Cloud Native Computing Foundation, that gives applications one vendor-neutral way to evaluate feature flags across languages.
Does OpenFeature replace LaunchDarkly or similar services?
No. It is the interface your code calls. A flag management system, commercial or open source, still stores flags and decides values.
Can I switch feature flag vendors without code changes?
Flag checks can stay the same if they use the neutral interface. You still change startup configuration, map context attributes, and rebuild flag definitions in the new system.
Is OpenFeature ready for production?
Many organisations run it in production. The specification is below version 1.0, and v0.9.0 in 2026 carried breaking changes, so pin versions and read release notes.
What is OFREP?
The OpenFeature Remote Evaluation Protocol, an HTTP interface that lets a single generic adapter work with any backend supporting it, reducing the need for a separate adapter per vendor.
Author's Insight
Reading the specification beside vendor documentation, the standard solves the part of lock-in that lives in source code and leaves the part that lives in configuration and data. For server-side services with many plain on-off checks, that code layer is the bulk of the switching cost, so the neutral interface pays for itself at the first migration. For experiment-heavy or client-side products, the unported pieces carry more weight, and a thin internal wrapper may serve as well. Google building a cloud flag service directly on the standard and flagd in 2026 suggests the interface is settling in as common ground. The honest question for any team is which layer holds its own lock-in.
Final Thoughts
- OpenFeature standardises how code evaluates flags, with vendor adapters behind a common interface.
- Flag definitions, targeting rules, rollout bucketing, and experiment data remain vendor-specific and must be migrated separately.
- Adopt the interface on your current vendor first, so a later switch avoids touching business logic.
- Fix one evaluation context schema and keep a version-controlled flag manifest.
- Use parallel evaluation to find mismatches, and complete percentage rollouts before cutover.
- The specification is still pre-1.0, so pin versions. Check adapter maintenance and feature coverage for your vendor before committing.