The 8 best free and open-source feature flag services

The 8 best free and open-source feature flag services

The benefits of feature flags are numerous. They help you mitigate risk, test changes in production, manage access, and most important of all, ship faster.

While it's tempting to build your own tools, there's no shortage of feature flag services with decent free tiers, or open-source feature flag tools you can self-host. These are the best and most popular right now.

What features do you need in an open-source feature flag tool?

A good open-source feature flag tool gives you control over how and when users see new features. Most solid tools include:

  • Boolean and multivariate flags for toggling features on/off or serving multiple variations
  • User targeting and segmentation to roll out features to specific groups
  • Percentage rollouts for gradually releasing features to a growing share of users
  • SDKs for your stack (JavaScript, Python, React, Go, mobile, etc.)
  • Self-hosting options so you keep full control of your data

More advanced tools go further with:

  • A/B testing and experimentation built on top of feature flags with statistical analysis
  • Product analytics integration so you can measure the impact of flag changes on user behavior
  • Remote configuration to change app settings without deploying new code
  • Scheduled flag changes for time-based releases
  • Audit logs and permissions for team-level control over who can change flags
  • Local evaluation to check flags without network requests for faster performance
What are the best open-source feature flag tools? The short version
ToolLicenseFree self-hosted editionFree hosted plan
PostHogMIT (open core)Unsupported, no multi-environment support1M flag requests a month
GrowthBookMIT (open core)1 project, unlimited users and flagsUp to 3 users, 1 project
FlagsmithBSD 3-ClauseNo request limits50k requests a month, 1 team member
UnleashAGPLv31 project, 2 environmentsNone (14-day trial)
FliptFair Core License (v2), GPL-3.0 (v1)Git-native, no databaseNone
FlipperMITRuby gem with every gate type2 seats, 5 flags
FeatBitMITNo limits on seats, MAUs, or projectsUp to 1,000 monthly active users
FeatureHubApache 2.0 with Commons ClauseIncludes SSONone (30-day trial)

PostHog is the pick if you want flags tied to the rest of your product data. GrowthBook is best if you already have a data warehouse. Unleash and Flagsmith are flags-first tools you can self-host or buy hosted, and Flipt is the one to look at for Git-native flags. Flipper is Ruby-only. FeatBit has no limits on seats, MAUs, or projects in its free edition, and FeatureHub includes SSO in its open-source version. All eight can be self-hosted for free.

Here's how the most popular open-source feature flag tools compare:

1. PostHog

  • Who it's for: Product engineers and startups who want feature flags tied to analytics, session replay, experiments, and error tracking in one place.
  • Who it isn't for: Teams that need first-class environments (PostHog uses projects with flag syncing instead) or a supported self-hosted deployment.
  • License: MIT (open core – the ee/ directory has a separate enterprise license)

PostHog

What is PostHog?

PostHog is your product's context layer, and feature flags are one of the things writing to it. They sit alongside product analytics, session replay, A/B testing, user surveys, error tracking, AI observability, and a lot more, all tied to the same users. A data warehouse and data pipelines connect it to the business data you keep elsewhere.

It's a popular alternative to LaunchDarkly and analytics tools like Amplitude.

PostHog's feature flags enable conditional rollouts, multivariate flags, JSON payloads, scheduled changes, local evaluation, and more. They power its A/B testing features, so you can test product changes for their impact on key metrics.

What does PostHog include?

Which SDKs does PostHog support?

  • Client-side: JavaScript, React Native, React, Android, iOS, Flutter, Remix, Angular, Next.js, Svelte, Unity
  • Server-side: Node.js, Python, PHP, Ruby, Go, Java, .NET, Elixir, Rust

You can also evaluate feature flags using PostHog's API from any language that can make HTTP requests.

How much does PostHog cost?

PostHog's free tier includes 1 million feature flag requests per month. After that, you pay $0.0001 per request, with costs decreasing the more you use. You can set billing limits to avoid surprise bills – see the pricing page for more info.

PostHog's core is open source under the MIT license, and feature flags are part of the self-hosted deployment, though multi-environment support is Cloud-only. Self-hosted PostHog is unsupported, so we recommend the free Cloud tier for most teams.

Bottom line

