← All templates · Developer tools
Deploy LibreDB Studio in one click
A SQL IDE in the browser for PostgreSQL, MySQL, SQLite, MongoDB, Redis and more
A self-hosted alternative to DataGrip and CloudBeaver.
What is LibreDB Studio?
LibreDB Studio is an open-source SQL IDE that runs in the browser, an alternative to desktop clients like DataGrip. One interface opens PostgreSQL, MySQL, SQL Server, Oracle, MongoDB, Redis, ClickHouse and many more engines. The editor is Monaco, the core of VS Code, and it autocompletes your own tables and columns. Visual EXPLAIN draws a query's plan, ER diagrams follow the real foreign keys, and results land in a grid you can edit inline, chart, or export to CSV and JSON.
People self-host LibreDB Studio so the editor sits next to their databases and no database port has to face the internet. A team shares it, with admin and user roles, OIDC single sign-on and an audit trail of executed queries. The catch: there is no LDAP, and every database must be reachable from the server it runs on, directly or through an SSH tunnel.
Hosting LibreDB Studio on Pethost
- You sign in to Pethost with a passkey, GitHub or Google. No machine yet? You pick a plan, and the link waits until it is ready.
- New project opens at LibreDB Studio. You fill in what it asks for and click Create project: Email, Admin password.
- In a minute or two LibreDB Studio is live at its own address with HTTPS. Its secrets are made at random, and its data is in the nightly backup.
- It is a project like any other: you or your agent can change it, roll it back or restore it.
Questions about LibreDB Studio
Is LibreDB Studio free and open source?
Yes. It is MIT-licensed and has no paid edition: single sign-on, ER diagrams, the AI features and the NoSQL engines all ship in the same build.
Is LibreDB Studio a good DataGrip alternative?
For a team, it can be: one editor in the browser instead of a client on every laptop. Beyond the editor, it compares schemas and writes the migration SQL, profiles tables and generates code such as Prisma models.
Does LibreDB Studio have an AI assistant?
Yes, once you give it a model through its LLM_PROVIDER setting: Gemini, OpenAI, Ollama or any OpenAI-compatible endpoint. It then drafts SQL, explains query plans in plain language and checks destructive queries before they run.
How do I add users to LibreDB Studio?
An admin creates them under Admin → Accounts, as admin or user; only admins open the DBA maintenance tools. The other way in is OIDC single sign-on through Keycloak, Okta, Azure AD or another provider, with roles from its claims.
Does LibreDB Studio work on mobile?
Yes, in a phone's browser, with nothing to install. It has its own mobile navigation and shows query results as cards or as a table.
How much memory and disk does LibreDB Studio need?
LibreDB Studio is light: under 200 MB of memory, and it keeps only connections and saved queries. On Pethost the Starter plan is enough for it, with room for other apps beside it.
LibreDB Studio Docker Compose file
The template is this compose.yaml and the variables written into the project’s .env as it is created. Pethost runs the file as it is written.
Containers: libredb-studio (libredb/libredb-studio:0.18.3).
Volumes, in the nightly backup: data.
services:
libredb-studio:
image: libredb/libredb-studio:0.18.3
restart: unless-stopped
environment:
# Signs the sessions and seals the saved connections' passwords.
JWT_SECRET: ${JWT_SECRET}
ADMIN_EMAIL: ${ADMIN_EMAIL}
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
# Connections, saved queries and the accounts in a SQLite file, not in the browser.
STORAGE_PROVIDER: sqlite
TRUSTED_PROXY_HOPS: 1
volumes:
- data:/app/data
volumes:
data:
More in Developer tools
- GiteaGit hosting with pull requests and issues
- code-serverVS Code in the browser
- KrokiDiagrams from text: PlantUML, Mermaid, Graphviz and more
- CoderRemote development environments from Terraform templates, opened in VS Code, JetBrains, a browser or over SSH
- HasuraInstant GraphQL and REST APIs over a Postgres database, with permissions, events and a web console
- InsForgeA backend for apps that coding agents build: Postgres, auth, storage and edge functions