This is the shortest path from an empty server to a working database you can query in Database Studio.
Requirements
- Docker with the Compose plugin (or Kiri, if you prefer it locally)
opensslon the host that runs the installer- A directory you are happy to keep the stack in — the installer writes
compose.yml,.envandlibsql-data/there
1. Install
Run the installer inside the directory that should hold the stack:
curl --proto '=https' --tlsv1.2 -LsSf \
https://raw.githubusercontent.com/darkterminal/mylibsqladmin/refs/heads/main/scripts/installer.sh | sh
The script asks a few questions (timezone, application name, local or remote sqld, image tag) and generates a compose.yml with three services: webui, db and proxy. It also creates libsql-data/ and pins the container to your own uid and gid, so sqld can write to the volume without running as root.
Prefer to write the compose file yourself? The installation guide documents the LLI (local) and LRI (remote) layouts, the proxy ports, and the environment variables each service needs.
The installer targets localhost. For a public domain, use the manual install guide's custom domain + TLS section: terminate TLS in front of the proxy, forward the original Host, and set LIBSQL_PARENT_DOMAIN on both webapp and proxy. Host-based routing requires the proxy built from current source; the published :latest image does not have it yet.
2. Read the bootstrap credentials — once
On a fresh install the container runs php artisan migrate --force at start-up. When LIBSQL_SEED_DEFAULTS=true, the bootstrap seeder creates the first Super Admin and writes its credentials to:
storage/app/bootstrap-credentials.txt
Read the file, store the password in your password manager, then delete the file. It is created with mode 0600 and is never written again — there is no “show me the password” screen later.
The bootstrap file is a one-time hand-off, not a credential store. Delete it as soon as the first login succeeds. If you lose the password before saving it, reset it from the CLI with php artisan tinker rather than re-seeding.
3. Log in
Open the app (the installer prints the URL and port) and sign in with the seeded Super Admin.
After login you land on the dashboard. A brand-new install has no databases, so the empty state is expected.
4. Create a group and a database
A group is a way to share one credential across several databases. A database is the actual libSQL namespace — it becomes a directory on the sqld volume.
- Open Groups in the sidebar and choose New group. Name it something meaningful, for example
analytics. - Choose New Database in the header. Pick the group, enter a database name (
events), and leave Schema Database unchecked unless you are deliberately creating a shared-schema database. - Submit. The namespace is created on sqld immediately — it is not a UI-only record.
Database names may contain letters, digits, dashes and underscores. Pick the name you want to live with: it becomes the subdomain used by the proxy (events.localhost:8080 in local installs).
5. Mint a token and open Studio
Open Tokens, choose Generate New Token, select the database, optionally name the token and set an expiry. The full-access and read-only pair is displayed exactly once.
To query the database from the browser, open Databases and press Studio on the row. Studio mints a short-lived full-access token for your own account on every visit; you never copy it by hand.
6. Add people
Create users and assign roles from User Management (Super Admin only), then add them to a team from Teams. Members and Maintainers also need an explicit database grant before the database appears in their list.
Where to go next
- Read Roles at a glance before handing out accounts.
- Read Databases & groups for archiving, restoring and granting access.
- Read Tokens for the full credential lifecycle.