PostHog is the best choice if you want feature flags alongside product analytics, session replay, A/B testing, and more in a single platform. Its generous free tier makes it especially appealing for startups and scaleups.

Add feature flags with one command

The wizard sets up example feature flags in your codebase, ready to roll out.

PostHog Wizard hedgehog

2. GrowthBook

  • Who it's for: Data and engineering teams that already have a data warehouse and want flags and experiments analyzed on top of it.
  • Who it isn't for: Teams that want more than one project on the free plans, or the visual editor and advanced statistics without paying.
  • License: MIT (open core – the enterprise directories have a separate commercial license)

GrowthBook

What is GrowthBook?

GrowthBook is a warehouse-native, open-source feature flagging and experimentation platform built to help companies make better data-driven decisions.

It supports most major SQL data sources, and on paid plans there's a code-free AI visual editor that less technical users can use to build experiments.

What does GrowthBook include?

  • Flags and rollouts: Feature flags with advanced targeting, gradual rollouts, and experiments.
  • Local evaluation: Its SDKs evaluate flags locally, with no network requests.
  • Warehouse-native experiments: Experiments are analyzed on top of your own warehouse, with Bayesian and frequentist statistics on every plan.
  • Product analytics: Generally available since version 5.0 in July 2026.
  • Agent access: An official MCP server on every plan, hosted on Cloud or run locally when you self-host.

Which SDKs does GrowthBook support?

  • Client-side: JavaScript, React, Next.js, Vue, Android (Kotlin), iOS (Swift), Flutter, React Native, Roku.
  • Server-side: Node.js, PHP, Ruby, Python, Go, Java, C#, Elixir, Rust.
  • Edge: Cloudflare Workers, Fastly Compute, Lambda@Edge.

How much does GrowthBook cost?

GrowthBook's open-source edition is free to self-host with unlimited users, flags, and experiments, limited to one project. The cloud-hosted Starter plan is free for up to 3 users and one project.

If you need advanced features like CUPED variance reduction, the AI Visual Editor, or multi-arm bandits, you'll need the cloud Pro plan at $40 per seat per month, for up to 30 users and 3 projects. If you self-host, those features need an Enterprise license.

Bottom line

GrowthBook is the best fit for teams that already have a data warehouse and want feature flags and experiments analyzed on top of it. Its free editions are limited to one project.

3. Flagsmith

  • Who it's for: Engineering teams that want feature flags and remote config they can self-host, on-premises if needed.
  • Who it isn't for: Teams that need scheduled flags, audit logs, or role-based access for free, or more than one team member on the free cloud plan.
  • License: BSD 3-Clause

Flagsmith

What is Flagsmith?

Flagsmith is a feature flag tool that lets you test and deploy new functional and visual changes to users without pushing updates to code.

Every flag can carry a remote config value (a string, number, boolean, or JSON) alongside its on/off state, so you can alter an app in real-time without waiting for app store approval.

Its server-side SDKs support local evaluation, and Flagsmith's cloud serves flags through an Edge API that routes each request to the closest of its 8 data centers. Scheduled flags are on paid plans.

What does Flagsmith include?

  • Flags and remote config: Feature flags with remote config values across web, mobile, and server-side apps, with segment rules for targeting.
  • Evaluation: Local or remote evaluation in server-side SDKs, plus the Edge API on Flagsmith's cloud.
  • Experimentation (beta): Native A/B testing with a built-in Bayesian statistics engine, in the open-source build as well as on cloud.
  • Deployment: Cloud, private cloud, or fully on-premises.
  • Agent access: An MCP server, in early release, hosted for cloud customers or run yourself.

Which SDKs does Flagsmith support?

  • Client-side: JavaScript, React, React Native, Next.js, Android, iOS, Flutter.
  • Server-side: Node.js, Python, Java, .NET, Ruby, PHP, Go, Rust, Elixir.

How much does Flagsmith cost?

Flagsmith's cloud free plan includes 50,000 requests per month for 1 team member and 1 project. The Start-Up plan is $45 per month ($40 if billed yearly) for up to 1 million requests and 3 team members, and Scale-Up is $300 per month ($250 if billed yearly) for 5 million or more. Enterprise and on-premises pricing is available for larger teams.

