Build AI agents in a weekend.
Never break prod.

Forkbase is the Supabase alternative for AI agents. Postgres, auth, storage, functions and realtime, with every agent on its own fork of your data.

Read https://forkbase.tech/setup.md and set up Forkbase for me.

Paste into Claude Code, Codex or Cursor. It asks where to run Forkbase, then sets it up one question at a time.

Works with the agents and tools you already use

Claude CodeCursorWindsurfMCPLangChain
Postgressupabase-jsPythonNode.jsPrisma

Agents move fast.
One bad write is forever.

Hand an agent your database and every mistake lands in production. Forkbase puts a fork between each agent and your data.

Fork. Run. Check. Merge.

Every run is on the record

  • mergedsupportfix VAT on Initech invoice ticketby policy, no person
  • heldcleanuparchive closed ticketsdeletes 3 rows, policy allows 0
  • undonesupportraise priority for Acmerow restored on main
  • mergedsupportclose tickets fixed in v2.4by policy, no person

One backend.
Every part included.

Everything Supabase gives you, built for apps where agents do the writing.

Database

A full Postgres. Bring your own, or run the bundled engine.

Auth

GitHub, Google and magic links for people. Scoped keys for agents.

Storage

Buckets for any file, on disk or any S3.

Functions

TypeScript and Python jobs, on a schedule or a trigger.

APIs and realtime

REST for every table. Live changes over websockets.

MCP

Claude, Cursor or your own agent connects over OAuth. No shared keys.

Dashboard

Tables, SQL, users, files, agents and jobs in one place.

Agents write.
You stay in control.

Policy

Limits as code. Safe changes merge on their own.

Review

Anything over the limit waits in one inbox.

Undo

A bad merge goes back, row by row.

A run is
a few lines of code.

  • SDKs for TypeScript and Python

    Open a run, write, propose. Forkbase forks, checks and merges.

  • supabase-js works

    Point your client at Forkbase. Your app code stays the same.

  • MCP built in

    Claude, Cursor and other agents connect with one command.

npm i @chronosdb/forkbase
import { createClient } from "@chronosdb/forkbase";const fb = createClient(URL, SERVICE_KEY);const run = await fb.agents.run("close stale tickets", {  agent: "support",});await run.sql("update tickets set status = 'closed' where stale");const out = await run.propose();   // merged, or held for youif (out.status === "held") console.log(out.reasons);

Runs on your Postgres.
Or brings its own.

On your Postgres

Keep the database you have. Forkbase attaches to Postgres 16 or later and adds forks beside it.

your Postgres
forkbase init --db postgres \  --database-url postgres://user:pass@host:5432/appforkbase start

On the Chronos engine

Nothing to bring. The bundled engine is the database, with forks, merges and undo built in.

bundled engine
forkbase init --db chronosforkbase start
One binary
No services to wire together.
macOS and Linux
One install line for both.
Docker
A compose file for each database.
Free to self-host
Your servers, your data.

Build in a weekend.
Never break prod.

Free to self-host. macOS and Linux.

curl -fsSL https://github.com/2090-labs/forkbase/releases/latest/download/install.sh | FORKBASE_ENGINE=1 sh
Star on GitHubRead the docs
Forkbase: the backend for AI agents