Docs / libSQL and Turso

← Databases

libSQL and Turso

The driver speaks the Hrana 3 protocol over HTTP(S) to a libSQL server (sqld) or to Turso. The SQL is SQLite's, so the navigator, the types and the plans are SQLite's too. The driver is part of the app; nothing is downloaded.

Connect

You pasteRead as
libsql://db-acme.turso.io?authToken=…HTTPS to that host, the token as the password
libsql://:token@localhost:8080?sslmode=disableplain HTTP, the token in the password position
libsql://localhost:8080?tls=0&authToken=ttls=0 is plain HTTP, tls=1 is HTTPS
wss://…, ws://…the same server over HTTP(S): wss is TLS, ws is not
https://host or http://host in a libSQL formthe server's HTTP address

Without a port the scheme's default is used: 443, or 80 when TLS is off.

Privileges

Whatever the token allows: the app sends the statements you run, and the SQLite catalog queries for the navigator.

What works

What does not

Agents

Read-only agents and read-only connections rely on the statement check alone; the server is not told to refuse writes. See Agents and the CLI.

Known limits

Tested on

The conformance suite runs on sqld v0.24.33 (container ghcr.io/tursodatabase/libsql-server), without TLS. Turso's cloud is not tested.

See also: Connecting, Troubleshooting.