The open-source self-hosted version is free with no API request limits, though audit logs, role-based access control, SSO, change requests, and scheduled flags need the Enterprise edition.

Bottom line

Flagsmith is a solid open-source option for teams that need feature flags with remote configuration and flexible deployment options, including on-premises hosting. Its free cloud tier is limited to a single user, but the self-hosted version has no request limits.

4. Unleash

  • Who it's for: Engineering teams that want to self-host feature flags and keep flag evaluation inside their own infrastructure.
  • Who it isn't for: Teams that want a free hosted plan, or more than one project and two environments without paying.
  • License: AGPLv3 from v8 in June 2026 (Apache 2.0 before). The SDKs keep their permissive licenses.

unleash

What is Unleash?

Unleash is a flag service with a strong community. It describes itself as the largest open-source feature flag solution on GitHub. It has 17 official SDKs, and there's a large selection of community-maintained SDKs for less popular frameworks, too.

Unleash appeals to privacy-conscious organizations because its backend SDKs evaluate flags locally, so user data stays inside your application. Frontend SDKs send context to Unleash Edge or the Unleash server instead, so that data only stays in your infrastructure if you self-host Unleash or Unleash Edge.

You can use it to define targeting rules, gradual rollouts, and custom activation strategies, and it integrates with tools like Datadog, Microsoft Teams, and Slack, with Jira Cloud on paid plans.

What does Unleash include?

  • Flags and strategies: Feature flags with variants, targeting rules, gradual rollouts, and custom activation strategies.
  • Local evaluation: Backend SDKs evaluate flags locally and cache flag data in memory.
  • Agent access: An MCP server, generally available since June 2026.

Which SDKs does Unleash support?

  • Client-side: JavaScript, Android, Flutter, iOS, Next.js, React, React Native, Svelte, Vue.
  • Server-side: Go, Java, Node.js, PHP, Python, Ruby, Rust, .NET.
  • Community maintained: Angular, Clojure, C++, ColdBox, Dart, Elixir, Haskell, NestJS, Solid, Symfony.

How much does Unleash cost?

Unleash's open-source edition is free to self-host with no seat limit, but it's limited to one project and two environments. There's no free hosted plan, only a 14-day trial.

The Pay-As-You-Go plan costs $75 per seat per month, hosted by Unleash or self-hosted (with a 5-seat minimum when self-hosted). Custom Enterprise pricing is available for annual contracts and dedicated support.

Bottom line

Unleash is a flags-first tool with extensive SDK support and a large community. Local evaluation in its backend SDKs makes it a strong choice for organizations with strict data requirements, though the free edition is limited to one project and two environments.

5. Flipt

  • Who it's for: Teams that want Git-native feature flags, with flags stored in a repository instead of a database.
  • Who it isn't for: Teams that want a hosted service (Flipt Cloud shut down in August 2025) or an open-source license on the latest version.
  • License: Fair Core License for v2, with each version becoming MIT after two years.

flipt

What is Flipt?

Flipt is a popular self-hosted option for feature flagging. Its core edition is free, and optional paid Pro and Enterprise plans add more features. It supports all basic feature flag use cases, such as rolling out features based on segments (e.g. new users, email, or country), multiple variations, and percentage thresholds for rollouts.

Flipt v2 is Git-native: flags live in a Git repository, so it needs no database. The older, database-backed v1 still gets releases.

Flipt v1 is open source under GPL-3.0, while the v2 server is source-available under the Fair Core License. The SDKs are MIT licensed.

What does Flipt include?

  • Flags and rollouts: Flags with variants, segments, and percentage thresholds for rollouts.
  • Git-native storage: v2 stores flags in Git repositories. Git provider integrations and pull requests from the UI are on Pro.
  • Local evaluation: Client-side SDKs keep a local copy of your flag rules and evaluate them in your application.
  • Agent access: MCP servers for v1 and v2.

Which SDKs does Flipt support?

  • Client-side (local evaluation): JavaScript, React, Python, Go, Java, Ruby, Dart (Flutter), C#, Swift, Android (Kotlin).
  • Server-side (REST): Node/TypeScript, Python, Go, Rust, Java, PHP, C#.

How much does Flipt cost?

