Get started

Protected in three steps

Nothing changes until you say yes. Every file OpenMoat touches is backed up, and openmoat uninstall puts it back.

  1. Install

    pick your system
    $ brew install crocodile-labs/tap/openmoat

    Homebrew. To upgrade later: brew update && brew upgrade openmoat. On macOS 12 and earlier, where Homebrew may stop, use the Linux and macOS installer instead.

    Checksums and build attestations for every release file: INSTALL.md. Upgrading from 0.7 or earlier, when the command was moat? Read this first.

  2. Protect your agents

    $ openmoat init
    OpenMoat 0.24.0 · protecting the agents on this machine
    Each file is backed up first · d shows the full diff · openmoat uninstall undoes it
    Claude Code ~/.claude adds hook + sandbox settings Protect? [Y/n/d] y
    Codex ~/.codex adds hook + sandbox settings Protect? [Y/n/d] y
    ✔ 2 agents protected
    Agent Protection
    Claude Code ✔ hook + OS sandbox
    Codex ✔ hook + OS sandbox
    Next steps
    1. Try it: openmoat policy check "cat ~/.ssh/id_rsa"
    Backups saved · undo everything: openmoat uninstall · check any time: openmoat status

    d shows exactly what changes before you answer. init asks once per agent it finds, and lists the steps left to you only for agents you have: in Codex, trust OpenMoat’s hooks once in /hooks; for OpenClaw, restart the Gateway. Then start a new agent session.

  3. See it work

    $ openmoat policy check "cat ~/.ssh/id_rsa"
    ✕ deny
    rules : secrets-paths
    reason: secret material: read /Users/you/.ssh/id_rsa
    also : shell "cat ~/.ssh/id_rsa"
    $ openmoat doctor
    …
    All good.
    $ openmoat status
    each agent’s protection, and what to fix

    policy check runs nothing: it shows the verdict, the rule and the reason for any command. While you work, openmoat watch follows the agents’ calls live and openmoat why --last explains the newest block.

Next: your situationa laptop, unattended agents, MCP servers, a team, CISomething blocked?why it happened, and one command to allow itTurn it off or uninstallevery change undone

All the details: the quick start in the docs and what each agent supports.