The database harness for AI agents.
Stop gambling with your production database.
Agents propose SQL over MCP and approved queries run on your Beekeeper Studio connection. With Auto mode on, eligible reads run without a click and writes always wait for you. The agent never holds your database credentials.
Requires Beekeeper Studio 5.4 or later
A working demo of the Gatekeeper plugin in Beekeeper Studio, on a test database, with Auto mode on. A write waits for Write mode and a read that returns customer emails waits for review. New reads arrive and Auto mode evaluates and approves each one.
- Claude Code
- Codex
- OpenCode
- Gemini
- Kimi
- Cursor
The usual ways make you choose between fast and safe.
Common ways to let an agent query your database vs. Gatekeeper
Every query stops at a card that says what it will do.
Gatekeeper reads the SQL before you do and nothing runs until you or Auto mode approve it.
| Table | Read | Write | Delete |
|---|---|---|---|
| customers | |||
| tickets |
SELECT c.id, c.email, t.subject
FROM public.customers c
JOIN public.tickets t ON t.customer_id = c.id
WHERE t.status = 'open' - 01
Who asks and why
The agent session and the intent it stated.
- 02
What it touches
Each table and whether it is read, written or deleted from.
- 03
The exact SQL
Formatted, with hidden characters made visible.
- 04
What is sensitive
Likely personal and client data in what the query returns.
- 05
What Auto mode did
It held this read for you. Eligible reads run without a click.
- 06
Your answer
Approve, reject, or send the agent a note to revise.
A read that passes two checks runs without a click.
Your agent gets its answer in seconds and you only see the reads that need a person.
- Jev by TypeSafe
- A custom server, such as Kev
Auto mode only ever approves reads.
Off by default
Open any query from the past and see why it ran.
- Each entry keeps the SQL, the intent and the outcome.
- Automatic approvals are recorded with the evaluator's answers.
- A period exports as Markdown, CSV or JSON, without result rows.
For anyone nervous about an agent near a database.
Check one order's status and contact.
See how often the new export is used.
Find orphan rows before the foreign key.
Match a bank payout to its transactions.
Read the correction before it runs.
Install Gatekeeper in a minute.
Free and open source under the MIT license.
Issues and pull requests are welcome.
-
Add the plugin in Beekeeper Studio
Don't forget to turn on Community Plugins
-
Set up your agent in a terminal
$ npx skills add Gldywn/gatekeeper > /install-gatekeeper # in your agent
The skill registers the MCP server and walks you through pairing.
Requires Beekeeper Studio 5.4 or later.