Cloudflare Launches Flagship: Native OpenFeature-Compliant Feature Flags Powered by Global KV
Cloudflare has introduced Flagship, a native feature flag service that integrates directly into Workers environments. Operating on Cloudflare's global KV infrastructure, the service supports complex targeting rules, consistent hashing for percentage rollouts, and multi-runtime OpenFeature SDKs.
Native Workers Architecture and Key-Value Delivery
Cloudflare Flagship brings feature flag evaluation directly to the edge. Rather than relying on external API calls that introduce network latency, Flagship evaluates targeting rules in-process inside Workers via a native runtime binding.
The service leverages Cloudflare's global KV infrastructure to distribute flag configuration data across the network. The Worker binding provides type-safe evaluation methods and implements automatic fallback to developer-defined defaults in the event of configuration retrieval issues.
OpenFeature Standardization and SDK Portability
Flagship is built to comply with OpenFeature, the Cloud Native Computing Foundation (CNCF) open standard for feature flag management. Developers can implement the service using the `@cloudflare/flagship` SDK across multiple JavaScript runtimes, including Cloudflare Workers, Node.js, and standard web browsers.
Because the SDK conforms to the OpenFeature provider specification, teams can migrate from legacy flag providers to Flagship by modifying a single line of configuration, eliminating the need to rewrite evaluation logic within application code.
Evaluation Rules, Hashing, and Varied Payloads
Flagship's evaluation engine handles granular routing and rollout strategies without requiring centralized state tracking.
- Targeting rules support sequential evaluation, logical AND/OR grouping, and 11 distinct comparison operators to segment traffic based on user attributes.
- Percentage rollouts use consistent hashing algorithms to guarantee deterministic, sticky assignments so that a specific user consistently receives the same flag variation.
- Flag variations support multiple data types, including booleans, strings, numbers, and structured JSON objects, enabling developers to ship entire configuration payloads via a single flag.
Management and Project Organization
Administration of flag configurations is managed through the Cloudflare dashboard. To prevent namespace collisions and support complex architectures, developers can organize flags into individual apps. This organizational structure allows teams to map flag groups directly to their corresponding microservices, environments, or projects.
LLM-First Documentation and Developer Tooling
Reflecting modern automated workflows, Cloudflare has optimized Flagship's developer resources for AI agents and LLMs. The documentation portal hosts dedicated indexes, including `llms.txt` and `llms-full.txt`, to facilitate efficient scraping and semantic search.
Furthermore, the documentation server supports a markdown-first API. Sending an `Accept: text/markdown` header or appending `.md` to documentation URLs bypasses heavy HTML payloads in favor of raw Markdown, optimizing context window usage for LLM agents. Cloudflare also provides Code Mode and domain-specific Model Context Protocol (MCP) servers to integrate Flagship configurations directly into agentic developer workflows.