Flipt's Open Source tier is free forever. Flipt Pro costs a flat $200 per month for up to 10 instances, and adds Git provider integrations, pull requests from the UI, and integrated secrets management. Enterprise plans have custom pricing. There's no hosted version.

Bottom line

Flipt is the pick for teams that want feature flags managed like code, in a Git repository. Check the license first as the current version is source-available rather than open source.

6. Flipper

  • Who it's for: Ruby on Rails teams that want feature flags inside their own app.
  • Who it isn't for: Teams working in any language other than Ruby.
  • License: MIT (Flipper Pro is licensed separately)

flipper

What is Flipper?

Flipper is the open-source Ruby gem behind the feature flag platform used by GitHub. It's maintained by a small team who looked after it while they worked at GitHub, and who now also run Flipper Cloud.

It only supports Ruby applications.

What does Flipper include?

  • Six gate types: Boolean, actors, groups, percentage of actors, percentage of time, and expressions.
  • Local checks: Flag checks are evaluated against local data, with no network request for each check. Flipper Cloud syncs flag changes in the background.
  • Deployment: A free gem you run in your own app, or Flipper Cloud for a hosted UI. Flipper Pro, in early access, is the Cloud UI self-hosted in your Rails app.
  • Agent access: Flipper Cloud has an MCP server.

Which SDKs does Flipper support?

Ruby only. Other languages can read flags through its HTTP API.

How much does Flipper cost?

The open-source gem is free and has every gate type. Flipper Cloud offers a free plan (2 seats, 5 flags) and fixed-price paid tiers: Bronze at $49/month (up to 10 seats), Silver at $149/month (up to 25 seats), and Gold at $299/month (up to 50 seats). Custom plans are available for larger teams needing higher seat limits, extended retention, or custom terms. Flipper Pro, in early access, costs $1,999 per year.

Bottom line

Flipper is the best feature flag tool for Ruby on Rails teams. Its developer experience is exceptional, and its fixed-price Cloud plans are straightforward. However, it's Ruby-only, which limits its audience.

7. FeatBit

  • Who it's for: Teams that want a self-hosted flag tool with no limits on seats, MAUs, or projects, especially if they work in .NET.
  • Who it isn't for: Teams that need SSO, flag scheduling, or change approvals for free, or a PHP SDK.
  • License: MIT (some features need a license key)

featbit

What is FeatBit?

FeatBit is an open-source feature flag and A/B testing tool. It supports custom user segments and rolling out by percentages, with feature flag scheduling on its Enterprise license. Flag usage and experiment data can be exported to tools like Segment, and it integrates with Datadog, Grafana, and New Relic.

FeatBit is designed for self-hosting, with support for Helm charts, Terraform, and OpenTelemetry for observability. It has three deployment options with the same core feature flag functionality: Standalone (Postgres only), Standard (Postgres or MongoDB, plus Redis for caching and messaging), and Professional (adds Kafka and ClickHouse for high-volume analytics). These are infrastructure setups, not pricing plans.

There's also FeatBit Cloud, a hosted version with a free plan for up to 1,000 monthly active users.

What does FeatBit include?

  • Flags and targeting: Feature flags, user segments, and percentage rollouts in the free edition.
  • Experimentation: A/B testing with built-in Bayesian analysis.
  • Deployment: Self-hosted with Docker Compose or the official Helm chart, or hosted on FeatBit Cloud.
  • Standards: OpenFeature providers for JavaScript, Android, Node.js, .NET, Java, Python, and Rust.
  • Agent access: An MCP server, in beta.

Which SDKs does FeatBit support?

  • Client-side: JavaScript/TypeScript, React, React Native, Android, .NET, plus a community-maintained iOS SDK.
  • Server-side: Node.js, .NET, Java, Python, Ruby, Go, Rust.

How much does FeatBit cost?

The self-hosted Foundation tier is free, with no limits on seats, MAUs, or projects. It includes feature flags, targeting, audit logs, and experimentation. SSO, flag change approvals, scheduling, and shareable segments need the Enterprise license, which costs $3,999 per year. Advanced role-based access control is a $600-per-year add-on. Enterprise Premium adds more capabilities and dedicated support at custom prices.

Bottom line

