Get started
Open sourceApache 2.0
Install AgentTrail Guard
Needs Node.js 20 or later. No account and no sign-up: it runs on your machine.
- 1
Install the CLI
Once, globally, so its commands are on your PATH.
bash$npm i -g @agenttrail/guard - 2
Set it up for your agent
Each agent is a separate install, and you can have all three.
Claude Code$ agenttrail-guard init --agent claudeCursor$ agenttrail-guard init --agent cursorCodex CLI$ agenttrail-guard init --agent codexFor Codex CLI, also start Codex, type
/hooksand approve eachagenttrail-guardentry. Until you do, nothing is checked. - 3
Check it's on
Shows what is enforcing in each app, and what it has been doing.
$ agenttrail-guard status