Built on SQLite. Fast and lightweight to multiply and run anywhere. Spin a database for every user, agent, and tenant.
// Spin up a database for every user
import { createClient } from '@tursodatabase/api';
const turso = createClient({
org: process.env.TURSO_ORG,
token: process.env.TURSO_PLATFORM_TOKEN,
});
const db = await turso.databases.create({
name: `user-${userId}`,
group: 'production',
});
// That's it. Encrypted. Replicated. Yours.For decades, the default has been one big database per application. One large store, shared by everything, scaled within a single instance. That model is running out of room. AI agents need isolated workspaces. Consumer apps need per-user privacy. Multi-tenant platforms need hard customer boundaries. Global businesses need data sovereignty. The architecture teams want to build now require thousands, sometimes millions, of databases. The infrastructure they have makes that prohibitively expensive or operationally impossible.
Turso is an architecture designed from the ground up for many databases, not one large one.
One shared database
A fleet of isolated databases
Database per tenant
SQLite-compatible. SDKs in TypeScript, Python, Rust, and Go. Self-serve from signup to production.
import { createClient } from '@tursodatabase/api';
const turso = createClient({
org: process.env.TURSO_ORG,
token: process.env.TURSO_PLATFORM_TOKEN,
});
// Every agent gets its own isolated workspace
const agentDb = await turso.databases.create(
`agent-${agentId}`,
{ group: 'production', schema: 'agent-template' },
);
// Persistent memory. Hard isolation. Near-zero cost.Embedded replication lets the same Turso database run on a user's device and stay in sync with the cloud. Read and write locally with zero latency. Sync changes when the device comes online. Build local-first apps, AI agents with persistent memory, and offline-capable products without standing up a second data layer.
How embedded replication works“We chose Turso because embedded replication and sync simply aren't available anywhere else.”
Simon Henriksen
CTO, Kin

Engine Labs' CTO.new gives every team of AI agents a Turso database as its coordination layer, keeping agent state isolated from core infrastructure and always available.
Read the Engine Labs storyAdaptive gives each iteration of an application its own database, so users can experiment freely while every previous version keeps its state.
Read the Adaptive storyPoke's assistant provisions a Turso database for every website it builds, so one site's bad queries never touch another user, and idle sites cost next to nothing.
Read the Poke storyPer-database encryption with customer-held keys. Bring-your-own-cloud deployment on AWS. Data residency that maps to GDPR, HIPAA, and sovereignty requirements. SOC 2 Type II. Predictable economics from your first thousand customers to your ten-millionth.
SQLite-compatible. Runs on your laptop, your servers, your devices. Forever free. The same engine, the same interface, the same code you'll ship to production.
Install locallyProvisioning, replication, observability, BYOC, and per-database encryption as a managed service. Self-serve from signup to production in minutes.
Try Cloud free
Turso is powered by an open-source community pushing SQLite into the future. Contribute to libSQL, connect with developers, and help shape the next generation of database architecture.
Fork the repository, contribute code, improve documentation, report issues, and help build the database architecture for a world of many databases.
Fork RepositoryConnect with developers building AI agents, multi-tenant SaaS, local-first apps, and modern distributed systems on Turso.
Join DiscordFree to start. Generous by design. The same architecture from your first prototype to your tenth million customer.
No credit card required. Free tier includes 100 databases, 500 million row reads, and 10 million row writes per month.