Skip to content
#4 Product of the Day on Product Hunt (opens in a new tab)

Backend infrastructure that evolves while you sleep.

The autonomous backend for coding agents.Your agent builds it over MCP. Backenly checks it every minute, ships the safe fixes and holds anything risky for you.

Start free
npx @backenly/mcp-server init

Works with any agent that supports MCP

  • Claude Code
  • Cursor
  • Codex
  • Antigravity
  • Cline
  • GitHub Copilot
  • Zed
Platform

Everything a production backend needs

Your agent sets up each part over MCP. Underneath: Postgres, PostgREST, SSE and S3.

Every feature

Postgres, a schema of your own

Tables, relations, indexes, constraints and pgvector, in a PostgreSQL schema per project.

  • Standard PostgreSQL
  • pgvector
  • Direct connections
  • pg_dump exports

Auth

Passwords, magic links and Google, GitHub, Discord or Facebook sign-in, with verification emails. Each project signs with its own secret.

REST APIs

PostgREST serves your tables: filters, ordering, pagination, embedded rows and OpenAPI. Row‑level security decides each row.

Realtime

Inserts, updates and deletes over SSE, sent only to clients allowed to read the row. Presence and broadcast too, no socket server to run.

Storage

Buckets with read and upload rules, expiring signed links and optional WebP conversion, on S3 or any S3‑compatible store.

Functions and triggers

Run code on a sign-up, a row change, an HTTPS call or a cron schedule, with every run logged. Event triggers and webhooks are on Pro.

Also built in

Row-level security by description

Say “anyone reads reviews; only the author edits one.” Backenly writes the policy and Postgres enforces it.

Branches for risky work

A copy of the schema, empty or with production’s rows, for your agent to try a change on. Merging waits for your approval.

Teams and organizations

Owner, admin, developer and viewer roles, with access per project on Pro.

Autonomy

Your backend repairs itself

Backenly checks it every minute, fixes what is safe on its own and holds risky changes for you.

How autonomy works

Rows read to find one movie's watchlist entries

watchlist_items, from Postgres's own table statistics

Rows read to find one movie's watchlist entries, per minute. At 03:06 a check found no index on watchlist_items.movie_id; at 03:07 Backenly added it on its own; at 03:08 it was re-checked and all 27 checks passed. At 03:12 your agent's request to drop a column on movies waited for you.
MinuteRows readChecks
03:054,120all 27 checks pass
03:064,12026 of 27 checks pass
03:073index added, re-checked next minute
03:083all 27 checks pass
03:093all 27 checks pass
03:103all 27 checks pass
03:113all 27 checks pass
03:123all 27 checks pass; one request waiting on you
03:133all 27 checks pass
03:143all 27 checks pass
03:153all 27 checks pass
03:163all 27 checks pass
03:173all 27 checks pass
  • 27 checks

    Indexes, constraints, policies and errors, checked on every project every minute.

  • Fixed, then re-checked

    Safe fixes ship on their own; the check that found the problem runs again.

  • Risky changes wait

    Destructive, auth and irreversible changes wait for you, including your agent's.

  • You set how far

    Autopilot or Review-only, chosen for each project.

Restructuring

Your schema restructures itself, once you approve

When a table starts doing two jobs, Backenly plans the split and asks you first. Your apps keep working.

How restructuring works
reviews9,431 rows
id
movie_id
user_id
rating
body
flagged_at
flag_reason
moderated_by

Each mark is a sample row. These three are filled in together.

review_moderationplanned
review_id
flagged_at
flag_reason
moderated_by

Your apps read and write it now. The reviews table keeps working too.

Waiting on you

Move moderation data out of reviews into its own table

Schema changes to these three columns locked all of reviews 5 times in the last 30 days.

30 days on: schema changes to these columns locked reviews 0 times, down from 5. It helped.

  1. Rehearsed on a copy of reviews, then rolled back
  2. Set up review_moderation
  3. Keep it in step with reviews
  4. Copy the existing moderation data
  5. Check that it matches reviews
  6. Open it to your apps

Agents can read this plan. Only a person can approve it.

  • Measured first

    It acts on a measured cost, like schema changes that keep locking a table, never on size alone.

  • Rehearsed on a copy

    The whole change runs on a copy of the real rows, then rolls back.

  • Apps keep working

    Old and new code both work; the old columns stay until you remove them.

  • Judged afterwards

    It measures the result and says plainly whether it helped.

History

Every change on the record

Your agent, Backenly and your team write to one history. Restore one change without rolling back the rest.

How restore works

Changes to movie-reviews today

Newest change first. A restore shows on the change it undid.

  1. Claude Code

    Made later. The restore leaves it as it is.

  2. You, approving Claude Code’s request

    Restored by you at 12:15

    runtime is back with its 1,284 values.

    The 4 movies added since have no runtime.

  3. Backenly autonomy

Every step, as recorded

Removed column runtime from movies

You, approving Claude Code’s request

  1. Checkpoint taken
  2. Applied
  3. Verified
  4. Restore started
  5. Restore verified

Choose any change to read its steps.

Removed column runtime from movies: Checkpoint taken at 09:14:06, Applied at 09:14:06, Verified at 09:14:07, Restore started at 12:15:40, Restore verified at 12:15:41.

  • One history

    Database, auth, storage, functions, webhooks, environment and keys: one entry per change, with who made it.

  • Kept, not deleted

    Dropped tables and columns are kept, so a restore brings them back: 7 days on Free, 30 on Pro.

  • Restore one change

    Checked before it runs. If it would remove or overwrite newer data, a person approves first.

  • Restore to a point

    Undo everything after a change, checked as a whole before any step runs. Agents can ask; only a person decides.

Infrastructure

Five regions, every project isolated

Run each project in Oregon, Virginia, Frankfurt, Mumbai or Singapore, with its own Postgres schema, signing secret and scoped agent keys.

Read the code on GitHub (opens in a new tab)
Now––:––:–– UTC
  • Oregonus-west-2·––:––, day
  • Virginiaus-east-1·––:––, day
  • Frankfurteu-central-1·––:––, day
  • Mumbaiap-south-1·––:––, day
  • Singaporeap-southeast-1·––:––, day

The violet light is where it is daytime right now, and each region sits at its local time. Every project is checked once a minute, day or night.

  • Isolated by Postgres

    Each project is its own schema. Isolation is a Postgres grant, not a WHERE clause.

  • A stack per region

    Each region runs its own database, API and file storage. You choose one per project.

  • Scoped access

    An agent's key can request a destructive change, never approve one.

  • Open source

    Apache-2.0. Read every line, or run it on your own servers.

Questions

Questions before you trust us with production

Anything else, ask the people who built it.

Give your agent a backend that fixes itself

Free to start. Open source under Apache-2.0.