Layerbase: Databases for fast-moving developers in the agentic AI era
19 databases, one cloud, no meters.
Postgres, MySQL, Redis, and more on one flat plan, with a database branch for every pull request and Vercel preview on 17 engines. Free to start, and from $5/month a database that never sleeps.
9 engines free. No card required. No ingress or egress fees.
Connection
postgresql://layerbase:•••••@postgresql-prod.cloud.layerbase.dev:5432Used in production by the team building it.
The database your app needs.
Choose an engine for your project, or combine SQL, documents, vectors, and time-series data on one platform.
A database branch for every pull request, on 17 of 19 engines.
Connect GitHub or Vercel and each feature branch gets its own database branch. Not just Postgres: the same flow works on every engine below.
Push a branch
Creating a git branch with the GitHub App installed, or its first Vercel preview deploy, forks a database branch automatically.
Preview on a copy of your data
Each branch is an isolated, writable copy, so preview work never writes into production. On Vercel, its connection string lands in the env var you pick.
Cleaned up with the branch
With the GitHub App, deleting the git branch removes its database branch, or opt in to remove it as soon as the pull request merges.
- PostgreSQL
- MySQL
- MariaDB
- Redis
- Valkey
- FerretDB
- DocumentDB
- libSQL
- SQLite
- DuckDB
- TypeDB
- ClickHouse
- Meilisearch
- Qdrant
- QuestDB
- InfluxDB
- Weaviate
Migrate your database to Layerbase in one pass.
Paste a connection string or API key, and Layerbase copies your data in one read-only pass. Your source stays untouched.
Migrate from
- Neon
- Supabase
- Render
- Railway
- Replit
- PlanetScale
- Upstash
- Vercel KV
- Algolia
- Cloudflare D1
- Turso
- MongoDB Atlas
- Netlify DB
- Heroku
- DigitalOcean
- Fly.io
- Aiven
- Crunchy Bridge
- Vercel Postgres
- Prisma Postgres
- Xata
Also migrate from your own Postgres, MySQL, MariaDB, Redis, or Valkey database. Moving from documents to SQL? Convert MongoDB to PostgreSQL.
Find your migration pathA REST API, MCP server, and CLI for every database.
Create, query, and branch databases from a script, a CI job, or a coding agent, not only from the dashboard.
REST API
Create, list, and query databases over HTTPS with a personal API key, including short-lived keys for a single CI run.
Read the REST API reference curl -X POST $LAYERBASE_API_URL/v1/databases \
-H "Authorization: Bearer $LAYERBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"engine": "postgresql", "name": "my-app"}'
MCP server
Connect Claude Code, Codex, Cursor, and other MCP clients with OAuth sign-in or a token, so your agent can create databases, run queries, and manage branches. Free through OAuth sign-in.
Read the MCP server docs claude mcp add --transport http layerbase \
https://layerbase.com/api/mcp
CLI
Provision, branch, and connect to cloud databases from your terminal or a CI job. Every command runs headless with an API key.
Read the CLI guide npm i -g layerbase
lbase cloud create my-db --engine postgresql
lbase cloud branch my-db my-db-preview
Give your agent a database to work with.
One command installs the Layerbase agent skill, so Claude Code, Codex, and other coding agents can audit your stack, provision and migrate databases, and read current plans and prices from a live capability document instead of memory.
An agent can also sign up on its own: it registers a Layerbase account through auth.md, pays for a plan, and hands the account to you when you claim it.
The multi-database tax.
Postgres, cache, vector search, and text search usually mean four vendors. On Layerbase, they share one plan.
A typical production stack, priced separately (July 2026)
Postgres on Neon
metered by compute-hours
Redis on Upstash
metered per command
Vector search on Pinecone
minimum
Text search on Algolia
metered per search - ours is Meilisearch, open source, with a real console
On Layerbase
The same four databases are 4 of your 10 on Pro.
One bill. Zero meters. No ingress or egress fees.
Compare Layerbase with Supabase, Neon, PlanetScale, and Railway
Compare Layerbase against
| Feature | Supabase | Neon | PlanetScale | Railway | |
|---|---|---|---|---|---|
| Database engines | 1 (Postgres) | 1 (Postgres) | 2 (MySQL, Postgres) | Templates, unmanaged | 19 managed |
| Database branching | Postgres | Postgres | MySQL, Postgres | Not offered | 17 engines |
| HTTP query API | PostgREST | Postgres | Serverless driver | No | 18 engines |
| Client cert (mTLS) auth | No | No | No | No | Pro, per-database CA |
| IP allowlist scope | Project, not its APIs | Project, Scale plan | Per database | Not offered | Per database, paid plans |
| Free tier | 500 MB, pauses after 1 week | 1 GB per project, scale-to-zero | None since April 2024 | $1/mo of usage credit | 5 GB, wakes on connect |
| Pricing model | $25 base + meters | Usage meters | From $5 + usage | Metered per second | $0 / $5 / $15, no meters |
| Self-hostable companion | Full platform, Docker | Source only | Not offered | Not offered | CLI + Desktop |
Database engines
- Supabase
- 1 (Postgres)
- Neon
- 1 (Postgres)
- PlanetScale
- 2 (MySQL, Postgres)
- Railway
- Templates, unmanaged
Layerbase
- 19 managed
Database branching
- Supabase
- Postgres
- Neon
- Postgres
- PlanetScale
- MySQL, Postgres
- Railway
- Not offered
Layerbase
- 17 engines
HTTP query API
- Supabase
- PostgREST
- Neon
- Postgres
- PlanetScale
- Serverless driver
- Railway
- No
Layerbase
- 18 engines
Client cert (mTLS) auth
- Supabase
- No
- Neon
- No
- PlanetScale
- No
- Railway
- No
Layerbase
- Pro, per-database CA
IP allowlist scope
- Supabase
- Project, not its APIs
- Neon
- Project, Scale plan
- PlanetScale
- Per database
- Railway
- Not offered
Layerbase
- Per database, paid plans
Free tier
- Supabase
- 500 MB, pauses after 1 week
- Neon
- 1 GB per project, scale-to-zero
- PlanetScale
- None since April 2024
- Railway
- $1/mo of usage credit
Layerbase
- 5 GB, wakes on connect
Pricing model
- Supabase
- $25 base + meters
- Neon
- Usage meters
- PlanetScale
- From $5 + usage
- Railway
- Metered per second
Layerbase
- $0 / $5 / $15, no meters
Self-hostable companion
- Supabase
- Full platform, Docker
- Neon
- Source only
- PlanetScale
- Not offered
- Railway
- Not offered
Layerbase
- CLI + Desktop
Capabilities verified September 7, 2026. Vendor sources: Supabase source, opens in a new tab, Neon source, opens in a new tab, PlanetScale source, opens in a new tab, Railway source, opens in a new tab, Turso source, opens in a new tab, Upstash source, opens in a new tab, Render source, opens in a new tab, MongoDB Atlas source, opens in a new tab.
More built into the platform.
Edge queries, scale to zero, cross-database analytics, and local development, without another vendor. Select a feature to see it.
Query your database over HTTPS from edge and serverless code
Scale to zero when idle, wake on the next connection
Cross-database analytics with DuckDB and DuckLake
Run the same engines locally with the CLI and Desktop app
6 Web IDEs, matched to the data.
Browse and query SQL, document, key-value, REST, graph, and ledger data from the browser, included with every database.
Tables
- users
- events
- orders
- sessions
| id | name | created_at |
|---|---|---|
| 1247 | signup | 2026-03-12 14:21 |
| 1246 | purchase | 2026-03-12 14:08 |
| 1245 | login | 2026-03-12 13:55 |
| 1244 | signup | 2026-03-12 13:44 |
| 1243 | purchase | 2026-03-12 13:30 |
SQL Web IDE: Postgres, MySQL, ClickHouse, DuckDB, and more, syntax-highlighted and ready.
Security on every database
Read the full security overview, including what we do not have yet, or jump to the IP allowlisting and client certificate guides.
Also building with coding agents?
Give them a persistent workspace in your browser. Sold separately; databases still start free.
FAQ
Questions, answered.
What is Layerbase?
Layerbase Cloud is the easy way to run a database in production: 19 engines, a free tier with no credit card, and flat monthly plans. Layerbase Desktop brings the full engine suite and admin UI to your laptop as a local runner and multi-database IDE, and the Layerbase CLI runs the same engine runtime from the terminal with native binaries, no containers required. Workspaces gives your coding agents a private Linux machine, billed separately from database plans.
See plans and pricingIs there really a free tier?
Yes. PostgreSQL, MariaDB, SQLite, DuckDB, libSQL, Valkey, Redis, TypeDB, and DocumentDB are free at the base configuration: cloud-hosted, real connection string, HTTPS endpoint. The free tier includes 2 databases, with instant branching on one, on a single signup, and it does not expire.
See what free includesHow does billing work?
Free needs no credit card. Solo is $5/mo for 2 Standard databases, one of which you pin always-on. Pro is $15/mo for up to 10 databases, every engine, and an allocatable always-on pool. Dedicated starts at $35/mo per server. Database plans have no ingress or egress fees. Workspaces starts at $10/month per machine, separately from database plans and agent-provider charges. Prices are flat, with no usage meters from Layerbase.
See full pricingAre Layerbase databases serverless?
Yes, in the way that changes your infrastructure: there is no server to size or provision, idle Standard-class databases scale to zero, and the next connection wakes them in about one to five seconds. The few engines that are better off awake run always-on from your pool instead. It is not serverless in the billing sense, and that part is deliberate. There are no compute units, request counts, or per-row charges on any plan.
How serverless works hereWhat does Layerbase Cloud replace?
Neon, PlanetScale, Supabase, Railway, Render, Aiven, Upstash, DigitalOcean Managed Databases, Turso, Vercel KV, Algolia (we host Meilisearch, the open-source alternative, with a real console), and MongoDB Atlas (with MongoDB-compatible engine choices and branching on qualified engines). More engines than any single one of them.
Find your migration pathCan I run my coding agents on Layerbase?
Yes. Workspaces puts your coding agents, repositories, and tools on a private machine you can reach from your browser. Your terminal session stays on the running workspace when you disconnect. Plans start at $10/month per workspace. The free database tier is separate and does not require a workspace. You bring your own agent accounts; their subscriptions or API charges are separate. Workspaces is in beta, and you keep your own backups.
Explore WorkspacesWhen should I NOT use Layerbase Cloud?
High availability and multi-region replication are on the roadmap, not shipped: every database lives in one region, though a dedicated server lets you choose which, in the United States and Brazil. If your workload requires synchronous multi-region writes today, use the upstream cloud for that engine. Everything else (single-region production, dev/staging, side projects) we are ready for.
Pick an engine. Start building.
Create your first database and get a connection string. No card required.
Need help choosing an engine or planning a migration? support@layerbase.com. A human replies within one business day.
Get the free Desktop appRun local databases with the CLIExplore add-onsRequest a feature