A beautiful, keyboard‑driven terminal SQL explorer for Postgres, MySQL, SQLite, and DuckDB. One binary. No browser required.
Status: v0.5.0 (background autocomplete preload, profile picker, improved history filtering).
- Why SQLPilot
- Features
- Install
- Quick Start
- Keybindings
- Profiles
- Export
- Roadmap
- Keywords
- Tags
- Contributing
- License
- Terminal‑native schema browsing without leaving your workflow
- Keyboard‑first querying with instant results
- Zero‑config feel with profiles + keychain storage
- Single Go binary, no GUI dependencies
- Three‑panel TUI: schema tree, query editor, results pager
- Multi‑DB: Postgres, MySQL, SQLite, DuckDB
- Autocomplete from live schema (columns preloaded in background)
- SQL formatter (
Ctrl+L) - Query history with fuzzy filter and highlighted matches
- CSV/JSON export from results
- Profile wizard + OS keychain password storage
- Fuzzy profile picker when multiple profiles exist
go install github.com/ritiksuman07/sqlpilot@latestgit clone https://github.com/Ritiksuman07/sqlpilot.git
cd sqlpilot
go build ./...
./sqlpilotDuckDB requires the duckdb build tag (and CGO enabled).
go build -tags duckdb ./cmd/sqlpilotsqlpilot --dsn "postgres://user:pass@localhost:5432/dbname"sqlpilot --dsn "/path/to/app.db"sqlpilot --dsn "mysql://user:pass@localhost:3306/dbname"go run -tags duckdb ./cmd/sqlpilot --dsn "/path/to/analytics.duckdb"Tab/Shift+Tab: cycle focus between panelsF5orCtrl+Enter: run queryCtrl+Space: autocomplete from schemaCtrl+L: format SQLCtrl+H: open query history picker?orF1: help overlayEnteron table: fill editor withSELECT * FROM table LIMIT 100Right/Space: expand table columnsLeft: collapse table columnsCtrl+E: export CSVCtrl+J: export JSONqorCtrl+Q: quit
If no DSN is provided, SQLPilot launches a connection wizard and stores passwords in the OS keychain.
Profiles live at ~/.config/sqlpilot/connections.yaml and can be selected with --profile.
If multiple profiles exist, a fuzzy‑search picker appears on launch.
Ctrl+E writes CSV and Ctrl+J writes JSON to a timestamped file in the current working directory.
- v0.6: smarter autocomplete ranking + export path prompt
- v0.7: connection manager UI + schema search
- v1.0: polished UX, docs, and release artifacts
terminal SQL explorer, TUI database client, CLI SQL client, terminal database browser, database explorer, Postgres TUI, MySQL TUI, SQLite TUI, DuckDB CLI, SQL query tool, SQL client, Go TUI, Bubble Tea, command line database tool, schema viewer, terminal data viewer
#sql #database #postgres #mysql #sqlite #duckdb #terminal #tui #cli #golang #devtools #opensource #datatools #backend #dataengineering
Issues and PRs are welcome. Please include steps to reproduce and a short rationale for changes.
- Contribution guide:
CONTRIBUTING.md - Security policy:
SECURITY.md - Code of conduct:
CODE_OF_CONDUCT.md - Changelog:
CHANGELOG.md
MIT

