Quickstart
This gets Airlock in front of Claude Code with a runnable, no-secret starter config.
Install
bash
npm install -g airlock-botDownload the starter config
bash
curl -fsSL -o airlock.yaml \
https://raw.githubusercontent.com/airlock-dev/airlock/main/examples/airlock.yaml
airlock config check --config airlock.yamlThe checked-in examples/airlock.yaml uses only the built-in HTTP and exec providers, so it starts without API keys or another MCP server. Its command and domain policies fail closed: safe read-only operations are allowed, mutating operations require approval, and everything else is denied.
Run Airlock in stdio mode
bash
airlock --agent claude-code --config airlock.yamlWire Claude Code to Airlock
json
{
"mcpServers": {
"airlock": {
"command": "airlock",
"args": ["--agent", "claude-code", "--config", "/absolute/path/to/airlock.yaml"]
}
}
}For a network MCP client, start the combined gateway instead:
bash
airlock --config airlock.yamlThen connect to either transport:
text
http://127.0.0.1:4111/agents/claude-code/mcp # streamable HTTP
http://127.0.0.1:4111/agents/claude-code/sse # SSENext steps
- discover a CLI into named tools: CLI Discovery Wizard
- add more nuanced policy: Permissions
- add safe sandboxed execution variants: Sandboxed Python Variants