Serverless libSQL, Free Hosted libSQL (Turso-Compatible) | Layerbase

Layerbase

4 min read Original article ↗

SQLite-compatible, edge-friendly, with HTTP and WebSocket drivers. Free tier, the same SQL you already know, cloud or self-host with the Layerbase CLI.

Free tier, no credit card

  • Free tier

    $0/mo, no credit card

  • Then flat

    $5 or $15/mo, no meters

  • Encrypted

    TLS on every plan

  • Layerbase Cloud

    Managed, in seconds

  • Desktop and CLI

    Run it locally or self-host

Edge access

SQLite semantics over HTTP and WebSockets

The libSQL client wraps SQL queries in HTTPS calls, so Cloudflare Workers, Vercel Edge, and any runtime that cannot hold a TCP socket can talk to a libSQL endpoint. Point the same client library Turso users already have at the URL and auth token from the dashboard, and the SQL you write is still SQLite SQL. It hibernates when idle, wakes on the next connection, and branches like the rest of the branchable engines, copy-on-write once Branching is turned on in the database Settings tab.

Full libSQL connection guide

Quick start

Connect with any libSQL client

Edge and serverless apps that want SQLite semantics, multi-region replication patterns, and projects already on Turso that want a portable alternative.

  • Spin up a libSQL for an edge or Cloudflare Workers app via the HTTP driver
  • Run SQLite-compatible schema with an HTTP-friendly client where the file-based mode does not fit
  • Per-tenant libSQL databases that hibernate between bursts
  • Local-first development on Layerbase Desktop, deploy the same schema to cloud
  • Self-host on your own hardware with the Layerbase CLI
Full libSQL connection guide
const db = createClient({ url: 'https://your-host.cloud.layerbase.dev', authToken: process.env.LIBSQL_AUTH_TOKEN })

Where to run it

Cloud, desktop, or self-host

One database, three places it can live. Pick the speed you want and move between them when you outgrow it.

Free libSQL hosting

What you actually get on the free libSQL tier

libSQL is SQLite with a network in front of it: the SQL you already know, reachable over HTTP and WebSocket from edge runtimes. This is what the Free plan includes and where the line is.

See every engine on the free plan

Always on

libSQL that never sleeps, from $5/month

Branch libSQL for every preview deploy

Fork a running libSQL into a full, isolated copy with its own connection string. With Branching turned on for the database, copy-on-write makes it near-instant, not a dump and restore. Point a preview deploy at it, test a migration, then throw it away. Layerbase branches 17 engines, not just Postgres.

See how branching works

What you get

Everything a libSQL database should ship with

The same primitives on every libSQL database: TLS, web console, hibernation, and a real dashboard. The rows that need a paid plan say so on the row; nothing here is hidden behind a sales call.

What it costs

What libSQL costs on Layerbase

Plans are flat. There is no per-hour compute meter, no per-database line item, and no ingress or egress fee, so the bill does not change shape when your traffic does. You do not need an AWS, GCP, or Azure account either: Layerbase runs the infrastructure.

Side by side

Hosted libSQL, compared

Competitor facts verified September 7, 2026 against each vendor's own pricing and documentation pages: Turso.

Sibling engine

Want the upstream SQLite specifically?

If you do not need the HTTP or WebSocket driver and want the bare upstream engine, point your client at SQLite on Layerbase instead. Both run on the same platform.

Compare libSQL and SQLite

Upstream project

libSQL is developed by the libSQL project. Layerbase packages and hosts official releases; the engine itself is built upstream.

turso.tech