Introduction
A backend for apps where AI agents write data: what Supabase gives you, plus a fork of your data per agent run, merge policies, review by a person, and undo.
Forkbase is a backend for apps where AI agents write data. It gives you what Supabase gives you (Postgres tables over REST, sign-in, storage, realtime, functions) and adds the part agents need: every agent run works on its own fork of your data, a merge policy decides what reaches the real data, a person reviews the rest, and any merged change can be undone.
One binary. It runs over a Postgres you already have, or on the bundled Chronos engine. Free to self-host under FSL-1.1-ALv2.
Start here
| Page | What it covers |
|---|---|
| Getting started | Install, start a server, make a table, run your first agent |
| Concepts | Runs, worlds, merge policies, held runs, undo, keys and tokens, the two database modes |
| Set up with an AI agent | One prompt for Claude Code, Codex or Cursor that installs Forkbase or connects your app |
Build with it
| Page | What it covers |
|---|---|
| Auth | Sign-up, passwords, emailed links and codes, Google and GitHub, sessions, admin |
| Database and REST | /rest/v1: PostgREST-style reads and writes under row-level security |
| Realtime | Table changes and broadcast over WebSocket |
| Storage | Buckets and files, on disk or S3, signed URLs, policies |
| Agents | Runs, policies as code, approvals, webhooks, undo |
| Jobs | TypeScript and Python functions: retries, steps, sleeps, schedules, triggers |
| MCP | Connect Claude, Cursor or any MCP client, with OAuth 2.1 |
| Observability | Each agent run's ledger, OpenTelemetry traces and metrics |
| SDKs | forkbase for TypeScript and Python, and supabase-js |
| Dashboard | The built-in studio at /dashboard |
Run it
| Page | What it covers |
|---|---|
| Configuration | Every forkbase.toml setting and FORKBASE_* variable, with defaults |
| CLI | init, start, migrate, keys, status, deploy, invoke |
| Self-hosting | Docker, a TLS proxy, production checklist, backups, upgrades |
| HTTP reference | Every route, who may call it, and the error shapes |
| Troubleshooting | Common errors and what to do |
| Skills | The whole manual as skills for coding agents, and how to install them |
For AI agents and LLMs
/llms.txt: a short map of these docs, in the llms.txt format.llms-full.txt: every page above in one file, for a model's context.- Skills for coding agents: the whole of these docs as installable skills, so any coding agent knows
Forkbase:
curl -fsSL <your forkbase>/skills/install.sh | sh.
Something wrong or missing? Edit this page on GitHub or open an issue.