Millions of Databases.
One Architecture.
Built on SQLite and rewritten in Rust. Lightweight enough to run locally or in the cloud, giving every user, AI agent, and tenant an isolated database.
const db = await turso.databases.create({
name: `agent-${id}`,
group: 'fra-edge',
});
// Isolated SQLite file + scoped token MIT open-source SQLite rewrite with async I/O and concurrent writes
Keeps SQLite SQL and file compatibility while removing single-writer locks
Concurrent writes, local replicas, and vector search built straight into core
Each user or AI agent gets its own file and key, avoiding cross-tenant leaks
State-machine execution avoids blocking OS threads during disk flushes
Read and write locally first, then push and pull WAL frames when online
Built-in page-level encryption at rest with zero commercial SEE licensing fees
Native vector types and DiskANN indexes for RAG and AI memory out of the box
Single-file POSIX filesystem, KV store, and tool-call audit trail for AI agents
Traditional databases weren't built for a world
where every agent needs its own.
For decades, the default pattern has been one shared database per application, scaled inside a single instance. That model hits clear limits when AI agents need isolated workspaces, consumer apps need per-user privacy, multi-tenant platforms need hard customer boundaries, and global teams need regional data residency.
Turso is designed from the ground up to manage millions of small databases rather than one large shared instance.
Centralized Model
One shared database
A fleet of isolated databases
Database per tenant
Provision an isolated database per entity in under a minute.
SQLite-compatible with native SDKs for TypeScript, Python, Rust, and Go—from local files to managed cloud groups.
import { createClient } from '@tursodatabase/api';
const turso = createClient({
org: process.env.TURSO_ORG,
token: process.env.TURSO_PLATFORM_TOKEN,
});
// Every AI agent gets its own isolated workspace
const agentDb = await turso.databases.create(`agent-${agentId}`, {
group: 'agents-eu',
seed: { type: 'database', name: 'agent-template' },
});
const token = await turso.databases.createToken(agentDb.name, {
expiration: '1h',
}); Replicate to the device. Sync to the cloud. One database everywhere.
Embedded replication lets the same Turso database run on a user's device and stay synchronized with the cloud. Reads and writes hit local storage first, then sync deltas once the device is online, so offline apps and AI agents do not need 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
One pattern across real production workloads.
Tens of thousands of AI agent teams, each coordinating through its own database on a $500/month plan.
Engine Labs' CTO.new gives every agent team its own Turso database as a coordination layer, keeping agent state separate from core application tables.
Read Per-Agent ArchitectureOver 2 million databases created—one for every prompt and every revision of each user-built app.
Adaptive allocates a separate Turso database for each generated app revision, supporting fast branching and clean rollbacks without mixing app data.
Read Rust Engine EvolutionA complete website from a single text message, each shipping with its own live database.
Every user project starts with a dedicated SQLite database through a single API call rather than manual database provisioning.
Read Local-First Sync GuideBuilt for enterprise security and compliance.
Per-database encryption with customer-held keys, Bring-Your-Own-Cloud deployment on AWS, SOC 2 Type II controls, and regional data residency for GDPR and HIPAA requirements—with predictable cost curves as tenant counts grow.
Start locally. Scale to cloud groups when needed.
Open-source Turso
SQLite-compatible and MIT-licensed. Runs directly on your laptop, servers, and user devices using the same engine and SQL interface you ship to production.
Install locallyTurso Cloud
Managed provisioning, global replication, observability, BYOC, and per-database encryption—ready from signup to production in minutes.
Try Cloud freeCommunity Deep Dives
Engineering articles & practical playbooks
Original technical breakdowns on Rust database internals, MVCC, local-first sync, and AI agent state architecture.
From libSQL to Rust Rewrite: The Architectural Evolution of TursoDB
Why the Turso team moved from maintaining a C fork of SQLite (libSQL) to building an async, MVCC-capable SQLite engine from scratch in Rust.
Database-per-Agent: Scaling Isolated Memory for Autonomous AI Agents
Why shared multi-tenant tables break down for autonomous AI workflows—and how giving every agent its own lightweight TursoDB unlocks safety, speed, and instant rollbacks.
Inside TursoDB MVCC: Concurrent Writes and Async io_uring Explained
A practical breakdown of how TursoDB replaces SQLite's single-writer lock with optimistic MVCC transactions and non-blocking Linux io_uring pipelines.
Building Local-First Edge Apps with Turso Sync and Embedded Replicas
Design patterns for microsecond local reads, offline-capable writes, and conflict-aware cloud sync using TursoDB and libSQL.
Five properties built into the architecture,
not bolted on afterward.
Start with a single file.
Scale to millions of databases.
Use the same SQLite-compatible engine from your first local prototype to multi-tenant production workloads.
Independent developer community at tursodb.cn · Official turso.tech free tier includes 100 databases, 500M row reads, and 10M row writes/mo.