A modern desktop database manager built in Rust — fast, native, multi-driver.
🌐 English · Português · Español · 简体中文 · 日本語 · Deutsch · Français · Русский
Pre-built binaries from the latest release. Tauri-action names assets using the current version — replace X.Y.Z with the tag you want.
| Platform | Architecture | Direct links |
|---|---|---|
| Windows | x86_64 | .msi installer · .exe setup |
| macOS | Apple Silicon | .dmg |
| Linux | x86_64 | .deb · .rpm · .AppImage |
All links go to the latest release page — pick the file that matches your OS. Coming soon: winget install WilsonGlasser.BaseMaster.
BaseMaster is an open-source desktop database client — an alternative to Navicat, DBeaver and TablePlus. Multi-driver, full SQL editor, spreadsheet-style editable grid, data transfer between connections, built-in AI agent and MCP server. All shipped as a single native binary, no Electron.
Existing alternatives are either paid and closed-source (Navicat, TablePlus), Electron-based and heavy (DBeaver), or terminal-only (psql, mysql). BaseMaster aims to be fast, native, and have the UX a professional DBA or dev expects.
- Multi-driver — MySQL, MariaDB, PostgreSQL, SQLite (with optional SQLCipher).
- SSH tunnel — Tunneling via russh 0.60, key + passphrase auth, multi-hop jump host chains.
- Host-key verification — Per-app
known_hostswith TOFU prompt on first connect; mismatched keys block the connection (MITM-resistant). - HTTP CONNECT proxy — RFC 7231 tunnel as alternative to SSH.
- SSL/TLS — Configurable per connection.
- Docker auto-discovery — Detects MySQL/Postgres containers running on the host and suggests connections.
- CodeMirror 6 — Modern editor with schema-aware autocomplete.
- Format SQL —
Ctrl+Shift+Freformats the current query. - Granular execution —
Ctrl+Enterruns the statement under the cursor, or the selection. - Server-side cancel — Stop button issues
KILL QUERY(MySQL) /pg_cancel_backend(Postgres) so the server actually stops, not just the UI. - UPDATE/DELETE without WHERE guard — Confirms before running statements that would wipe a whole table; opt-out per user.
- Top slow queries shortcut — Connection menu opens a pre-filled tab against
performance_schema.events_statements_summary_by_digest(MySQL) orpg_stat_statements(Postgres). - History & saved queries — Persisted locally in SQLite, with status / schema filters and live highlight.
- Glide Data Grid — Canvas renderer, scales to 100k+ rows without lag.
- Navicat-style UX — Multi-fill, paste multi-row/multi-col, edits stay in pending and only commit on explicit apply.
- Undo / redo —
Ctrl+Z/Ctrl+Shift+Zover the in-memory pending edits (cell edits, row deletes, new rows). - Strong types — Bytes (hex / utf-8 preview), formatted JSON, dates, enums, arrays, UUID.
- Full UI — Create and edit tables, columns, indexes, foreign keys and triggers through forms.
- Per-table tabs — Data, Structure, DDL, Indexes, Triggers.
- Shortcuts —
F2to rename,Ctrl+Dopens the active table's structure.
- Intra-table parallelism — Chunked copy in parallel, configurable per job.
- Copy FKs — Recreates relationships on the destination when
create_tables=true. - Copy triggers —
SHOW TRIGGERS+SHOW CREATE TRIGGERfor MySQL. - Live progress — Rows/second, ETA, pause and cancel.
.bmconn— Our own format, exports connections + saved queries..ncx— Import Navicat connections, with native Blowfish-ECB decryption.- Data — CSV, JSON and Excel with fuzzy auto-mapping between source and destination columns.
- Built-in agent — 19 tools to inspect schemas, run queries, explain plans and edit data.
- 12 providers — Anthropic, OpenAI, Gemini, OpenRouter, Groq, DeepSeek, Mistral, xAI, Perplexity, Together, Fireworks, Cerebras.
- MCP server — Expose your connections to external AI clients (Claude Code, Cursor) over local HTTP JSON-RPC with a bearer token.
basemaster-cli: Ships with the app. Scripts and agents query, explore, export and transfer through the running app from a shell (JSON out,jq-friendly), instead of one MCP call at a time.
- Resizable sidebar — Drag to adjust, state persisted.
- Command palette —
Ctrl+Kfor any action. - Full cheat-sheet —
Ctrl+/lists every shortcut. - Themes — Dark / Light, with multiple presets (Slate, Darcula, One Dark, Tokyo Night, GitHub Dimmed, IntelliJ Light, GitHub Light, Solarized Light) plus custom base color.
- i18n — 8 languages: English, Português (BR), Español, 简体中文, 日本語, Deutsch, Français, Русский.
- Local SQLite — Profiles, saved queries, history, settings — all offline.
- OS keyring — Connection passwords stored in Credential Manager (Windows) / Keychain (macOS) / libsecret (Linux).
- No telemetry — No data leaves your machine, except the calls you explicitly make to AI providers you configure.
+----- Tauri 2 Application (WebView) ---------------------------+
| |
| React + TypeScript (Vite) |
| Sidebar + Tab Bar + SQL Editor + Grid + AI Chat |
| |
+---------------------------------------------------------------+
| src-tauri (Rust backend, Tauri commands, MCP server) |
+---------------------------------------------------------------+
| driver-mysql | driver-postgres | driver-sqlite |
| (sqlx, covers | (sqlx) | (sqlx + SQLCipher opt) |
| MariaDB) | | |
+-----------------+-------------------+-------------------------+
| core | store |
| (trait Driver +| (local SQLite: profiles, queries, |
| Value, types) | history, settings) |
+---------------------------------------------------------------+
| Crate | Purpose |
|---|---|
basemaster (src-tauri) |
Tauri app, commands, MCP server, data transfer, import/export |
cli |
basemaster-cli: MCP client for scripting (bundled as a sidecar) + standalone backup/restore |
core |
Driver trait, Value enum, types shared across drivers |
driver-mysql |
MySQL / MariaDB driver via sqlx |
driver-postgres |
PostgreSQL driver via sqlx |
driver-sqlite |
SQLite driver via sqlx (+ optional SQLCipher) |
store |
Local SQLite store for profiles, saved queries, settings |
| Layer | Technology |
|---|---|
| Desktop shell | Tauri 2 (WebView2 / WebKit / WebKitGTK) |
| Frontend | React 19 + TypeScript + Vite |
| UI | shadcn/ui + Radix + Tailwind |
| Grid | Glide Data Grid |
| SQL editor | CodeMirror 6 |
| AI SDK | Vercel AI SDK (12 providers) |
| Backend | Rust stable + Tokio |
| DB clients | sqlx (MySQL, Postgres, SQLite) |
| SSH | russh 0.60 |
| Navicat decrypt | blowfish + ecb + quick-xml |
| Local storage | SQLite |
| Keyring | keyring crate (OS-native) |
| Error reporting | Sentry (optional, via env var) |
Linux:
sudo apt install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libssl-dev libxdo-dev build-essentialmacOS: xcode-select --install
Windows: Visual Studio Build Tools with the C++ workload + WebView2 runtime.
git clone https://github.com/wilsonglasser/basemaster.git
cd basemaster
pnpm install
pnpm tauri dev # Dev with hot reload
pnpm tauri build # Release → src-tauri/target/release/bundle/
cargo check --workspace # Rust check
pnpm tsc --noEmit # TS checkCode signing details (SignPath Foundation for Windows, Apple Developer for macOS) and winget publishing are documented in docs/RELEASE.md.
- First launch — Empty profile, no master password.
- New connection —
+button, pick a driver, fill host/port/credentials. Test before saving. - Query —
Ctrl+Topens a new SQL tab,Ctrl+Enterruns. - Edit table — Double-click a table → Data tab. Edits stay pending,
Ctrl+Sapplies. - Transfer — Connection menu → Data Transfer. Pick source/destination and tables, configure parallelism.
- AI — Settings → AI, configure provider and API key. Chat button appears in the sidebar.
- Import Navicat — File → Import
.ncx, enter the master password if the file has one.
Every package ships basemaster-cli next to the app binary. Settings → MCP server shows its path and has an Add to PATH button. It talks to the running app's MCP server, so saved connections, SSH/SSM tunnels, credentials and the query guardrails are all reused; one process per command, so a loop of fifty calls costs nothing extra. This is the intended way for AI agents such as Claude Code to drive BaseMaster from a shell script instead of issuing one MCP tool call at a time.
export BASEMASTER_CONN=prod # or -c prod on each command
basemaster-cli conn ls # saved connections
basemaster-cli tables # default database; -s other_schema
basemaster-cli describe users
basemaster-cli query "select id, email from users limit 5" | jq '.rows[].email'
basemaster-cli query -f report.sql -o csv > report.csv
basemaster-cli export "select * from events" --path events.jsonl # big results to disk
basemaster-cli transfer --from prod --to staging --tables users,orders
basemaster-cli guide # full cheat sheet for scripts/agentsOutput is JSON when piped and an aligned table on a terminal (-o json|ndjson|csv|table). Exit codes: 0 ok, 1 error (including a guardrail block), 3 app not running, 4 bad token. Port and token are read from the app's settings and the OS keyring; override with --port/--token or BASEMASTER_MCP_PORT/BASEMASTER_MCP_TOKEN (for example from inside WSL).
The backup, restore and schedule subcommands run standalone (no app needed), e.g. on a server. Every release also attaches static basemaster-cli builds for Linux x64 and ARM64 (basemaster-cli-<tag>-<arch>-unknown-linux-musl.tar.gz) for servers without the desktop app.
export BASEMASTER_PASSWORD=... # or --password-file; keep it out of --dsn (ps, shell history)
basemaster-cli backup --dsn mysql://user@host/prod --out prod.bmbak
basemaster-cli restore --dsn mysql://user@host/prod_copy -i prod.bmbak # lands in prod_copy
basemaster-cli restore --dsn mysql://user@host/ -s prod_copy -i prod.bmbak # same, explicit
basemaster-cli verify --dsn mysql://user@host/prod_copy -i prod.bmbak # compare without restoring--dsn can also come from BASEMASTER_DSN. A DSN without a password takes it from --password-file (first line) or BASEMASTER_PASSWORD; inside a DSN, special characters must be percent-encoded (p%40ss for p@ss).
backup reads every table inside one read-only snapshot transaction (MySQL WITH CONSISTENT SNAPSHOT, Postgres REPEATABLE READ), so the file is a single point in time even while the database takes writes, and streams each table in one SELECT. Backing up a whole schema (no --tables) also stores its views, functions, procedures and triggers. MySQL tables on engines without transactions (MyISAM, MEMORY, Aria) aren't covered by the snapshot: the backup lists them in a warning, and --lock-non-transactional read-locks them from the snapshot start until they are read (writes to them wait meanwhile).
Each table also gets a row count and a content checksum computed by the database server itself, so a value the client reads wrong can't hide. It costs one extra read of every table (about 60% more backup time); --no-checksum skips it and leaves only row counts to compare.
restore names the target (database and server) first and refuses one that already has tables unless --force. It drops and recreates every table in the backup, then the views, routines and triggers (--no-drop skips the drops; --no-create loads rows into existing tables and skips the objects), and finally recomputes every row count and checksum on the target, failing with the tables that differ (--no-verify to skip; verify does the same check on its own). TIMESTAMP columns render in the session time zone, so a target server on another time_zone reports them as different. On Postgres the drops use CASCADE, which also removes views and foreign keys in other schemas that depend on those tables. The target is --schema, else the database in the DSN / connection on MySQL, else the schema recorded in the backup. On MySQL, --strip-definer makes the restoring user the owner of those objects when it lacks SET_USER_ID; with binary logging on, such a user also needs log_bin_trust_function_creators=1 to create functions.
| Shortcut | Action |
|---|---|
Ctrl+K |
Command palette |
Ctrl+T |
New SQL tab |
Ctrl+W |
Close tab |
Ctrl+Enter |
Run query |
Ctrl+Shift+F |
Format SQL |
Ctrl+S |
Apply pending grid edits / save query |
Ctrl+Z / Ctrl+Shift+Z |
Undo / redo pending grid edits |
Ctrl+D |
Structure of the active table |
F2 |
Rename (column, table, connection) |
Delete |
Drop the sidebar-selected connection / schema / table / query |
Ctrl+/ |
Full cheat-sheet |
| Version | Status | Scope |
|---|---|---|
| v0.1 | Released | MySQL/MariaDB/Postgres/SQLite drivers, SQL editor, editable grid, schema editor, data transfer V1.2, import/export, AI chat, MCP server, Docker discovery, custom EXPLAIN visualizer |
| v0.2 | Released | Chained SSH jump hosts, HTTP CONNECT proxy tunnel |
| v0.3 | Released | Server-side query cancel, SSH known_hosts (TOFU + mismatch block), UPDATE/DELETE WHERE guard, top slow queries shortcut, query history filters, undo/redo on grid edits, 6 new languages (ES, zh-CN, JA, DE, FR, RU), enriched welcome with feature highlights and recent connections, importers for DBeaver / HeidiSQL / DataGrip, redesigned tab bar (jump dialog, smooth wheel scroll, floating close, active full-width) |
| v0.4 | Released | Keep-mounted tabs, grid cursor pinning + glide-data-grid fork, SQL alias autocomplete, persisted result grid state, schema/table folders + multi-table ZIP export, drop-schema flow parity, sidebar Delete shortcut, per-rule case-insensitive filters, "Edit query" toolbar action, fix for _bin-collated MySQL VARCHAR rendering as [N bytes] |
| v0.5 | Planned | P2P sync across installs (QUIC) |
For the detailed change list see CHANGELOG.md.
PRs welcome. Open an issue before large changes so we can align on scope.
MIT — Free and open-source.
BaseMaster is experimental software under active development. It connects directly to your databases and can execute destructive operations. Every action you run through it is your responsibility. Read the full Terms of Use & Disclaimer before using it on data you care about.
Built with Rust and SQL, for people who live in databases.