FeatBit is a strong choice for teams that want a feature-rich, self-hosted feature flag tool with a generous free tier. Its .NET foundation and enterprise-grade scalability make it appealing for larger organizations.

8. FeatureHub

  • Who it's for: Teams that want simple, self-hosted feature flags and remote config, with SSO included in the open-source version.
  • Who it isn't for: Teams that want a free hosted plan (the hosted version only has a 30-day trial), or an OSI-approved open-source license.
  • License: Apache 2.0 with the Commons Clause (SDKs are MIT)

featurehub

What is FeatureHub?

FeatureHub is a self-hosted feature flag and remote config tool. It streams flag changes to your SDKs, and the API key you use sets whether flags are evaluated in your app or on the FeatureHub server.

The server license is Apache 2.0 with the Commons Clause, which stops you from selling FeatureHub or a service built on it. That makes it source-available rather than open source, though you can still self-host it for free. The SDKs are MIT licensed.

What does FeatureHub include?

  • Flags and config: Boolean flags, plus number, string, and JSON values for remote configuration.
  • Rollouts: Split targeting strategies with percentage rollouts.
  • Evaluation: Client-side or server-side evaluation, set by the API key you use.
  • Sign-in: Google, Microsoft, GitHub, Keycloak, Okta, generic OAuth2, and SAML.

Which SDKs does FeatureHub support?

  • Client-side: JavaScript, React, SolidJS, Flutter (Dart), iOS (Swift), Android (via the Java SDK).
  • Server-side: Node, Java, C#, Go, Python, Ruby.

How much does FeatureHub cost?

FeatureHub's hosted version includes all the open-source features and costs $4.99 per user per month, plus API request charges: $0.38 per 10,000 streaming requests, $0.35 per 10,000 REST requests, and $0.33 per 10,000 test requests. A 30-day free trial with 10,000 API requests is included.

Bottom line

FeatureHub is a solid, no-frills, self-hosted feature flag tool with a straightforward pricing model. Its smaller community and more limited integrations mean it's best suited for teams that value simplicity and just need the basics done well.

Which open-source feature flag tool should you choose?

  • Want feature flags connected to the rest of your product data, from analytics to session replays to errors, and manageable by your agents through the MCP? Go with PostHog.
  • Already have a data warehouse and want feature flags combined with powerful experimentation? Choose GrowthBook.
  • Want a flags-first tool with a large community and local evaluation in your backend SDKs? Choose Unleash.
  • Need open-source feature flags with remote configuration and on-premises hosting? Try Flagsmith.
  • Want Git-native flag management, with flags stored in a repository? Flipt is for you.
  • Building with Ruby on Rails and want the best developer experience? Flipper is purpose-built for your stack.
  • Need a self-hosted, enterprise-grade tool with a generous free tier? FeatBit has no limits on seats, MAUs, or projects on its free Foundation tier.
  • Want a simple, no-frills self-hosted tool with cloud-native architecture? FeatureHub covers the basics well.

Is PostHog right for you?

Here's the (short) sales pitch.

