Turso / libSQL
ProTurso is a hosted database service that uses libSQL, a fork of SQLite. DevDb connects to Turso databases and to other libSQL servers, for example a local sqld.
Automatic detection
DevDb finds a Turso database in:
.env: a database URL inTURSO_DATABASE_URL,TURSO_DB_URL,LIBSQL_URLorDATABASE_URL, and an auth token inTURSO_AUTH_TOKEN,TURSO_DB_AUTH_TOKEN,LIBSQL_AUTH_TOKENorDATABASE_AUTH_TOKEN.- A
drizzle.configfile withdialect: 'turso'.
Example .env:
ini
TURSO_DATABASE_URL=libsql://my-db-my-org.turso.io
TURSO_AUTH_TOKEN=eyJhbGciOi...Add a connection
- Under Remote Connections, click Add, then select Turso / libSQL.
- Enter the details:
| Field | Description |
|---|---|
| Database URL | A libsql://, https:// or http:// URL |
| Auth Token | The auth token of the database. Leave it empty for a local sqld without authentication. |
- Click Test, then click Connect.
Create a token with the Turso CLI (turso db tokens create <database>) or in the Turso dashboard. DevDb keeps the token in the secret storage of your editor.
MCP
MCP queries on libSQL are read-only unless Devdb.mcp.allowWrites is on.