Prerequisites
- A Factory account
- A Corridor account with a team created
Setup
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 Factory Droid if it’s currently running. The Corridor plugin will be automatically configured with the necessary agent rules and MCP server settings.
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 Factory Droid invokes and enforces your team’s policies. To configure, navigate to the Compliance tab in the Corridor dashboard and choose Allowlist Mode or Blocklist Mode. See MCP Compliance for details.Troubleshooting hooks
If hooks are not running:- Run
corridor install --forceto reinstall hooks - Verify the plugin is registered in
~/.factory/settings.json
Uninstalling
To remove the Corridor CLI and all its configuration, run the uninstall script: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