Generated banner for Turso Cloud
Generated logo for Turso Cloud

Turso Cloud

TursoOfficialPublished by Turso

  • Skill
  • Tool integration
  • Cloud and DevOps
  • MIT
  • Low risk

From the author

Turso Cloud — fully managed SQLite-compatible database platform, accessed over the network. Use when connecting an application to a Turso Cloud database, creating or scoping auth tokens (JWT, fine-grained permissions, JWKS/external auth providers), or provisioning and managing cloud databases. Covers per-language SDKs (JavaScript/TypeScript, Python, Go, Rust), authentication & authorization, and marketplace integrations (Vercel).
— the description by Turso

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

Turso Cloud is a fully managed, SQLite-compatible database platform designed for network-accessible applications. This skill provides a centralized resource for developers to connect their applications to Turso Cloud using various language-specific SDKs, manage authentication and authorization, and integrate with platforms like Vercel. It covers both remote-only access and local-first synchronization patterns, alongside advanced database features like vector search, branching, and point-in-time recovery.

What it does

  • Provides SDK integration guides for JavaScript, TypeScript, Python, Go, and Rust.
  • Details authentication and authorization workflows, including JWT scoping and external provider integration.
  • Explains how to manage Turso Cloud resources within Vercel projects.
  • Covers advanced database features including vector search, full-text search, and embedded replicas.
  • Outlines database management tasks like branching and point-in-time recovery.
  • Offers guidance on using built-in SQLite extensions for enhanced functionality.

When to use it

  • When you need to connect a web, mobile, or backend application to a Turso Cloud database.
  • When implementing secure access control, such as fine-grained permissions or JWKS-based authentication.
  • When deploying applications on Vercel that require a managed SQLite-compatible database.
  • When building AI or RAG applications that require native vector search and embedding storage.
  • When you need to set up local-first synchronization for offline-capable applications.

Advantages

  • Supports multiple popular programming languages with dedicated SDKs.
  • Simplifies complex tasks like authentication scoping and Vercel integration.
  • Provides clear paths for both remote-only and local-first database architectures.
  • Centralizes documentation for advanced features like vector search and branching.

Usage examples

“How do I connect my Node.js application to a Turso database?”
The agent provides instructions on using the @tursodatabase/serverless SDK, including setup for remote queries, batches, and transactions.
“Explain how to set up fine-grained permissions for a Turso database.”
The agent guides you through creating scoped auth tokens, including read-only access or per-table restrictions.
“How can I use Turso for vector search in my Python app?”
The agent explains how to leverage native vector types and distance functions within the Python SDK for AI-driven workflows.
“I am using Vercel; how do I link my project to a Turso database?”
The agent details the Vercel Marketplace integration, including environment variable injection and resource management via the Vercel CLI.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/tursodatabase/turso-cloud/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip turso-cloud.zip -d .agents/skills

Documentation by Turso

Turso Cloud Skills

This skill combines documentation for working with Turso Cloud, the fully managed SQLite-compatible database platform. Pick the relevant sub-skill below.

turso-cloud-js

Work with the @tursodatabase/serverless TypeScript/JavaScript SDK for remote Turso Cloud databases — queries, positional/named parameters, batches, and interactive transactions — plus the local-first sync family (@tursodatabase/sync, -wasm, -react-native). Use when connecting to Turso Cloud from Node.js, serverless/edge functions, browsers, or React Native.

turso-cloud-py

Work with Turso Cloud from Python: pyturso for local-first databases that sync with the cloud, and libsql for remote-only access over the libsql protocol. Use when connecting Python applications to Turso Cloud.

turso-cloud-go

Work with Turso Cloud from Go: tursogo for local-first databases that sync with the cloud, and libsql-client-go for remote-only access over the libsql protocol. Use when connecting Go applications to Turso Cloud.

turso-cloud-rust

Work with Turso Cloud from Rust: the turso crate (sync feature) for local-first databases that sync with the cloud, and the libsql crate for remote-only access over the libsql protocol. Use when connecting Rust applications to Turso Cloud.

turso-cloud-auth

