kopecmaciej/vi-sql
kopecmaciej/vi-sql has 216 GitHub stars and 14 forks. GitHot measured 0 stars in 24 hours and +2 in 7 days. Last checked 2026-11-21 22:17 UTC. Last push 2026-11-12.
可以做什么
- Multi-tab SQL editor — syntax highlighting, autocomplete, query history, and $EDITOR integration
- Table data view — filter, sort, inline and batch edit, add/delete rows, copy rows as JSON/CSV, follow foreign keys, find references
- Vim mode — hjkl navigation and multi-key sequences (gg, dd, yy, yrj, yrc, gd, gr) across the entire UI
- Schema browser — tables, structure, indexes, DDL; create, rename, and drop objects via keybindings
实测星标增长
- 24小时
- 0
- 7天
- +2
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
关于
Terminal UI for SQL databases
数据README.md
原文A terminal UI for SQL databases built with passion. Browse schemas, run queries, edit rows, inspect query plans, and expose your session to AI tools via a built-in MCP server.
![]() |
![]() |
![]() |
Introductory video
Features
- Multi-tab SQL editor — syntax highlighting, autocomplete, query history, and
$EDITORintegration - Table data view — filter, sort, inline and batch edit, add/delete rows, copy rows as JSON/CSV, follow foreign keys, find references
- Vim mode —
hjklnavigation and multi-key sequences (gg,dd,yy,yrj,yrc,gd,gr) across the entire UI - Schema browser — tables, structure, indexes, DDL; create, rename, and drop objects via keybindings
- EXPLAIN / EXPLAIN ANALYZE — query plan viewer with cost and timing breakdown
- Import / Export — CSV, JSON, SQL INSERT, and Markdown
- MCP server — AI assistants (Claude, Cursor, etc.) can browse your schema and draft queries in the editor; query execution is opt-in
- Auto-update — update to the latest release from inside the app via the actions palette
- Encrypted connections — AES-256-GCM encryption; supports OS keyring, master password, or env var
- Themes — multiple built-in themes, fully customizable via YAML
Install
Installing with cURL:
curl -fsSL https://vi-sql.com/install.sh | sh
You can also pin a specific version:
VI_SQL_VERSION=v0.0.3 curl -fsSL https://vi-sql.com/install.sh | sh
If you use Homebrew, installation is straightforward:
brew install vi-sql
Precompiled binaries are available on the releases page.
Building from source
Requires Go 1.25+.
git clone https://github.com/kopecmaciej/vi-sql.git
cd vi-sql
make build
Uninstall
curl -fsSL https://vi-sql.com/uninstall.sh | sh
The script prompts before removing each artifact: the binary, config directory, log file, and any keyring entry.
Quickstart
Run vi-sql and enter your connection details on the welcome screen, or connect directly with a DSN:
vi-sql --connect postgres://user:pass@localhost/mydb
vi-sql --connect mysql://user:pass@localhost/mydb
vi-sql --connect file:/home/user/data.db
Or by saved connection name:
vi-sql --connection-name mydb
Jump straight to a table:
vi-sql --jump public/users
Config and data paths vary by OS. Run vi-sql --paths to see the exact locations on your system (Config, Keybindings, Styles, Icons, and Log).
MCP server
vi-sql ships an HTTP MCP server that AI tools (Claude Code, Cursor, etc.) can connect to while the app is running. Enable it from the options page and point your client at http://localhost:9741/mcp.
See the MCP documentation for setup, available tools, and configuration options.
Troubleshooting
See the troubleshooting documentation for common issues and fixes.
License
Apache 2.0
探索相关项目
加载中…




