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

PageWhat it covers
Getting startedInstall, start a server, make a table, run your first agent
ConceptsRuns, worlds, merge policies, held runs, undo, keys and tokens, the two database modes
Set up with an AI agentOne prompt for Claude Code, Codex or Cursor that installs Forkbase or connects your app

Build with it

PageWhat it covers
AuthSign-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
RealtimeTable changes and broadcast over WebSocket
StorageBuckets and files, on disk or S3, signed URLs, policies
AgentsRuns, policies as code, approvals, webhooks, undo
JobsTypeScript and Python functions: retries, steps, sleeps, schedules, triggers
MCPConnect Claude, Cursor or any MCP client, with OAuth 2.1
ObservabilityEach agent run's ledger, OpenTelemetry traces and metrics
SDKsforkbase for TypeScript and Python, and supabase-js
DashboardThe built-in studio at /dashboard

Run it

PageWhat it covers
ConfigurationEvery forkbase.toml setting and FORKBASE_* variable, with defaults
CLIinit, start, migrate, keys, status, deploy, invoke
Self-hostingDocker, a TLS proxy, production checklist, backups, upgrades
HTTP referenceEvery route, who may call it, and the error shapes
TroubleshootingCommon errors and what to do
SkillsThe 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.

Docs · Forkbase