Supported features
Every agent gets the same policy through its own hook. What differs is what the agent lets a hook see and do: whether OpenMoat can also set up the agent’s OS sandbox, which events the hook gets, and where you answer a review. openmoat status shows the level on your machine.
By agent
Section titled “By agent”- Protection
- hook + OS sandbox (macOS, Linux, WSL2); hook only on native Windows
- Hook entries openmoat init writes
PreToolUse, ConfigChange, SessionStart, PostToolUse- A review becomes
- Claude Code's own prompt
- Injected input
- yes, since 0.16.0 (PostToolUse)
- Review of code it wrote
- only on native Windows or with its sandbox not in place
- Hook run by the real agent
- Linux, macOS
- Says when it stops running the hook
- warns when it ran sessions and no call came
- Sandboxed start
- no: OpenMoat sets up its own OS sandbox
- Protection
- hook + OS sandbox
- Hook entries openmoat init writes
PreToolUse, PostToolUse- A review becomes
- the call is denied; run
openmoat allow --last - Injected input
- yes, since 0.21.0 (PostToolUse)
- Review of code it wrote
- no: OpenMoat sets up its sandbox
- Hook run by the real agent
- Linux, macOS
- Says when it stops running the hook
- warns when it ran sessions and no call came;
config.tomlchanging counts - Sandboxed start
- no: OpenMoat sets up its own OS sandbox
- Protection
- hook + OS sandbox (macOS, Linux); hook only on Windows
- Hook entries openmoat init writes
beforeShellExecution, beforeMCPExecution, beforeReadFile, preToolUse, beforeTabFileRead- A review becomes
- Cursor's prompt for shell and MCP calls;
openmoat allow --lastfor file tools - Injected input
- not yet
- Review of code it wrote
- only on native Windows or with its sandbox not in place
- Hook run by the real agent
- preview on every OS
- Says when it stops running the hook
- warns when it ran sessions and no call came (the Cursor CLI; the editor's chats are not seen)
- Sandboxed start
- no: OpenMoat sets up its own OS sandbox
- Protection
- hook only (a
before_tool_callplugin) - Hook entries openmoat init writes
before_tool_call- A review becomes
- OpenClaw's own approval request
- Injected input
- not yet
- Review of code it wrote
- yes
- Hook run by the real agent
- Linux, macOS
- Says when it stops running the hook
- the plugin reports loading; a note only, its sessions are in a database
- Sandboxed start
- no: its Gateway serves a local port, which
openmoat rundoes not allow
- Protection
- hook only
- Hook entries openmoat init writes
preToolUse, postToolUse- A review becomes
- Copilot's own prompt
- Injected input
- yes, since 0.21.0 (postToolUse)
- Review of code it wrote
- yes
- Hook run by the real agent
- Linux, macOS
- Says when it stops running the hook
- warns when it ran sessions and no call came
- Sandboxed start
- yes, for
openmoat run
- Protection
- hook only (an extension)
- Hook entries openmoat init writes
tool_call- A review becomes
- a pi dialog
- Injected input
- not yet
- Review of code it wrote
- yes
- Hook run by the real agent
- Linux
- Says when it stops running the hook
- the plugin reports loading; warns when it ran without
- Sandboxed start
- yes, for
openmoat run
- Protection
- hook only
- Hook entries openmoat init writes
BeforeTool, AfterTool- A review becomes
- Gemini CLI's own confirmation
- Injected input
- yes, since 0.21.0 (AfterTool)
- Review of code it wrote
- yes
- Hook run by the real agent
- Linux
- Says when it stops running the hook
- warns when it ran sessions and no call came
- Sandboxed start
- yes, for
openmoat run
- Protection
- hook only (a plugin)
- Hook entries openmoat init writes
tool.execute.before (OpenCode 1), execute.before (OpenCode 2)- A review becomes
- OpenCode 2's own permission prompt; on OpenCode 1 the call is denied, run
openmoat allow --last - Injected input
- not yet
- Review of code it wrote
- yes
- Hook run by the real agent
- preview on every OS
- Says when it stops running the hook
- the plugin reports loading; a note only, its sessions are in a database
- Sandboxed start
- yes, for
openmoat run
- Protection
- hook only
- Hook entries openmoat init writes
pre_tool_call- A review becomes
- Hermes's own approval prompt
- Injected input
- not yet
- Review of code it wrote
- yes
- Hook run by the real agent
- preview on every OS
- Says when it stops running the hook
- a note only: OpenMoat does not know where it writes a session
- Sandboxed start
- yes, for
openmoat run
- Protection
- hook only (
PreToolUseandPostToolUsehook scripts) - Hook entries openmoat init writes
PreToolUse, PostToolUse- A review becomes
- the call is denied, which ends Cline's run; run
openmoat allow --last - Injected input
- yes, since 0.17.0 (PostToolUse)
- Review of code it wrote
- yes
- Hook run by the real agent
- Linux, macOS
- Says when it stops running the hook
- warns when it ran sessions and no call came
- Sandboxed start
- yes, for
openmoat run
- Protection
- hook only (a plugin)
- Hook entries openmoat init writes
PreToolUse- A review becomes
- the call is blocked; run
openmoat allow --last - Injected input
- not yet
- Review of code it wrote
- yes
- Hook run by the real agent
- Linux, macOS
- Says when it stops running the hook
- a note only: OpenMoat does not know where it writes a session
- Sandboxed start
- yes, for
openmoat run
- Protection
- hook only
- Hook entries openmoat init writes
PreToolUse- A review becomes
- Antigravity CLI's own prompt, asked every time
- Injected input
- not yet
- Review of code it wrote
- yes
- Hook run by the real agent
- Linux, macOS
- Says when it stops running the hook
- a note only: OpenMoat does not know where it writes a session
- Sandboxed start
- yes, for
openmoat run
- Protection
- hook only (preview)
- Hook entries openmoat init writes
PreToolUse- A review becomes
- Qwen Code's own prompt, even in YOLO mode
- Injected input
- not yet
- Review of code it wrote
- —
- Hook run by the real agent
- preview on every OS
- Says when it stops running the hook
- warns when it ran sessions and no call came
- Sandboxed start
- yes, for
openmoat run(since 0.26.0)
- Protection
- hook only (preview)
- Hook entries openmoat init writes
PreToolUse- A review becomes
- the call is denied; run
openmoat allow --last - Injected input
- not yet
- Review of code it wrote
- —
- Hook run by the real agent
- preview on every OS
- Says when it stops running the hook
- a note only: OpenMoat does not know where it writes a session
- Sandboxed start
- yes, for
openmoat run(since 0.26.0)
- Protection: hook + OS sandbox: OpenMoat also writes the agent’s own sandbox from your policy, so the code an allowed call runs is confined. Hook only: an allowed call runs with your permissions;
openmoat run -- <agent>puts any agent in an OS sandbox (OS sandboxes). On native Windowsopenmoat runis a preview that holds writes only (openmoat run on Windows). - Hook entries: the events
openmoat initregisters, from the table generated from each agent’s host spec (INSTALL.md). What each event covers, tool by tool: Supported agents. - Injected input needs the agent to report what a call returned. “Not yet”: the agent reports nothing after a call; results of its MCP servers that you wrap are still read by the gateway.
- Hook run by the real agent: where a real copy of the agent ran OpenMoat’s hook and the decision held (Protection by agent and OS); every other system is preview.
- Says when it stops running the hook: whether
openmoat status,doctorandwatchcan warn when the agent ran sessions and no call of its reached OpenMoat, or give only a note (Is my agent still protected?). - Sandboxed start: whether
openmoat initoffers a shim so that typing the agent’s name starts it inopenmoat run(Start agents sandboxed). - —: no source states it yet, so the page does not guess.
By feature
Section titled “By feature”- Policy check of each call the hook reports
Every agent above (14).
- OS sandbox for what an allowed call runs
The agent’s own sandbox for Claude Code (macOS, Linux, WSL2), Codex, and Cursor (macOS, Linux);
openmoat runfor any agent, on macOS 13 or later and Linux; on native Windows a preview that holds writes and the process tree, not reads or the network (since 0.26.0). - Egress proxy
Under
openmoat run; for the agents’ own sandboxes withsandbox.proxy_port. The standalone proxy gives a session credential to Claude Code’s sessions only. - Token broker over HTTPS
Through Claude Code’s own sandbox broker, and inside
openmoat runfor atls: terminatesecret. Elsewhere a request over HTTPS keeps the placeholder. - Injected input
Claude Code, Codex, Gemini CLI, GitHub Copilot CLI, the Cline CLI, and wrapped MCP servers (for every agent).
- Review of code the session wrote
Agents without an OS sandbox from OpenMoat, and Claude Code and Cursor on native Windows or with their sandbox not in place.
- MCP gateway (tool pinning, cross-server check)
A stdio server you wrap with
openmoat mcp wrap, or every one withopenmoat init --mcp-proxy. - Merge check
Any pull request, whoever wrote it:
openmoat policy check-diffand the GitHub Action. - Is my agent still protected?
A warning in
status,doctorandwatchfor Claude Code, Codex, the Cursor CLI, GitHub Copilot CLI, Gemini CLI, Qwen Code and the Cline CLI; a note only for goose, Hermes Agent, Antigravity CLI and Crush. - Scrubbed environment
Every agent started with
openmoat run, withsandbox.env: scrubbedor--scrub-env; off by default. Not the agents’ own sandboxes. - Decoy keys
Every agent, at your yes in
openmoat init; a decoy’s value is also refused atopenmoat proxy. - Start agents sandboxed
Gemini CLI, OpenCode, Hermes Agent, pi, goose, Antigravity CLI, GitHub Copilot CLI and the Cline CLI, at your yes in
openmoat init, on macOS 13 or later and Linux; Qwen Code and Crush too since 0.26.0. - Protection score and strict mode
Every
openmoat runtier inopenmoat doctorand the boundary record;sandbox.strict: truein your own policy refuses a run below 100. Landlock UDP rules on Linux 7.2 or later. - openmoat run on Windows (preview)
Native Windows: a write-restricted token in a job object. Writes outside the project and the process tree are held; reads and the network are not. Scores at most 55 of 100.
- Other hooks the agents run
The hook files, helper commands, plugin hooks and project hook files of the agents OpenMoat reads, and every repository’s
.git/configprograms;openmoat hooks listandaccept. Fail-safe hook commands for Codex, Gemini CLI, Qwen Code and Crush. - Signed audit checkpoints
Every agent’s audit log:
openmoat audit checkpoint, checked anywhere withaudit verify --checkpoint --pubkey. What ran after a review: Claude Code only. - Does a change widen?
openmoat policy diff --widen,policy upgrade(--accept-widening),trust,policy installand the merge check’sdiff-widens. - Private data, untrusted content and a way out
Every agent’s sessions, by default (
lethal-trifecta), andstaging-egressafteropenmoat policy upgrade. Not insideopenmoat run’s proxy. - Argument conditions (when:)
Deny and review rules of a policy; the hook and the MCP gateway read the arguments, OS sandboxes do not.
- MCP 2026-07-28, sampling and package releases
Stdio servers through
openmoat mcp proxy; package release pins for wrapped and unwrapped servers started withnpx,uvxordocker run. - Default rules from outside benchmarks
Every agent, after
openmoat policy upgrade:system-files,stops-system,credential-egressand more insecrets-paths,persistenceandtoken-egress.
What no layer stops, in one place: Limits.