Prerequisites
- A Corridor account with a team created
- Owner role on your Corridor team
- A Claude account with permission to edit cloud environments
- The repository imported into Corridor as a project
Setup
1
Open the Long-Running Agents page in Corridor
In the Corridor dashboard, navigate to Governance > Long-Running Agents and click the Configuration tab.Select Claude Code from the agent options.
2
Open your Claude cloud environment settings
Go to claude.ai/admin-settings/cloud-environments and select the environment you want to configure or create a new one.Set the environment’s Network access to Full access. The setup script downloads the Corridor CLI over the network, and Trusted access only reaches package managers and MCP servers.
3
Generate a Corridor API key
Back in the Corridor Configuration tab, enter a name for your key (for example, “Claude cloud agents”) and click Generate key.Corridor shows the finished setup command with the key already in it. Copy the whole command, and note that the key is only shown once.
4
Paste the setup command
In your Claude cloud environment settings, paste the command into the Setup script field and save:If you are reusing an existing key, paste this template and replace
YOUR_KEY with it.The script runs at the start of every session. It installs the Corridor CLI and a git pre-commit hook that runs corridor scan --staged before each commit.5
Point your sessions at this environment
- Claude Tag channels: set the default environment at claude.ai/admin-settings/claude-tag, under Slack → Advanced → default environment.
- Claude Code sessions: an Owner can set this as the organization’s default environment at claude.ai/admin-settings/claude-code.
How it works
Once configured, every Claude Code cloud session will:- Install the Corridor CLI
- Install a git pre-commit hook
- Scan staged changes before each commit
- Block commits that contain security findings
Managing API keys
You can view and revoke API keys in the Configuration tab under Team-Owned API Keys. Each key shows its name, creation date, and last used date. To rotate a key:- Generate a new key in Corridor
- Replace the key in the Setup script command in your Claude cloud environment settings
- Revoke the old key
Next steps
Guardrails
Configure the security rules that your agents enforce.
Findings
Learn how to review and resolve security findings.