Documentation
LibSQL
Connect TableR to libSQL and remote Turso databases with a URL and auth token, connection fields, verifying the connection, and troubleshooting.
libSQL is SQLite-compatible and can run locally or as a remote Turso database. Point TableR at a libSQL URL and, for remote databases, add an auth token.
Overview
TableR connects to libSQL over its URL. A remote Turso database is reached at your-db.turso.io and authenticated with a token; a local libSQL server uses a local URL. Because libSQL is SQLite-compatible, the SQL you already know applies.
- Remote Turso — connect to your-db.turso.io with an auth token.
- Local libSQL — connect to a local libSQL URL.
- SQLite-compatible — the same SQL dialect and functions as SQLite.
Before you start
- A libSQL URL — your-db.turso.io for Turso, or a local libSQL URL.
- An auth token, for a remote / Turso database.
- The port, if your local server does not use 8080.
Connection fields
These defaults match TableR's libSQL connection form. The auth token is stored in the operating system keyring, never in plain configuration files.
| Field | Required | Default | Notes |
|---|---|---|---|
| Host | Yes | — | your-db.turso.io, or a local libSQL URL. |
| Port | No | 8080 | Used by local libSQL servers. |
| Credential | No | — | An auth token for remote / Turso databases; stored in the OS keyring. |
| Database | No | — | Optional. |
Connect with the form
- 1Choose LibSQL
Open the launcher and pick the LibSQL card.
- 2Enter the libSQL URL
Use your-db.turso.io for Turso, or your local libSQL URL.
- 3Add the auth token
Required for remote / Turso databases; saved to the OS keyring.
- 4Set the port (local)
Local servers use 8080 by default.
- 5Save and connect
Save the profile so it reappears in the launcher, then connect.
Use a connection string
You can also connect with a libSQL URL. Remote Turso databases use the libsql:// scheme with an auth token.
libsql://your-db.turso.io?authToken=YOUR_TOKEN- Use libsql:// for remote Turso databases.
- Prefer storing the token in the keyring over embedding it in the URL.
- For a local server, use its libSQL or http(s) URL.
Verify the connection
Once connected, open a SQL tab and run a quick check:
SELECT sqlite_version();
SELECT name FROM sqlite_master WHERE type = 'table';The first statement returns the SQLite-compatible version; the second lists tables.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Could not connect to URL | Wrong libSQL URL or no network access. | Re-check the URL (your-db.turso.io) and your connection. |
| Unauthorized / invalid token | Missing or wrong auth token. | Add a valid auth token; it is saved to the keyring. |
| Token expired | The Turso token is no longer valid. | Generate a new token and update the saved credential. |
| Connection refused (local) | Local libSQL server not running, or wrong port. | Start the server and confirm the port (default 8080). |