Codex CLI security hooks

Muzzle checks each command, patch, file write and MCP call Codex makes before it runs, and the requests its commands send.

Set it up

  1. Download Muzzle, open it and click Get started.
  2. Enter what should never leave your Mac: your email, name and phone number. Muzzle suggests your git email and account name.
  3. Switch Codex on and click Protect. Muzzle adds its hooks to ~/.codex/hooks.json and a codex shell function to ~/.zshrc, and to ~/.bashrc if you have one.
  4. Open a new terminal, start Codex and type /hooks to turn the hooks on.
  5. Get Pro with a key, or by contributing to the Threat Feed with a confirmed email.
  6. Muzzle scans your projects and shows anything that already leaks. For the first week it only watches, then you turn blocking on.

What's covered

Leaks in commands, patches, file writes and MCP calls
Pro
Settings lock
Free
Credential files and package check
Pro
Prompt injection alerts on results
Pro
Instruction files and risky folders at session start
Pro
Requests made by commands Codex runs
Pro

Questions

What happens when Pro ends?

The settings lock keeps working. The other checks let Codex through; nothing is uninstalled.

How do I remove it?

Switch Codex off in Muzzle's Settings. Muzzle removes its hooks and the shell function.

Put Muzzle between your agents and the internet