Sqlit is a Python TUI that connects to many SQL engines with vim-style editing, saved connections, and large result browsing.
Overview
Sqlit targets developers who want a fast terminal UI for everyday SQL without launching a heavyweight desktop IDE. pipx installs the sqlit-tui package, after which you pick or define connections inside the interface instead of memorizing CLI flags.
It supports a long list of relational and analytical databases, cloud warehouses, Flight SQL, SurrealDB, and osquery, with optional Docker container discovery and SSH tunnels. Credentials prefer the OS keyring when available.
The query editor highlights syntax, keeps per-connection history, offers modal vim motions, fuzzy result filtering, and schema browsing for tables, views, procedures, indexes, triggers, and sequences. A CLI mode runs SQL files with multi-statement handling.
Themes include Rose Pine, Tokyo Night, Nord, and Gruvbox. A dependency wizard installs missing Python drivers on demand, echoing lazygit’s learn-as-you-go philosophy.
Key features
- Vim-style modal query editor
- Dozens of database adapters
- OS keyring credential storage
- Docker container auto-discovery
- SSH tunnel connections
- Fuzzy search through huge results
- Saved connection profiles
- CLI batch SQL execution
Use cases
- Daily ad hoc SQL in the terminal
- Remote databases over SSH
- Quick Docker database inspection
- Lightweight alternative to GUI IDEs
Does the same job as
Sqlit doesn't name these products itself, but its own description shows it does the same job.