> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corridor.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Factory

> Integrate Corridor with Factory's AI Droid agents for secure automated development.

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

<Steps>
  <Step title="Install the Corridor CLI">
    Install the Corridor CLI with a single command:

    ```bash theme={null}
    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.
  </Step>

  <Step title="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.
  </Step>
</Steps>

Once configured, the Factory Droid agent will invoke Corridor's security checks as it writes code, catching vulnerabilities and enforcing your security policies automatically.

## Uninstalling

To remove the Corridor CLI and all its configuration, run the uninstall script:

```bash theme={null}
curl -fsSL https://app.corridor.dev/cli/uninstall.sh | bash
```

The script removes the Corridor plugin, MCP server, hooks, and the `corridor` binary from `~/.corridor` and `~/.local/bin`.

## Next steps

<CardGroup cols={2}>
  <Card title="Guardrails" icon="shield-check" href="/features/guardrails">
    Learn how guardrails protect your code
  </Card>

  <Card title="Corridor MCP" icon="plug" href="/features/corridor-mcp">
    Explore Corridor's MCP tools
  </Card>
</CardGroup>
