{
 "kind": "api",
 "slug": "turso",
 "path": "apis/turso/",
 "name": "Turso",
 "logo": "https://agentgid.com/media/avatars/tursodatabase.png",
 "maker": null,
 "density": "full",
 "crumbs": [
  [
   "APIs",
   "apis/"
  ],
  [
   "Databases and backends",
   "apis/backend-db/"
  ]
 ],
 "lead": "Small SQLite databases for every user or agent.",
 "chips": [
  {
   "label": "Databases and backends",
   "path": "apis/backend-db/"
  },
  {
   "label": "Official MCP server"
  }
 ],
 "primary": {
  "label": "Copy prompt for your agent",
  "copy": "Connect my app to Turso: read TURSO_DATABASE_URL and TURSO_AUTH_TOKEN from .env on the server, use @tursodatabase/serverless for a --tursodb database (or @libsql/client/web for libSQL), pin the package version, and never send the token to the browser."
 },
 "links": [
  {
   "label": "Website",
   "href": "https://turso.tech"
  },
  {
   "label": "Pricing",
   "href": "https://turso.tech/pricing"
  },
  {
   "label": "GitHub",
   "href": "https://github.com/tursodatabase/turso"
  }
 ],
 "track": "Outages, price changes and new versions on your dashboard",
 "verdicts": [
  {
   "key": "price",
   "label": "Price",
   "value": "Open source",
   "status": "yes",
   "sub": "Run it yourself for free",
   "quote": "Free $0/month Databases 100 Storage 5GB Monthly Rows Read 500 Million Monthly Rows Written 10 Million",
   "note": "Free tier: 100 databases, 5GB storage, 500 Million rows read and 10 Million rows written a month. As reported on the official pricing page, checked Oct 10, 2026.",
   "src": "https://turso.tech/pricing"
  },
  {
   "key": "commercial",
   "label": "Commercial use",
   "value": "With conditions",
   "status": "cond",
   "sub": null,
   "quote": "This project is licensed under the [MIT license].",
   "note": "The MIT engine can go into any app; Turso Cloud has free and paid plans, and its general terms speak of your own internal business or personal use, so read them for your case.",
   "src": "https://github.com/tursodatabase/turso/blob/main/README.md"
  },
  {
   "key": "key",
   "label": "Key & sign-up",
   "value": "API key, server only",
   "status": "info",
   "sub": "Env var TURSO_DATABASE_URL and TURSO_AUTH_TOKEN for queries; TURSO_ORG and TURSO_PLATFORM_TOKEN for the Platform API (names used in the official examples)",
   "quote": "Never share your API token in public, including repositories, and CI/CD Actions.",
   "note": "Bearer token: a database (or group) token for queries, and a separate Platform API token to create and manage databases. Keep Platform API tokens and full-access database tokens on the server; per-user, read-only or expiring tokens issued through JWKS are the documented way to scope client access.",
   "src": "https://docs.turso.tech/api-reference/authentication.md"
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Official MCP server",
   "status": "yes",
   "sub": "llms.txt · OpenAPI · SDK",
   "quote": "Turso runs a hosted Model Context Protocol (MCP) server at https://mcp.turso.ai/mcp.",
   "note": " Our agent check: 6 of 6 (Nov 13, 2026).",
   "src": "https://docs.turso.tech/integrations/mcp.md"
  }
 ],
 "vfoot": "Checked against the maker's official pages, pricing on Oct 10, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Turso does",
   "parts": [
    {
     "t": "prose",
     "text": "Turso is an online database service built on SQLite, the small database that lives in one file. Your app can create a separate database for each user, customer or AI agent in a second, and pay mostly for what it stores. The same database can also live as a file on a phone or laptop and sync with the cloud."
    },
    {
     "t": "list",
     "items": [
      "Turso is one of 29 APIs in the Databases and backends category on AgentGid.",
      "Its cheapest paid plan ($5.99 a month) is the 4th cheapest of the 18 here with a monthly plan.",
      "It is one of 26 that can be started for free.",
      "It ships an official MCP server, like 7 others here.",
      "Its official SDK is the 8th most downloaded in the category (6M a week)."
     ],
     "muted": true
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "A database for every user or agent",
       "text": "When someone signs up, or your app starts a new AI agent, create a private database just for them. One customer's data can never mix with another's.",
       "idea": false
      },
      {
       "title": "Memory for an AI assistant",
       "text": "Let your assistant save what it learned and find related notes later by meaning, not by exact words. The search is built into the database.",
       "idea": false
      },
      {
       "title": "An app that works offline",
       "text": "Keep the data in a file on the device so the app reads and writes with no internet. Changes go to the cloud when the connection comes back.",
       "idea": false
      },
      {
       "title": "Data for a serverless site",
       "text": "Query the database from short-lived functions on hosts like Vercel or Cloudflare, with no database server to run yourself.",
       "idea": false
      },
      {
       "title": "A test copy of live data",
       "text": "Copy your real database into a branch, try a risky change there, and delete the branch when you are done.",
       "idea": false
      },
      {
       "title": "A live database for each generated site",
       "text": "If your product builds small apps or sites for people, give each one its own database. Idle ones cost little because you pay mostly for storage.",
       "idea": true
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Turso popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "6.1M",
       "l": "SDK downloads a week",
       "d": "+59.5% on the 4-week average",
       "up": true
      },
      {
       "n": "147",
       "l": "public agent repos use its SDK"
      },
      {
       "n": "25.4K",
       "l": "GitHub stars, tursodatabase/turso"
      }
     ]
    },
    {
     "t": "small",
     "text": "SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026."
    }
   ]
  },
  {
   "id": "pricing",
   "nav": "Pricing and limits",
   "h2": "Pricing",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Free tier",
       "v": "100 databases, 5GB storage, 500 Million rows read and 10 Million rows written a month"
      },
      {
       "l": "Cheapest plan",
       "v": "$5.99 a month"
      },
      {
       "l": "Usage price",
       "v": "Developer overage: +$0.75/GB storage, +$1/Billion rows read, +$1/Million rows written"
      },
      {
       "l": "Plans",
       "v": "Developer is $5.99/month billed monthly or $4.99/month with yearly billing. Paid plans billed on the first day of each month. Turso is joining Supabase (Turso blog, 2026-10-02)."
      }
     ]
    },
    {
     "t": "h3",
     "text": "What one action costs"
    },
    {
     "t": "table",
     "head": [
      "Action",
      "Price"
     ],
     "num": true,
     "rows": [
      [
       "1 million rows written beyond the Developer plan allowance",
       "$1"
      ],
      [
       "1 billion rows read beyond the Developer plan allowance",
       "$1"
      ],
      [
       "1 GB of storage beyond the Developer plan allowance, per month",
       "$0.75"
      ]
     ]
    },
    {
     "t": "more",
     "items": [
      {
       "title": "Price history",
       "items": [
        "A year of the pricing page in the Internet Archive (12 months): the lowest monthly figure went from $4.99 (2025-10) to $4.08 (2026-10).",
        "2026-09: lowest $/month figure $4.99 → $4.08; new figures $4.08/mo, $82.42/mo",
        "2026-09: free plan shown"
       ]
      }
     ]
    },
    {
     "t": "small",
     "text": "As reported on the official pricing page, checked Oct 10, 2026. Prices change: confirm before you buy.",
     "link": "turso.tech/pricing",
     "href": "https://turso.tech/pricing"
    }
   ]
  },
  {
   "id": "limits",
   "nav": null,
   "spy_as": "pricing",
   "h2": "Limits",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Free",
       "v": "100 databases, 5GB storage, 500 million rows read and 10 million rows written a month",
       "src": "https://turso.tech/pricing"
      },
      {
       "l": "Free",
       "v": "Databases are archived after 10 days of inactivity",
       "src": "https://docs.turso.tech/cli/group/unarchive.md"
      },
      {
       "l": "Developer",
       "v": "Unlimited databases, 9GB storage, 2.5 billion rows read and 25 million rows written a month, then overage",
       "src": "https://turso.tech/pricing"
      }
     ]
    },
    {
     "t": "small",
     "text": "From the official docs.",
     "link": "turso.tech/pricing",
     "href": "https://turso.tech/pricing"
    }
   ]
  },
  {
   "id": "access",
   "nav": "Access and terms",
   "h2": "Key and access",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "How it signs in",
       "v": "Bearer token: a database (or group) token for queries, and a separate Platform API token to create and manage databases."
      },
      {
       "l": "Environment variable",
       "v": "TURSO_DATABASE_URL and TURSO_AUTH_TOKEN for queries; TURSO_ORG and TURSO_PLATFORM_TOKEN for the Platform API (names used in the official examples)",
       "code": true
      },
      {
       "l": "Safe in browser code",
       "v": "No, keep it on your server",
       "status": "no"
      },
      {
       "l": "Card at sign-up",
       "v": "No"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Steps only a person can do"
    },
    {
     "t": "list",
     "items": [
      "Sign up for Turso Cloud (the CLI command opens the browser) or in the dashboard. Run turso db create and turso db tokens create, or let the person paste the URL and token into .env.",
      "For a database per user, create an organization-scoped Platform API token. Read TURSO_ORG and TURSO_PLATFORM_TOKEN from .env on the server only.",
      "Choose a paid plan before production traffic, and decide whether to enable overages. No code change; the same URL and tokens keep working."
     ]
    }
   ]
  },
  {
   "id": "terms",
   "nav": null,
   "spy_as": "access",
   "h2": "Commercial use and your data",
   "parts": [
    {
     "t": "prose",
     "text": "The database engine is open source under the MIT license, so you can ship it inside your own app. Turso Cloud is a paid online service with a free plan; its terms of use govern how you may use it."
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In a paid app",
       "v": "With conditions",
       "status": "cond",
       "sub": "The MIT engine can go into any app; Turso Cloud has free and paid plans, and its general terms speak of your own internal business or personal use, so read them for your case.",
       "quote": "This project is licensed under the [MIT license].",
       "src": "https://github.com/tursodatabase/turso/blob/main/README.md"
      },
      {
       "l": "inside-app-bundle",
       "v": "Yes",
       "status": "yes",
       "sub": "The Turso database engine is MIT licensed and runs inside your process; keep the MIT notice.",
       "quote": "Turso is an in-process SQL database written in Rust, compatible with SQLite.",
       "src": "https://github.com/tursodatabase/turso/blob/main/README.md"
      },
      {
       "l": "client-work",
       "v": "With conditions",
       "status": "cond",
       "sub": "The docs describe running databases for your end users, but the general terms say not on behalf of a third party; confirm with Turso for agency or reseller setups.",
       "quote": "Create and manage databases on behalf of your end users.",
       "src": "https://docs.turso.tech/api-reference/introduction.md"
      },
      {
       "l": "Keeps your data",
       "v": "Personal account data is kept while the account is open or as needed to provide the service.",
       "quote": "We retain personal data about you for as long as you have an open account with us or as otherwise necessary to provide you with our services.",
       "src": "https://turso.tech/privacy-policy"
      }
     ]
    }
   ]
  },
  {
   "id": "errors",
   "nav": null,
   "spy_as": "access",
   "h2": "Errors to handle",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "401",
       "v": "Invalid or expired auth token",
       "sub": "Check the token in .env; create a new one with turso db tokens create (or a new Platform token)."
      },
      {
       "l": "402",
       "v": "Payment required",
       "sub": "Check that the organization has an active subscription; ask the person to fix billing."
      },
      {
       "l": "403",
       "v": "The token has no permission for this resource",
       "sub": "Use a token scoped to the right organization or group, with the needed scopes."
      },
      {
       "l": "409",
       "v": "The resource already exists, for example a database with that name",
       "sub": "Pick another name, or fetch the existing database instead of creating it again."
      }
     ]
    }
   ]
  },
  {
   "id": "agent",
   "nav": "For agents",
   "h2": "Use it from an agent",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Our agent check",
       "v": "6 of 6: llms.txt yes, OpenAPI yes, SDK yes, MCP yes, status page yes, AI assistants allowed yes",
       "sub": "Checked Nov 13, 2026."
      },
      {
       "l": "MCP server",
       "v": "Turso MCP server (hosted)",
       "sub": "/plugin marketplace add tursodatabase/turso-mcp\n/plugin install turso@turso"
      },
      {
       "l": "npm",
       "v": "npm install @libsql/client",
       "code": true
      },
      {
       "l": "PyPI",
       "v": "pip install libsql",
       "code": true
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Turso",
       "me": true,
       "facts": [
        "Free (open source)",
        "Free tier",
        "Official MCP"
       ]
      },
      {
       "name": "Neon",
       "why": "Pick Neon when you want a managed Postgres database with autoscaling instead of SQLite.",
       "path": "apis/neon/",
       "facts": [
        "from $0.023 per GB-month Object",
        "Free tier",
        "Official MCP"
       ]
      },
      {
       "name": "Firebase",
       "why": "Pick Firebase when you want the database together with sign-in, hosting and server functions from one platform.",
       "path": "apis/firebase/",
       "facts": [
        "from $0.1/GB storage",
        "Free tier"
       ]
      },
      {
       "name": "DuckDB",
       "why": "Pick DuckDB when you analyse Parquet, CSV or JSON files on your own machine rather than store app data in the cloud.",
       "path": "apis/duckdb/",
       "facts": [
        "Free (open source)",
        "No free tier"
       ]
      }
     ],
     "more": "All databases and backends APIs",
     "more_path": "apis/backend-db/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "Connect my app to Turso: read TURSO_DATABASE_URL and TURSO_AUTH_TOKEN from .env on the server, use @tursodatabase/serverless for a --tursodb database (or @libsql/client/web for libSQL), pin the package version, and never send the token to the browser."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Install the Turso command line tool and sign up; the sign-up command opens your browser.",
       "code": "brew install tursodatabase/tap/turso\nturso auth signup",
       "src": "https://docs.turso.tech/quickstart.md"
      },
      {
       "text": "Create a database and an access token for it, then store both in .env as TURSO_DATABASE_URL and TURSO_AUTH_TOKEN.",
       "code": "turso db create my-db --tursodb\nturso db tokens create my-db",
       "src": "https://docs.turso.tech/sdk/http/quickstart.md"
      },
      {
       "text": "Connect from your app with the package that matches the engine and run a query.",
       "code": "import { connect } from \"@tursodatabase/serverless\";\n\nconst conn = connect({\n  url: process.env.TURSO_DATABASE_URL,\n  authToken: process.env.TURSO_AUTH_TOKEN,\n});",
       "src": "https://docs.turso.tech/sdk/ts/quickstart.md"
      }
     ]
    },
    {
     "t": "h3",
     "text": "First request"
    },
    {
     "t": "tabs",
     "label": "First request",
     "items": [
      {
       "tab": "Request",
       "code": "fetch(url, {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${authToken}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    requests: [\n      { type: \"execute\", stmt: { sql: \"SELECT * FROM users\" } },\n      { type: \"close\" },\n    ],\n  }),\n})\n  .then((res) => res.json())",
       "intro": "SQL over HTTP from the official quickstart (trimmed); url is https://[databaseName]-[organizationSlug].turso.io/v2/pipeline and authToken a database token."
      },
      {
       "tab": "Response",
       "code": "{\n  \"baton\": null,\n  \"base_url\": null,\n  \"results\": [\n    {\n      \"type\": \"ok\",\n      \"response\": {\n        \"type\": \"execute\",\n        \"result\": {\n          \"cols\": [],\n          \"rows\": [],\n          \"affected_row_count\": 0,\n          \"last_insert_rowid\": null,\n          \"replication_index\": \"1\"\n        }\n      }\n    }, ...\n  ]\n}"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "import { createClient } from \"@libsql/client\" inside a Cloudflare Worker or edge function",
       "fix": "import { createClient } from \"@libsql/client/web\"",
       "why": "The default entry needs Node.js; the /web entry talks over HTTP."
      },
      {
       "dont": "Using @libsql/client against a database created with --tursodb",
       "fix": "Use @tursodatabase/serverless for Turso-engine databases and @libsql/client for libSQL ones",
       "why": "The two cloud engines have different drivers."
      },
      {
       "dont": "PRAGMA user_version = 2 to track migrations, as in plain SQLite",
       "fix": "Keep the version in a _schema_version table",
       "why": "user_version is read-only on Turso Cloud."
      },
      {
       "dont": "turso auth api-tokens mint my-token (no --org) for a deploy script",
       "fix": "turso auth api-tokens mint my-token --org my-org, with scopes or a group and --read-only when possible",
       "why": "Unrestricted tokens reach every organization and are deprecated."
      },
      {
       "dont": "Shipping one full-access database token to every user's browser",
       "fix": "Issue short-lived, scoped tokens per user (for example from Clerk or Auth0 through JWKS), or query from your server",
       "why": "Tokens can be limited by database, table, action and expiry; a shared full-access token cannot."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Is there a free plan?",
       "a": "Yes. The Free plan costs $0 a month with 100 databases and 5GB of storage, and needs no credit card, as reported on the pricing page.",
       "evidence": {
        "url": "https://turso.tech/pricing",
        "quote": "Start free, no credit card required."
       }
      },
      {
       "q": "Can I try it without an account?",
       "a": "Yes, locally. The Turso packages open a database file on your machine and need no token; the cloud needs an account.",
       "evidence": {
        "url": "https://docs.turso.tech/local-development.md",
        "quote": "You don't need to provide an authToken in development."
       }
      },
      {
       "q": "Can an AI agent manage my Turso databases?",
       "a": "Yes. Turso runs a hosted MCP server; you approve access in the browser and the agent gets a scoped token.",
       "evidence": {
        "url": "https://docs.turso.tech/integrations/mcp.md",
        "quote": "Authentication is OAuth 2.1 (the same model you use to log in to the dashboard): you approve access in the browser and the agent receives a scoped token."
       }
      },
      {
       "q": "Does it search by meaning for AI apps?",
       "a": "Yes. Vector search is built in, with no extension to install.",
       "evidence": {
        "url": "https://docs.turso.tech/features/ai-and-embeddings.md",
        "quote": "Turso and libSQL enable vector search capability without an extension."
       }
      },
      {
       "q": "What happens to Turso after the Supabase deal?",
       "a": "Turso says the platform keeps running and the database stays open source.",
       "evidence": {
        "url": "https://turso.tech/blog/turso-is-joining-supabase",
        "quote": "Turso database remains open source and actively developed."
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Maker",
   "Turso"
  ],
  [
   "Category",
   "Databases and backends"
  ],
  [
   "Price",
   "Free (open source)"
  ],
  [
   "Plans from",
   "$5.99/mo"
  ],
  [
   "Official SDK",
   "npm @libsql/client, PyPI libsql"
  ],
  [
   "Latest SDK",
   "0.18.0 on npm"
  ],
  [
   "Agent check",
   "6 of 6"
  ],
  [
   "Pricing checked",
   "Oct 10, 2026"
  ]
 ],
 "good": [
  "Free plan databases are archived after 10 days without use; you have to unarchive them before they work again.",
  "Turso is being bought by Supabase. Turso says existing databases and workflows keep running as they do today.",
  "Databases on the new Turso engine are in early preview in the cloud; the older libSQL engine is the long-tested option."
 ],
 "checked_line": "Read by AgentGid from 37 official pages, card checked Nov 10, 2026; usage numbers update daily."
}