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.
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.
bata create my-app
psql $(bata db url)
bata db branch create feature-x # Copy-on-write clone of your database # Isolated data — changes don't affect production
bata import --source "$NEON_DATABASE_URL" # Streams pg_dump straight in — no dump files # Verifies row counts + sequences on both sides
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.
Scale-to-zero means you're billed only for the hours it actually serves traffic. Idle time costs $0.
After your free 100 CU-hours and 1 GB storage are applied.
An always-on server this size would cost $6.20 in compute. Scale-to-zero saves you $4.80/mo.
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.
Generous enough to run a real side project, free.
Everything in Free, then only pay for what you actually use — at cost.
For teams that need scale, controls, and a human on call.