Skip to content

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.

Layerbase Cloud/postgresql
Relational

Connection

postgresql://layerbase:•••••@postgresql-prod.cloud.layerbase.dev:5432

Used in production by the team building it.

19 Engines
9 Free Engines
0 Docker required
0 usage meters

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.

  1. Push a branch

    Creating a git branch with the GitHub App installed, or its first Vercel preview deploy, forks a database branch automatically.

  2. 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.

  3. 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.

Start read-once migration

A 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
create a database
 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 Code
 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
terminal
 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

$35-81/mo

Redis on Upstash

metered per command

$10-20/mo

Vector search on Pinecone

minimum

$50/mo

Text search on Algolia

metered per search - ours is Meilisearch, open source, with a real console

~$85/mo
Four vendors, four bills, four meters~$180-236/mo

On Layerbase

The same four databases are 4 of your 10 on Pro.

$15/mo flat

One bill. Zero meters. No ingress or egress fees.

Compare Layerbase with Supabase, Neon, PlanetScale, and Railway

Compare Layerbase against

Database engines

Supabase
1 (Postgres)
Neon
1 (Postgres)
PlanetScale
2 (MySQL, Postgres)
Railway
Templates, unmanaged
LayerbaseLayerbase
19 managed

Database branching

Supabase
Postgres
Neon
Postgres
PlanetScale
MySQL, Postgres
Railway
Not offered
LayerbaseLayerbase
17 engines

HTTP query API

Supabase
PostgREST
Neon
Postgres
PlanetScale
Serverless driver
Railway
No
LayerbaseLayerbase
18 engines

Client cert (mTLS) auth

Supabase
No
Neon
No
PlanetScale
No
Railway
No
LayerbaseLayerbase
Pro, per-database CA

IP allowlist scope

Supabase
Project, not its APIs
Neon
Project, Scale plan
PlanetScale
Per database
Railway
Not offered
LayerbaseLayerbase
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
LayerbaseLayerbase
5 GB, wakes on connect

Pricing model

Supabase
$25 base + meters
Neon
Usage meters
PlanetScale
From $5 + usage
Railway
Metered per second
LayerbaseLayerbase
$0 / $5 / $15, no meters

Self-hostable companion

Supabase
Full platform, Docker
Neon
Source only
PlanetScale
Not offered
Railway
Not offered
LayerbaseLayerbase
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

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.

Cloud Web IDE
PostgreSQL 19.0

Tables

  • users
  • events
  • orders
  • sessions
SELECT id, name, created_at
FROM events
WHERE created_at > NOW() - INTERVAL '7 days'
ORDER BY id DESC LIMIT 5;
idnamecreated_at
1247signup2026-03-12 14:21
1246purchase2026-03-12 14:08
1245login2026-03-12 13:55
1244signup2026-03-12 13:44
1243purchase2026-03-12 13:30
5 rows · 12ms

SQL Web IDE: Postgres, MySQL, ClickHouse, DuckDB, and more, syntax-highlighted and ready.

Start free. Grow when you’re ready.

Free databases sleep when idle and wake on connect. From $5/month, the database you pin never sleeps. Every plan is one flat monthly price, with no usage meters and no ingress or egress fees.

Free

$0/month

Build and branch. Light databases sleep free, wake on connect.

  • Up to 2 databases, 5 GB storage
  • 1 manual backup slot
  • Sleeps when idle, wakes on connect

Solo

$5/month

Two databases, one of them always on. Perfect for a side project.

  • Up to 2 databases, 10 GB storage
  • Backups every 12 hours, kept 7 days
  • Pin a database and it never sleeps

Pro

$15/month

Your whole stack, always on. Run up to 10 databases in production.

  • Up to 10 databases, 25 GB storage
  • Backups every 12 hours, kept 30 days
  • 7-day free trial

Need your own server? Dedicated servers start at $35/mo and run in the United States and Brazil.

TLS on every endpoint
Per-database credentials and IP allowlists
Container and network isolation per account
Backups in encrypted object storage, taken before destructive actions

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.

Explore Workspaces

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 pricing
Is 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 includes
How 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 pricing
Are 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 here
What 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 path
Can 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 Workspaces
When 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