Scale to zero. Wake in milliseconds.

Serverless Postgres
That Scales With You

Managed Postgres with instant branching, scale-to-zero compute, and query insights. Sign up, create a project, and connect.

terminal
# Create a project and wait until it's ready
$ bata create my-app
Project my-app is ready.
# Branch the database (copy-on-write)
$ bata db branch create staging
Branch 'staging' created.
# Connect
$ bata connect my-app
Connected (PostgreSQL 16).

Why BataDB

Managed Postgres with the features you actually need.

Scale-to-Zero Compute

Compute suspends automatically after inactivity. Sub-second cold starts. You pay only when queries are running.

Instant Database Branching

Fork any database in milliseconds with copy-on-write. Create dev branches from prod, test against real data, merge or discard.

Autoscaling Compute

Compute scales up and down based on demand. Set min/max limits and BataDB handles the rest. Pay only for what you use.

Everything You Need

A complete platform for provisioning, managing, and scaling Postgres databases.

Admin Dashboard

Full web UI for managing projects, branches, computes, teams, and billing. Branch tree visualization with interactive controls.

Agent-Native CLI & API

Every command runs headlessly with one API key and JSON output, so an AI agent can provision and operate a database with no human in the loop. Projects, branches, queries, cost — all scriptable.

Connection Pooling

Built-in connection pooling with transaction-mode support. Ready for serverless functions out of the box.

Query Insights

Built on pg_stat_statements. Per-query latency, execution counts, cache hit ratios, and slow query detection.

Autoscaling

Compute scales up and down based on connection demand. Set min/max CU limits, and let BataDB handle the rest.

Team Management

Organizations with role-based access control. Owner, admin, member, and viewer roles. API key scoping per team.

Up and Running in 60 Seconds

Create a project, connect via psql, and start branching.

1
Create a Project
bata create my-app
2
Connect
psql $(bata db url)
3
Branch & Develop
bata db branch create feature-x
# Copy-on-write clone of your database
# Isolated data — changes don't affect production
4
Or Bring an Existing Database
bata import --source "$NEON_DATABASE_URL"
# Streams pg_dump straight in — no dump files
# Verifies row counts + sequences on both sides
Cost truth — every number is a real rate

Pay for what runs. Nothing else.

Compute bills only while it's serving traffic — idle costs $0. Drag the inputs and watch your real bill.

Estimate your bill
Real rates · $0.01/CU-hr · $0.25/GB-mo
Active hours / day8h

Scale-to-zero means you're billed only for the hours it actually serves traffic. Idle time costs $0.

5 GB
1 GB200 GB
Estimated monthly cost
$2.40/mo

After your free 100 CU-hours and 1 GB storage are applied.

Compute
1 CU × 8h/day → 240 CU-hrs− 100 free
$1.40
Storage
5 GB × $0.25/GB-mo− 1 GB free
$1.00
Transfer
Egress
Not metered yet

An always-on server this size would cost $6.20 in compute. Scale-to-zero saves you $4.80/mo.

Start free — no credit card

Estimate only. You're billed per millisecond of active compute, so real bills track usage exactly.

Start free. Grow into usage.

The Free tier runs a real project. Paid is the same product with bigger limits — billed at cost, never a paywall.

Free
$0/forever

Generous enough to run a real side project, free.

100 CU-hours of compute / month
1 GB storage
5 GB transfer
Instant branching & scale-to-zero
Query insights & CLI
Start Free
Most popular
Pay-as-you-go
Usage

Everything in Free, then only pay for what you actually use — at cost.

Compute — $0.01 / CU-hour
Storage — $0.25 / GB-month
Transfer — not metered yet
Bigger computes, up to 8 CU
Unlimited projects & branches
No caps, no per-seat fees
Start Free, upgrade anytime
Team & Enterprise
Talk to us

For teams that need scale, controls, and a human on call.

Everything in Pay-as-you-go
Volume compute & storage discounts
Role-based access control (RBAC)
SSO & audit logs
Priority support & SLAs
Contact Sales