The trust layer between AI and your data. A governed semantic model for AI-to-database access — every join approved, every metric signed off, every answer with a receipt. Local-first: no infra, no servers, no data leaves your machine.
The trust layer between AI and your database, so an agent's answers are defensible. Every join, metric, and named filter is confidence-scored and either FK-derived or human-approved via a review dashboard. Every answer ships a SQL receipt showing what ran and which model version it used. Works across Postgres / MySQL / Snowflake / BigQuery / Redshift / SQL Server / Oracle / Databricks / Trino / DuckDB / SQLite. Local-first: credentials, schema, results never leave your machine.
The trust layer between AI and your data. Local. Private. Yours.
agami-core is the trust layer between an AI agent and your database — a governed, self-improving semantic model that enforces correct joins, signed-off metric definitions, and a full audit receipt on every answer. Same question, same answer, every time. It builds itself from your live schema, messy or clean. The rules live in the model, not the prompt.
Real enterprise schemas have thousands of tables, mostly undocumented, with columns named col_47 and three definitions of "revenue". That's the problem this solves.
Get started in 2 minutes
In the Claude Code CLI:
/plugin marketplace add AgamiAI/agami-core
/plugin install agami-core@agami
/agami-connect sample # zero setup: no database, no credentials
who are the top 5 customers by total spend?
In VS Code or Cursor, the two /plugin … commands above don't work from the chat input —
type /plugin to open the Manage Plugins dialog and add the marketplace + install the plugin
there instead (see Install). The /agami-connect line and everything after it work the
same everywhere.
That last line returns a governed answer with a receipt (the exact SQL, the joins used, the model version) — and the governance runs before the query, so the kind of silent join mistake an ungoverned agent would hand back as a confident wrong number never reaches you. Two ways to go from here:
🧪 No database? The commands above answer from a built-in sample — nothing leaves your machine.
🗄️ Have a database? Run /agami-connect to introspect it into a governed semantic model, then just ask questions.
✅ Governed answers, not guesses — every join is FK-derived or human-approved; every metric is signed off (name + role) before the runtime trusts it.
🧾 A receipt on every answer — the literal SQL, the tables touched, the relationships used, and the model version it pinned. Reproducible, auditable.
🔒 Local and private — runs inside Claude Code via Bash/Read/Write. Credentials, schema, and results never touch a server we operate.
🧩 A portable semantic model — plain YAML you own and can keep in git (subject areas, tables, entities, metrics, relationships). No lock-in.
📋 Built the way your warehouse's owners describe it — when the joins aren't declared (a star schema of views, keys named for their role), fill in a model spec workbook and the model is built exactly as it says.
🎯 Proof it still answers correctly — keep a golden dataset of questions with agreed answers, and re-score the model against it whenever it changes.
🗄️ Works with your database — Postgres · Supabase · Redshift · MySQL · Snowflake · BigQuery · SQL Server · Oracle · Databricks · Trino · DuckDB · SQLite.
🛠️ Zero infra to start — no backend, no proxy. If you have a DB CLI you have everything; an optional local MCP server lets Claude Desktop use the same model.
👥 Shareable with your team(early access — in testing) — self-host one governed server that your whole team and business users query from their own Claude over a URL, still zero-egress. The team layer is newer than the local path; we're validating it with early users.
Quickstart (under 5 minutes)
Fastest path — the built-in sample (no database, no credentials)
agami ships with Acme Store, a small local SQLite dataset (commerce +
subscriptions) and a ready-made, signed-off semantic model. You get a governed
answer — with a full receipt — in under a minute, and nothing leaves your machine.
# 1. Install the plugin (see Install below for the per-host steps).
# 2. Try the sample — no connection needed:
/agami-connect sample # or just say "I don't have a database" / "try the sample"
# 3. Ask a question — see governance ENFORCED:
who are the top 5 customers by total spend?
# 4. Now watch the model get BUILT — see governance MADE:
/agami-connect reintrospect