A cross-platform SQL editor and database manager for Linux, macOS, and Windows, supporting MySQL, PostgreSQL, SQLite, SQL Server and many more.
- Stars
- 4,909
- Forks
- 174
- Open issues
- 25
- Last commit
- 21 days ago
What is it?
sqlit is a terminal user interface for SQL databases, written in Python and built on Textual. It lets you save connections, browse tables, views and other schema objects, write queries with syntax highlighting and autocomplete, and inspect results without launching a heavy desktop GUI.
It supports a wide range of engines, including PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, Oracle, DuckDB, Snowflake, BigQuery and Trino. Connections can go through SSH tunnels, passwords are kept in the OS keyring, and running database containers can be discovered through Docker. Missing Python drivers are installed on demand.
Beyond the interactive interface, a CLI mode executes SQL from the command line and outputs CSV or JSON, which makes it usable in scripts.
Key features
- 01Connection manager for saving and switching between databases
- 02Syntax highlighting, query history and autocomplete in the editor
- 03Vim-style modal editing and motions in the query editor
- 04Browse tables, views, procedures, indexes, triggers and sequences
- 05Fuzzy filter over query results
- 06SSH tunnel support with password or key authentication
- 07Command-line mode with CSV and JSON output
Use cases
- Quickly querying a PostgreSQL or MySQL database over SSH from a remote server
- Inspecting a local SQLite or DuckDB file without installing a desktop client
- Running SQL scripts from the shell and exporting results as JSON or CSV
- Exploring databases running in local Docker containers
Topics
FAQ
- What is sqlit?
- A keyboard-driven terminal UI (TUI) for connecting to and querying many SQL databases, inspired by lazygit. sqlit is a terminal user interface for SQL databases, written in Python and built on Textual. It lets you save connections, browse tables, views and other schema objects, write queries with syntax highlighting and autocomplete, and inspect results without launching a heavy desktop GUI.
- Is sqlit free to use? What license does it have?
- sqlit is open source under the MIT license. Check the license terms before using it in commercial products.
- Is sqlit still maintained?
- Actively maintained. The last commit to sqlit was on Sep 28, 2026.
- What can I use sqlit for?
- Quickly querying a PostgreSQL or MySQL database over SSH from a remote server Inspecting a local SQLite or DuckDB file without installing a desktop client Running SQL scripts from the shell and exporting results as JSON or CSV Exploring databases running in local Docker containers
- Where can I get sqlit?
- The source code and installation instructions are on GitHub: https://github.com/Maxteabag/sqlit
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Lightweight cross-platform database client for 100+ databases, with desktop, Docker, CLI, a built-in AI SQL assistant and an MCP server.
An interactive terminal viewer and monitor for NVIDIA GPU devices and the processes running on them, with Python APIs for building custom tools.
A terminal tool that replays Git commits as animated typing sessions with syntax highlighting and file tree transitions.
A free, self-hostable no-code platform that turns SQL databases like PostgreSQL, MySQL and SQLite into an Airtable-style spreadsheet interface with automatic REST APIs.
Glances is a cross-platform terminal system monitor (a top/htop alternative) with a web UI, REST API, and data export.