Skip to content
Docs

SDKs

There are multiple ways to use Vercel Flags, depending on your framework and how much control you need.

FeatureFlags SDKOpenFeatureCore Library
Framework supportNext.js, SvelteKitAnyAny
TypeScriptFull inferenceStandard typesFull types
Flags ExplorerAutomaticManual setupManual setup
Precompute (static pages)YesNoNo
Best forMost applicationsProvider portabilityCustom setups

Use the Flags SDK if you're building with Next.js or SvelteKit. It provides the best developer experience with automatic integration for Flags Explorer, precompute for static pages, and framework-specific optimizations.

Use OpenFeature if you need a vendor-neutral API that allows switching between flag providers without code changes, or if you're already using OpenFeature in your stack.

Use the Core Library if you're working outside of supported frameworks, building custom tooling, or need direct access to the evaluation engine.

The Flags SDK and OpenFeature are both provider-agnostic. They don't evaluate flags themselves, but instead delegate to a provider. The @vercel/flags-core library is that provider for Vercel Flags.

The difference between the Flags SDK and OpenFeature is scope. The Flags SDK is designed for specific frameworks like Next.js and SvelteKit, so it can offer deeper integrations like Flags Explorer and precomputation. OpenFeature is a broader standard that works across languages and frameworks, but leaves those framework-specific capabilities to you.

Both have adapters that connect them to @vercel/flags-core: @flags-sdk/vercel for the Flags SDK, and @vercel/flags-core/openfeature for OpenFeature.

All integration methods authenticate with Vercel OpenID Connect (OIDC) by default. Vercel deployments receive the OIDC token automatically. For local development, run vercel link and vercel env pull so the SDK can authenticate with the linked project.

For manual credentials, such as reading flags from another project or running outside Vercel, create an SDK Key and store it in an environment variable such as FLAGS.

Set the separate FLAGS_SECRET environment variable when you use Flags Explorer for secure overrides.

Last updated June 24, 2026

Was this helpful?

supported.