10 engines • SQL, document & cache
100% Free & Open Source

Your databases, in one local-first workspace

KamehaDB is a cross-platform desktop GUI for SQL, document, and cache systems — built with AI in, not bolted on. Runs locally on your machine, with remote AI providers optional.

14 Stars
macOS
Windows
Linux
<query.sql
kamehadb@local:~$
█
Works with PostgreSQL, MySQL, MongoDB, Redis and more

Free. Local. Yours.

Four principles. No asterisks.

100% Free & Open Source

No subscriptions, no premium tiers, no telemetry. The full source is on GitHub under Apache-2.0.

Local-First & Private

Connections, credentials, query history, and chat logs stay on your machine, encrypted at rest. We have no servers. Remote AI is opt-in: the provider you choose receives only the conversation and schema context you send.

Bring Your Own AI

OpenAI, Ollama (local + cloud), 9router, DeepSeek, Gemini — pick the model that fits your workflow, or skip AI entirely.

OpenAIOllama LocalOllama Cloud9routerDeepSeekGemini

Open Standards

Pure SQL, MongoDB aggregation pipelines, Redis protocol. No proprietary query language, no migration lock-in.

Every engine, one workspace

10 databases — SQL, document, and cache — with feature matrices and Docker snippets

PostgreSQLSQL
7/8 features
Click for details
MySQLSQL
5/8 features
Click for details
MariaDBSQL
5/8 features
Click for details
SQLiteSQL
7/8 features
Click for details
SQL ServerSQL
5/8 features
Click for details
OracleSQL
5/8 features
Click for details
ClickHouse
ClickHouseSQL
5/8 features
Click for details
DuckDB
DuckDBSQL
6/8 features
Click for details
MongoDBDocument
7/8 features
Click for details
RedisCache
5/8 features
Click for details

Just say what you need

Describe your intent in plain English. KamehaDB writes the SQL for you.

You ask
KamehaDB AI chat: the user asks for all users who signed up last month, ordered at least once and have a subscription plan, with their total spending.
KamehaDB writes
The PostgreSQL query KamehaDB generates: users joined to orders, filtered to active subscriptions, grouped by user and ordered by total spent.

Everything you need

Powerful features to streamline your database workflow

One workspace, 10 engines

Relational, document, and cache systems in a single desktop app. Browse schemas, collections, and keyspaces side by side.

AI that knows your schema

Describe what you want in plain English. The assistant reads your real DDL, indexes, and constraints to generate SQL, MongoDB pipelines, and Redis commands.

Global search — Ctrl+K

Fuzzy-find any connection, table, column, or open tab. Jump into a query, a stats page, or the AI chat without leaving the keyboard.

Contextual AI chat

Persistent history per connection, streamed responses, and generated SQL shown for review so you run it yourself in the editor. Bring your own OpenAI, Ollama, 9Router, DeepSeek, or Gemini.

Read-only MCP server

Point Codex, Claude Code, Devin CLI, or OpenCode at a loopback MCP endpoint. KamehaDB provisions a database-scoped read-only account and stores its credential in an encrypted local vault (OS keychain, with an owner-only key file fallback).

Schema timeline, diff & migration

Capture snapshots on demand, compare schemas side by side with per-table change cards, and generate the DDL to migrate from one state to the next — without writing ALTER TABLE by hand.

Built-in charts

Turn any query result or Mongo collection into bar, line, area, or pie charts. Histograms, aggregates, and time series without exporting to a notebook.

Query history with favorites

Normalized query history per connection, grouped by pattern with duration stats. Star the ones you reach for every day; reuse, fork, and rerun in one click.

Engine-native tooling

PostgreSQL stats, MongoDB explorer with chart view, Redis key browser — purpose-built screens for each engine.

See your schema, visualized

Explore tables and foreign keys as an interactive ER diagram. Shown here with sample data.

Swipe to explore →
Uusers
PKid
uuid
email
varchar
name
varchar
created_at
timestamp
Ccategories
PKid
uuid
name
varchar
FKparent_id
uuid
Pproducts
PKid
uuid
name
varchar
price
numeric
FKcategory_id
uuid
Oorders
PKid
uuid
FKuser_id
uuid
total
numeric
created_at
timestamp
Rreviews
PKid
uuid
FKproduct_id
uuid
FKuser_id
uuid
rating
integer
comment
text
5 tables · 6 FK relations

Get started in minutes

Install KamehaDB and connect to your first database in under 2 minutes. Works on macOS, Windows, and Linux.

1

Download the app

Available for macOS, Windows, and Linux

2

Add your connection

PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, Oracle, ClickHouse, DuckDB, MongoDB, or Redis

3

Start exploring

Browse schemas, run queries, and chat with AI

Download for freemacOS · Windows · Linux
build from source
# Clone the repository
git clone https://github.com/asta-nguyen/kamehadb.git
# Install dependencies and run
cd kamehadb
pnpm install && pnpm dev
# Build for macOS
wails build -platform darwin/universal
# Build for Windows
wails build -platform windows/amd64
# Build for Linux
wails build -platform linux/amd64