Authenticate and authorize access to Turso Cloud databases: database URLs, platform tokens via the Turso CLI, scoping (group/database/read-only/time-limited), fine-grained per-table permissions, external auth providers via JWKS (Clerk, Auth0), and token invalidation. Use when issuing credentials, restricting what a client can do, or wiring an existing auth provider to Turso.

turso-cloud-vercel

Use and manage Turso Cloud databases provisioned through the Vercel Marketplace (integration slug tursocloud): injected environment variables, inspecting and provisioning resources with the Vercel CLI, region selection, and safety rules for credentials and destructive operations. Use when a Vercel project has — or needs — a Turso database.

Turso Cloud features

Turso Cloud databases support these features out of the box:

  • Vector search — native similarity search for AI/RAG workflows, no extensions needed. Supports cosine, L2, and L1 distance functions with DiskANN indexing.

  • Full-text search — keyword search with BM25 ranking via built-in FTS support.

  • AI & embeddings — native vector types for storing and querying embeddings.

  • Branching — create isolated copy-on-write database branches for testing/staging.

  • Point-in-time recovery — restore databases to any previous point in time (retention depends on plan).

  • Embedded replicas — local replicas that sync with Turso Cloud for fast reads and offline support.

  • SQLite extensions — JSON, FTS5, R*Tree, SQLean, UUID, regexp.

Further reading

Turso online docs — https://docs.turso.tech (Mintlify — append .md to any URL path for raw markdown, e.g. https://docs.turso.tech/sdk/ts/quickstart.md). Each sub-skill carries its own docs links; general references:

TopicURL
AI & embeddingshttps://docs.turso.tech/features/ai-and-embeddings.md
Embedded replicashttps://docs.turso.tech/features/embedded-replicas/introduction.md
Cloud limitationshttps://docs.turso.tech/cloud/limitations.md
SQLite extensionshttps://docs.turso.tech/features/sqlite-extensions.md
Full docs index (for LLMs)https://docs.turso.tech/llms.txt

Files

turso-cloud-vercel/overview.md

Vercel Marketplace

Working with Turso Cloud databases provisioned through the Vercel Marketplace (integration slug: tursocloud). This file contains exact commands, safety rules, and the mental model an agent needs to operate autonomously.

If the user has already provisioned a Turso database and connected it to their project, go straight to Using an already-provisioned database.

Security: never read secrets

Warning: NEVER read .env files or any file that may contain Turso credentials. This includes direct reads (cat .env.local), wildcards (cat *), and any command that could print directory contents where a .env* file exists. Use vercel env ls to see variable names (values are redacted) — that is all an agent needs; the SDK reads the values from process.env at runtime.

Using an already-provisioned database

Every Vercel project connected to a Turso resource has two environment variables injected by the integration:

  • TURSO_DATABASE_URL — the database connection URL

  • TURSO_AUTH_TOKEN — the token used to authenticate requests

A --prefix chosen at connect time may have altered the names (e.g. ANALYTICS_TURSO_DATABASE_URL) — always verify with vercel env ls before writing connection code.

# 1. Link the local checkout to the Vercel project (if not already linked)
vercel link --yes
# 2. Verify the variable names (values stay redacted)
vercel env ls
# 3. Make the variables available for local development — do NOT read the file
vercel env pull .env.local

Then connect with the recommended SDK — @tursodatabase/serverless (fetch-only, works in Vercel serverless and edge functions). See turso-cloud-js for install, query, batch, and transaction examples.

In-Function SQLite — @tursodatabase/vercel-experimental (BETA)

Vercel-specific alternative for read-heavy workloads: database pages are replicated into the serverless function, so reads execute locally with zero network round-trips while writes go directly to the remote database. Databases are created on demand (createDb("user-" + userId)), which makes database-per-tenant patterns trivial. Configured with TURSO_API_TOKEN, TURSO_ORG, and TURSO_GROUP (a Turso platform API token — not the marketplace-injected variable pair). See https://docs.turso.tech/integrations/vercel.md for setup and the full comparison.

Inspecting state (safe, autonomous)

These commands are read-only and can be run freely:

