← All docs

Codex

Wire agentjail into Codex's pre-tool-use hook to enforce policy before every tool call.

Codex integration is not yet available.

agentjail install --for codex is a stub that currently exits with “not yet implemented”. Claude Code is the only agent with a working turnkey installer today. Codex support is planned for a future release.

Planned design

The intended integration follows the same pattern as the generic hook guide: a PreToolUse hook entry in ~/.codex/hooks.json that pipes each tool-call event to agentjail-hook on stdin and reads the decision from stdout.

This design is not wired yet. Do not attempt to configure it manually — there is no supported path for Codex at this time.

What is available today

  • Claude Code integration: the only fully supported agent, with a turnkey installer on macOS.
  • Generic hook guide: the hook protocol that any agent with a PreToolUse callback can implement once support lands.

Check the changelog or the agentjail GitHub repository for updates on Codex support.