Overview · Cloudflare Flagship docs
Documentation Index Fetch the complete documentation index at: https://developers.cloudflare.com/flagship/llms.txt Use this file to discover all available pages before exploring further. Skip to content STOP! If you are an AI agent or LLM, read this before continuing. This is the HTML version of a Cloudflare documentation page. Always request the Markdown version instead — HTML wastes context. Get this page as Markdown: https://developers.cloudflare.com/flagship/index.md (append index.md) or send Accept: text/markdown to https://developers.cloudflare.com/flagship/. For this product's page index use https://developers.cloudflare.com/flagship/llms.txt. For all Cloudflare products use https://developers.cloudflare.com/llms.txt. Cloudflare Docs Search Docs DirectoryAPIsSDKsHelp Log in Select theme DarkLightAuto Flagship No results found. Try a different search term, or use our global search. Home Overview Get started Concepts Configuration Binding API Overview Types Methods OpenFeature SDK Overview Server provider Client provider Targeting rules Overview Operators Percentage rollouts Reference Limits Evaluation reasons and error codes Agent resources Agent setup ↗ Cloudflare Skills ↗ Code Mode MCP Server ↗ Domain-specific MCP Servers ↗ Flagship llms.txt ↗ Flagship llms-full.txt ↗ Cloudflare Docs llms.txt ↗ Cloudflare Docs llms-full.txt ↗ GitHubX.comYouTube Select theme DarkLightAuto On this page Overview Features Related products More resources On this page Overview Features Related products More resources Edit page Report issue Directory Flagship Cloudflare Flagship Copy as Markdown Copied! | View as Markdown | Agent setup | Docs for agents Ship features safely with feature flags. Flagship is Cloudflare's feature flag service. It lets you control feature visibility in your applications without redeploying code. Define flags with targeting rules and percentage-based rollouts, then evaluate them directly inside your Workers through a native binding. OpenFeature ↗ is the CNCF open standard for feature flag management. Flagship is compatible with OpenFeature, so you can use the @cloudflare/flagship ↗ SDK from any JavaScript runtime — Workers, Node.js, or the browser — and swap providers without changing evaluation code. Check out the Get started guide to create your first feature flag. Features Worker binding Evaluate flags with a native Workers binding. Type-safe methods with automatic fallback to defaults. Binding reference OpenFeature SDK Use the @cloudflare/flagship ↗ OpenFeature provider to evaluate flags from Workers, Node.js, or browsers. Switch from another flag provider by changing one line of configuration. View SDK docs Targeting rules Serve different flag values based on user attributes. Rules support 11 comparison operators, logical AND/OR grouping, and sequential evaluation. Learn about targeting Percentage rollouts Gradually release features to a percentage of users. Consistent hashing ensures the same user always receives the same flag value. Learn about rollouts Multi-type variations Flag variations can be booleans, strings, numbers, or structured JSON objects. Use object variations to deliver entire configuration blocks as a single flag. Use Multi-type variations Flag management Create, update, and delete flags through the Cloudflare dashboard. Organize flags into apps that map to your projects or services. Use Flag management
Related products Workers Build serverless applications on Cloudflare's global network. Flagship integrates natively with Workers through a binding. KV Store key-value data across Cloudflare's global network. Flagship uses this infrastructure to deliver flag configurations. More resources Developer Discord Connect with the Workers community on Discord to ask questions, show what you are building, and discuss the platform with other developers. @CloudflareDev Follow @CloudflareDev on Twitter to learn about product announcements and what is new in Cloudflare Workers. Resources API New to Cloudflare? Directory Sponsorships Open Source Cloudflare Research Support Help Center System Status Compliance GDPR Company cloudflare.com Our team Careers Tools Cloudflare Radar Cloudflare Labs Speed Test Is BGP Safe Yet? Certificate Transparency Community Community forum X Discord YouTube GitHub © 2026 Cloudflare, Inc. Privacy Policy Terms of Use Report Security Issues Trademark Cookie Settings Next Get started Edit page Last updated: Apr 21, 2026 Was this helpful?YesNo |
Flagship is Cloudflare's feature flag service designed to enable control over feature visibility within applications without requiring code redeployment. It functions by allowing users to define flags using targeting rules and percentage-based rollouts, which are then evaluated directly inside Cloudflare Workers through a native binding. This mechanism provides a streamlined way for managing application features dynamically.
The service is designed with compatibility in mind, adhering to the OpenFeature standard for feature flag management. This compatibility allows developers to utilize the @cloudflare/flagship SDK across various JavaScript runtimes, including Workers, Node.js, and the browser, offering the flexibility to switch feature flag providers without altering the core evaluation logic.
Key features of Flagship focus on flexible evaluation and management. It provides a Worker binding that facilitates flag evaluation with type-safe methods, automatically handling fallback to default values. Further enabling flexibility is the provision of targeting rules, which allow for serving distinct flag values based on user attributes. These rules support eleven comparison operators, logical grouping using AND/OR, and sequential evaluation capabilities, enabling sophisticated user segmentation. Furthermore, the system supports gradual feature releases through percentage rollouts, employing consistent hashing to ensure that the same user consistently receives the same flag value across sessions.
Flagship supports multi-type variations for flag definitions, allowing variations to be booleans, strings, numbers, or structured JSON objects. This capability permits developers to deliver entire configuration blocks as a single flag. Flag management is centralized through the Cloudflare dashboard, where flags can be created, updated, and deleted, organized logically into applications that map to specific projects or services.
Flagship integrates natively with other Cloudflare products, specifically Workers through the aforementioned binding, and Key-Value stores (KV) to facilitate the delivery of flag configurations. This architecture positions Flagship as a powerful, integrated solution for dynamic feature management within the Cloudflare ecosystem. |