Self-host growthbook
v5.2.1Warehouse-native feature flags, experimentation, analytics
docker compose up -d- Stars
- 8 601
- RAM
- 2GB
- Ports
- 3000 (Frontend (Next.js)), 3100 (API (Express.js))
- Requires
- MongoDB
growthbook/growthbookWhat is growthbook?
GrowthBook is a warehouse-native platform for feature flagging, experimentation, and product analytics. It consists of a Next.js frontend, Express.js API, and Python stats engine bundled in a single Docker image. Teams use it to manage feature flags with advanced targeting and gradual rollouts, run A/B tests with a sophisticated stats engine (CUPED, sequential, Bayesian, bandits), and build product analytics dashboards. It connects to many data sources including BigQuery, Snowflake, Databricks, ClickHouse, and Trino. The self-hosted version runs via Docker Compose or Kubernetes (Helm) and requires a MongoDB-compatible database. GrowthBook is open-core: most code is MIT-licensed while enterprise features (SSO, SCIM, audit logs, advanced permissions) require a commercial license. It provides 24+ SDKs for web, mobile, and server environments, a REST API, webhooks, and an MCP server for AI agents.
growthbook alternatives
PostHogOpen-source product toolkit - analytics, session replay, feature flags, error tracking - with a one-line self-hosted hobby deploy using Docker Compose.ComparePostHog with growthbook
FeatbitRun feature management and A/B experiments on your own servers with FeatBit, an MIT-licensed, open-core flags platform deployed via Docker Compose or Helm charts.CompareFeatbit with growthbook
FlagsmithA self-hosted platform for feature flags, remote configuration, and experiments with broad SDK support and flexible deployment options.CompareFlagsmith with growthbook
RybbitOpen-source cookieless web & product analytics replacing Google Analytics: session replays, funnels, retention, self-hosted with Docker, Postgres and ClickHouse.CompareRybbit with growthbook
GrowChiefGrowChief is a self-hosted, open-source social media automation tool for outreach on LinkedIn and X with a REST API for n8n, Make, and Zapier.CompareGrowChief with growthbook
AppwriteThe open-source cloud for agents & devs. Including Auth, Databases, Storage, Functions, Messaging, Hosting, Realtime, WAF and moreCompareAppwrite with growthbook
OpenAnalyticsOpen-source, cookieless web analytics with realtime dashboards, funnels and revenue attribution, self-hosted via Docker Compose on Postgres and ClickHouse.CompareOpenAnalytics with growthbook
databendSelf-hosted, open-source data warehouse in Rust for large-scale analytics plus vector and full-text search, with Python UDF sandboxes and git-like data branching.Comparedatabend with growthbook
Should you self-host growthbook?
growthbook scores 71/100 on selfhost.directory (how scoring works) and ranks #3 of 8 in Feature Flags. It has 8 601 GitHub stars, +105 in the last 30 days.
It shipped 7 stable releases in the past year. The latest, v5.2.1, came out on 16 November 2026. New versions land roughly every 5 weeks.
Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is MIT-licensed and written mostly in Typescript.
Its closest alternative on selfhost.directory is Flagsmith (80/100, 7 332 stars). It scores higher overall, so compare the two before you pick. See growthbook vs Flagsmith side by side.
Features
- 24+ SDKs
- A/B Testing
- AI Assistant
- Feature Flags
- File Uploads (Local/S3/GCS)
- MCP Server
- Multi-org Support
- OpenTelemetry observability
- Product Analytics
- REST API
- SQL-backed Metrics
- SSO / OIDCRequires Enterprise license key
- Warehouse Native
- Webhooks
growthbook README
Open Source Feature Flags, Experimentation, and Product Analytics
Create a free GrowthBook Cloud account to get started quickly.
Or run it yourself with:
FAQ
Can I use Azure CosmosDB instead of MongoDB?
No. Azure Cosmos DB is not fully supported as a MongoDB replacement for GrowthBook. Use Azure DocumentDB instead.
What are the hardware requirements for self-hosting GrowthBook?
The application is very lightweight. For most use cases, 2GB of memory is sufficient even for large production deployments. GrowthBook only deals with aggregate data and offloads bulk processing to your data source.
Which docker image tag should I use when self-hosting?
Use the latest tag for both dev and production self-hosted deployments. It represents the latest stable build and is what the Cloud app uses. Update regularly by pulling the latest image.
How do I run an A/B test in GrowthBook?
Create a feature in GrowthBook with an A/B Experiment rule, then use the SDKs to serve different variations based on the feature flag.
What do I use for an "id" attribute in the SDK if my users aren't logged in?
Use a deviceId or sessionId - a random anonymous hash persisted in a cookie or local storage. For apps with both logged-in and anonymous users, use two identifier attributes: id for logged-in users and deviceId for all users.
Do users always get assigned the same experiment variation?
GrowthBook SDKs use deterministic hashing to ensure the same user always gets assigned the same variation in an experiment. Changing the traffic split between variations may cause some users to switch variations.
More in Feature Flags
marshantMarshant is a self-hosted, open-source feature flag platform with TypeScript SDK and REST API for managing rollouts across projects and environments.
PostHogOpen-source product toolkit - analytics, session replay, feature flags, error tracking - with a one-line self-hosted hobby deploy using Docker Compose.
unleashOpen-source feature management platform: flags, canary rollouts, kill switches and A/B tests from a web UI with 25+ SDKs. Self-hosted via Docker plus PostgreSQL.
AbbySelf-hosted open-source platform for feature flags and A/B tests with a web dashboard and multi-framework SDKs.
FeatbitRun feature management and A/B experiments on your own servers with FeatBit, an MIT-licensed, open-core flags platform deployed via Docker Compose or Helm charts.
FlagsmithA self-hosted platform for feature flags, remote configuration, and experiments with broad SDK support and flexible deployment options.
FliptSelf-hosted, open-source feature flag platform that keeps flags as code in your own Git repositories, with multi-environment support and REST/gRPC APIs.
GO Feature FlagSelf-hosted, open-source feature flag relay proxy built on the OpenFeature standard, with targeting rules, rollout strategies and evaluation-data export to many sinks.
0 comments