Skip to content

turso

Use when working with Turso (libSQL) databases — setting up a database, running queries, implementing embedded replicas, using the Platform API to create databases programmatically, integrating with Drizzle ORM, building multi-tenant architectures, using Turso CLI, vector search for AI/RAG apps, branching for dev/preview environments, or checking pricing and quotas.

ModelSource
sonnetpack: database
Full Reference

┏━ 🔧 turso ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Use when working with Turso (libSQL) databases… ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

your friendly armadillo is here to serve you

Full API coverage for Turso — libSQL client, embedded replicas, Platform API, Drizzle integration, vector search, CLI, branching, AI/embeddings, and pricing.

Last verified: March 2026. Check docs.turso.tech for changes.

I want to…File
Install, connection URLs, createClient optionsreference/setup.md
execute, batch, transactions, CRUDreference/queries.md
Embedded replicas, sync, offline mode, encryptionreference/embedded-replicas.md
CREATE TABLE, indexes, SQLite typesreference/schema.md
Drizzle config, schema, queries, migrationsreference/drizzle.md
Platform API, multi-tenant, per-user DBs, branchingreference/platform-api.md
Next.js singleton, edge/Workers, serverlessreference/connection-patterns.md
Vector search, embeddings, ANN index, RAGreference/vector-search.md
CLI — auth, db create/shell/tokens, groups, locationsreference/cli.md
Pricing tiers, row read/write quotas, overagesreference/pricing.md
Branching for dev/preview, per-PR databasesreference/branching.md
AI agents, RAG patterns, multi-agent coordinationreference/ai-embeddings.md
  • Setup & Connection — install, URLs, credentials, createClient options
  • Queriesexecute, batch, interactive transactions, CRUD patterns
  • Embedded Replicas — local-first setup, sync behavior, offline mode, encryption
  • Schema Setup — table creation, SQLite types, migration strategy
  • Drizzle Integration — config, schema, client init, queries, migrations
  • Platform API — programmatic DB management, groups, locations, multi-tenant, branch seeding
  • Connection Patterns — Next.js, edge/Workers, serverless
  • Vector Search — F32_BLOB types, libsql_vector_idx, vector_top_k, RAG, hybrid search
  • CLI Reference — auth, db create/shell/tokens, groups, locations, local dev server
  • Pricing & Quotas — plans, limits, row read/write billing, overages
  • Branching — dev/preview databases, per-PR branches, GitHub Actions, point-in-time restore
  • AI & Embeddings — RAG patterns, agent memory, multi-agent coordination, AgentFS

Usage: Read the reference file matching your current task from the index above. Each file is self-contained with code examples and inline gotchas.