vi-sql documentation
vi-sql is a terminal UI client for SQL Databases. It ships two keybinding profiles — normal and vim — along with themes, CSV import/export, and an MCP server for AI tool integration. Single binary, no runtime dependencies.
New here? Install the binary, then follow the Getting Started guide.
Setup
Features
Vim Mode
Enable vim-style keybindings and learn the full key map.
Keybindings
The default (normal mode) key map for every view.
Themes
Switch between built-in themes or build your own.
Import & Export
Import CSV and export results in multiple formats.
MCP Server
Expose your database to AI tools via the Model Context Protocol.