We're biased, obviously, but we think you'll love PostHog if:

  • You value transparency (we're open source and open core)
  • You want tools to ship, track, and analyze new features – like feature flags, A/B testing, analytics, and session replays
  • You want your coding agent to create and manage flags through the MCP
  • You want to try before you buy (we're self-serve with a generous free tier)

It's completely free to get started – no credit card required. Our setup wizard handles configuration in minutes, or you can check out our docs to do it yourself.

Add feature flags with one command

The wizard sets up example feature flags in your codebase, ready to roll out.

PostHog Wizard hedgehog

Frequently asked questions

What does it mean for PostHog to be your product's context layer?

It means your feature flags sit next to everything else you know about the user. Feature flags, experiments, product analytics, session replay, error tracking, and logs all write to the same place and share one model of users and sessions. For any flag, you can see what the users who got it did next, watch their sessions, and check whether it caused more errors.

The data warehouse and data pipelines extend it to the business data that lives elsewhere, like Stripe, HubSpot, and Postgres. So you can measure a rollout against revenue or churn, and an agent working from Slack, the CLI, or your editor via the MCP can answer questions about it without stitching tools together.

PostHog says it makes your product "self-driving" – what does that mean?

It means PostHog digs through your product data, finds what's worth fixing, and has agents do the work.

It starts with context. A full suite of developer tools – AI observability, product analytics, session replay, feature flags, experiments, error tracking, logs, and more – captures everything happening in your product, and a data warehouse unifies it into one source agents can read across.

From there, Scouts read across all of it and sort what's worth knowing from what's just noise. What clears the bar becomes a report in your inbox: an agent picks it up, roots out the cause, and opens a PR. You review and merge.

You can steer it from Slack, the web app, or your own editor via the MCP or CLI.

What is the best free feature flag tool?
  • PostHog is the best option for product teams that want feature flags alongside a full suite of developer tools in one platform – its free tier includes 1 million feature flag requests per month.
  • GrowthBook is the best choice for teams with a data warehouse – it's free to self-host with unlimited users and flags, limited to one project.
  • Flipt is the best choice if you want free, Git-native flag management, though its current version is source-available rather than open source.

For more options beyond open source, check out our guide to the best feature flag tools for developers.

Which open-source feature flag tools have an MCP server?

Seven of the eight do, so a coding agent like Claude Code or Cursor can work with your flags:

  • PostHog: An agent can create, update, and schedule flags through the MCP server.
  • GrowthBook: An MCP server on every plan, hosted on Cloud or run locally when you self-host.
  • Flagsmith: An MCP server, in early release, that gives agents access to its management API.
  • Unleash: An MCP server that has been generally available since June 2026.
  • Flipt: MCP servers for Flipt v1 and v2.
  • Flipper: An MCP server for Flipper Cloud.
  • FeatBit: An MCP server, in beta.

FeatureHub doesn't document one.

What's the difference between feature flags and A/B testing?

Feature flags let you toggle features on or off for specific users without deploying new code. A/B testing uses feature flags to randomly split users into groups (variants) and then measures which variant performs better against a goal metric.

In practice, most A/B testing tools – including PostHog, GrowthBook, and FeatBit – are built on top of a feature flagging engine. The distinction matters because tools like Unleash and Flipt are primarily feature flag tools that can be used for basic split testing, while PostHog and GrowthBook provide end-to-end experimentation with built-in statistical analysis. FeatBit has built-in Bayesian analysis too, and Flagsmith added native experimentation, in beta, in 2026.

To learn more, read our guide on what is a feature flag (and how it compares to remote config and A/B testing).

Should I build my own feature flags or use a service?

For simple boolean flags, building your own is tempting and straightforward. But feature flag tools quickly become complex once you need targeting rules, percentage rollouts, audit logs, multi-environment support, and experimentation.

Most teams are better off using an existing tool – especially since open-source options are free to self-host. For a deeper dive, read our guide on feature flags as a service.

Can I self-host a feature flag tool?

Yes – that's one of the main advantages of open-source feature flag tools. All eight tools on this list can be self-hosted. PostHog, GrowthBook, Unleash, Flagsmith, FeatBit, and FeatureHub offer both cloud and self-hosted options. Flipper is a gem you run inside your own app, with an optional cloud service, and Flipt has been self-hosted only since Flipt Cloud shut down in August 2025.

Self-hosting gives you complete control over your data, which is particularly important for teams with strict privacy requirements or regulatory compliance needs.

What is local evaluation and why does it matter?

Local evaluation means feature flags are checked locally within your application rather than making a network request to a remote server for every check.

This reduces latency and means your feature flags keep working even if the flag service goes down. All eight tools on this list support local evaluation in at least some of their SDKs. For FeatureHub, it depends on the type of API key you use. Local evaluation is especially important for performance-sensitive applications and high-traffic services.

Further reading

Subscribe to our newsletter

build mode

Read by 75,000+ founders and builders

We'll share your email with Substack

PostHog is your product's context layer. With a full suite of developer tools – AI observability, product analytics, session replay, feature flags, experiments, error tracking, logs, and more – PostHog ingests and stores all the data agents need to diagnose problems, uncover opportunities, and ship fixes. A data warehouse and CDP tie it all together, unifying that context into one source agents can read across. You can steer it all from Slack, the web app, the desktop (PostHog Desktop), or your own editor via the MCP.

Community questions