Skip to main content
Corridor integrates with Claude Code via MCP and hooks. Claude Code gets your team’s security guardrails from Corridor before it writes code.

Prerequisites

  • Claude Code installed (claude command)
  • A Corridor account with a team created

Setup

Set up Corridor with Claude Code by installing the Corridor CLI.
1

Install the Corridor CLI

Install the Corridor CLI with a single command.macOS / Linux:
Windows (PowerShell):
The CLI checks for updates in interactive terminal sessions. To disable automatic CLI and hook updates, set CORRIDOR_NO_AUTO_UPDATE=1. You can still run corridor update manually.The installer will run corridor install automatically to set up the Corridor plugin, MCP server, and hooks.
2

Verify the plugin

Restart Claude Code if it’s currently running. You can verify the plugin is connected by running /mcp in Claude Code.
Once configured, Claude Code calls Corridor’s MCP tools to get your security guardrails before it writes code. Corridor’s hooks enforce your MCP policies.

Hooks

Hooks are deterministic scripts that run at specific points in the code generation process. They enforce your policies and report agent activity to Corridor. 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.

Troubleshooting hooks

If hooks are not running:
  • Run corridor install --force to reinstall hooks
  • Check that ~/.corridor/config.env exists and contains a valid CORRIDOR_ACCESS_TOKEN
  • Verify the plugin is registered in ~/.claude/settings.json (in the enabledPlugins field)

Uninstalling

To remove the Corridor CLI and all its configuration, run the uninstall script:
The script removes the Corridor plugin, MCP server, hooks, and the corridor binary from ~/.corridor, and cleans up the PATH entry it added to your shell profile (plus any legacy ~/.local/bin/corridor symlink from older installs).

Next steps

Guardrails

Learn how guardrails protect your code

Corridor MCP

Explore Corridor’s MCP tools