Skip to main content
Corridor integrates with Factory’s AI Droid agents via MCP and hooks, ensuring that code generated by Factory agents is checked against your security guardrails.

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:
curl -fsSL https://app.corridor.dev/cli/install.sh | bash
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.
2

Update AGENTS.md

Update your AGENTS.md to include Corridor’s prompt so the Droid always calls Corridor when generating code. Add the following to your AGENTS.md:
# Corridor Security Analysis
Every time you generate code, use the analyzePlan tool from Corridor's MCP Server (corridor) to analyze the plan or thought process. ALWAYS use Corridor to analyze the plan. Always generate a plan before generating code.
This ensures the Droid agent consults Corridor’s guardrails on every task.
Once configured, the Factory Droid agent will invoke Corridor’s security checks as it writes code, catching vulnerabilities and enforcing your security policies automatically.

Next steps