# Turso resources for the linked project (--all for the whole team)
vercel integration list --integration tursocloud --format=json

# Environment variable names for the linked project (values redacted)
vercel env ls

# Open the Turso dashboard via SSO (opens a browser)
vercel integration open tursocloud

Note: Available vercel integration subcommands vary between CLI versions — run vercel integration --help to see what the installed version supports before relying on a subcommand.

Provisioning a new database

Provisioning is additive and non-destructive, but whether an agent may do it autonomously depends on the installation's billing plan:

  • On paid plans, Turso does not limit the number of databases — an agent may provision without confirmation.

  • On the free starter plan, the installation is limited to 100 databases — get the user's approval before provisioning so an autonomous agent doesn't silently consume the quota. If the plan is unknown, assume starter and ask.

vercel integration add tursocloud --name my-db --metadata region=iad1 --plan starter
  • region is the only metadata key. It is required at creation and cannot be changed afterwards.

  • After provisioning, the CLI connects the resource to the linked project and runs vercel env pull automatically (--no-connect / --no-env-pull to skip).

  • When connecting a second Turso database to the same project, avoid variable-name collisions with --prefix (prepended as-is, e.g. --prefix ANALYTICS_ → ANALYTICS_TURSO_DATABASE_URL).

  • Environment variable changes only apply to new deployments — redeploy the project afterwards.

  • If the integration is not installed yet, first-time installation requires accepting marketplace terms — never accept terms on the user's behalf; direct the user to complete that step in the Vercel dashboard.

Regions

The region metadata key takes a Vercel region code, mapped to a Turso location:

Vercel region codeTurso locationRegion
iad1aws-us-east-1US East (Virginia)
cle1aws-us-east-2US East 2 (Ohio)
pdx1aws-us-west-2US West (Oregon)
dub1aws-eu-west-1EU West (Ireland)
bom1aws-ap-south-1AP South (Mumbai)
hnd1aws-ap-northeast-1AP NorthEast (Tokyo)

Pick the region where the project's Vercel Functions run — the database's client is the deployed function, not the developer's machine, so never choose a region based on the local environment. To determine the function region:

  1. Check vercel.json for a regions field (e.g. "regions": ["dub1"]) — it overrides the project setting.

  2. Otherwise use the project's Function Region setting (Vercel dashboard → Project Settings → Functions). If it was never changed, Vercel's default is iad1.

  3. If the function region is not in the table above, pick the geographically closest supported region (e.g. fra1 → dub1); if functions run in multiple regions, pick the one closest to where most writes originate.

Warning: ANY DESTRUCTIVE ACTION MUST BE DONE THROUGH EXPLICIT USER CONSENT. An agent must NEVER autonomously delete databases, disconnect resources from projects, uninstall the integration, change billing plans, or rotate credentials. All of these can cause data loss, service disruption, or billing changes.

  • Deleting a database resource permanently destroys its data. Disconnecting a resource removes its environment variables and breaks deployments that use it. Both are done from the Vercel dashboard (or newer CLI versions' vercel integration resource subcommands).

  • Billing plan is installation-scoped — the plan (starter free tier; paid tiers with _overages variants for pay-as-you-go beyond quotas) applies to ALL Turso databases under the installation, and billing is unified through Vercel. Always present pricing and get confirmation before any plan change.

  • Uninstalling the integration (vercel integration remove tursocloud) requires all resources to be removed first.

  • Rotating credentials (from the resource's settings in the Vercel dashboard) hard-invalidates previously issued tokens for that database — every consumer of the old token loses access once it expires. After rotation, redeploy connected projects and re-run vercel env pull.

Docs

TopicURL
Turso + Vercel integration (SQL over HTTP, In-Function SQLite)https://docs.turso.tech/integrations/vercel.md
Vercel CLI integration commandhttps://vercel.com/docs/cli/integration

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Security

What our scanner noticed· Low risk

  • Instructions that use the network

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
Turso
Publisher
Turso (Official)
Source
tursodatabase/agent-skills · skills/turso-cloud · commit 34ced52
Licence
MIT License (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Turso or Turso.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download turso-cloud.zip