Prerequisites
- Claude Code installed (
claudecommand) - A Corridor account with a team created
Setup
Install the Corridor CLI
Install the Corridor CLI with a single command:The CLI auto-updates on startup, so you’ll always have the latest version.The installer will run
corridor install automatically to set up the Corridor plugin, MCP server, and hooks.Hooks
Hooks are deterministic scripts that run at specific points in the code generation process, enabling real-time security reviews and policy enforcement. Hooks are automatically set up by the Corridor CLI.MCP compliance
Corridor tracks which MCP servers are active and enforces your team’s policies. To configure, navigate to the Compliance tab in the Corridor dashboard and choose Allowlist Mode or Blocklist Mode.Stop hooks (experimental)
When Claude Code generates code, Corridor can automatically evaluate the diff, identify potential security issues, and guide Claude to remediate problems iteratively—all in the background. By default, hooks run in monitoring mode and won’t block code generation. To enable blocking behavior:- Open
~/.corridor/config.envin a text editor - Set
CORRIDOR_BLOCKING_STOP_HOOKS=true - Hooks will now prevent code with critical security issues from being applied
Troubleshooting hooks
If hooks are not running:- Run
corridor install --forceto reinstall hooks - Check that
~/.corridor/config.envexists and contains a validCORRIDOR_ACCESS_TOKEN - Verify hooks are registered in
~/.claude/settings.json
Uninstalling
To remove the Corridor plugin and all its configuration, run:--non-interactive:
Next steps
Guardrails
Learn how guardrails protect your code
Corridor MCP
Explore Corridor’s MCP tools