Self-hosted Flagsmith with A/B testing, set up with zero clicks. Then a doctor that catches the misconfigurations that silently drop your experiment data.
git clone https://github.com/lqmon/toggle_wars && cd toggle_wars && npm i && node bin/flagkit.js up
Everything after docker compose up
Starting Flagsmith is one command. Getting to a working A/B test took an afternoon of reading Django source. FlagKit is that afternoon, automated.
flagkit up: zero-click bootstrap
Official Flagsmith images, then admin, org, project and three environments, an admin API key, and the experimentation warehouse, all through the API. Bound to localhost, random secrets, sign-up locked. Writes a flagsmith.env the official CLI understands.
flagkit doctor
Points at any self-hosted Flagsmith and finds silent breakage, then fixes it after asking.
flagkit tui
Every flag × every environment in your terminal, plus live win probabilities and a guarded “ship the winner”.
Agent Skill
A coding agent goes from hypothesis to rollout to cleanup PR with the Flagsmith CLI, stopping at 5 approval gates.
MCP server
Agents can inspect flags, read results and propose rollouts. A person approves before anything changes.
The stock compose file fails 6 checks
Run against an untouched upstream docker-compose.yml, set up the obvious way:
- Events silently dropped. The "flagsmith" warehouse is Cloud-only, so self-hosted SDK events get a 404 and the experiment shows nothing.
- Admin exposed on your Wi-Fi. Port 8000 binds to every interface.
- Default secrets. DJANGO_SECRET_KEY=secret.
- CLI ignores your key. Self-hosted hosts need a host-scoped variable.
- flagsmith eval returns 405. Wrong SDK URL shape.
EXPERIMENTATION ✖ Events are being DROPPED: this environment does not store SDK events fix: warehouse must be postgres + {"source":"flagsmith_database"} SECURITY ✖ Admin API is reachable from your network ✖ Default secrets in running containers ⚠ Open sign-up CLI ✖ FLAGSMITH_API_KEY is ignored for this host 3 passed, 3 warnings, 6 failures Apply 2 fixes? (y/N) y ✔ fixed: warehouse → Flagsmith database ✔ fixed: client traits locked
You're seeing …
FlagKit runs a live A/B test on its own headline with Flagsmith Experimentation. Half of visitors see one headline, half see another, and Flagsmith's Bayesian engine decides which gets more clicks on Get early access.