Listed from the MCP registry; nobody on Odel publishes it.
Permissions-aware MCP gateway with per-agent allow/ask/deny policy, HITL approvals, and audit logs.
Runs on your machine from its package; the steps are below.
At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y airlock-bot
MCP client config
{
"mcpServers": {
"airlock-permissions-aware-mcp-gateway": {
"command": "npx",
"args": [
"-y",
"airlock-bot"
]
}
}
}A permissions-aware MCP gateway that sits between AI agents (Claude Code, Cursor, OpenClaw, etc.) and your downstream tool servers, CLI tools, and REST APIs. Airlock enforces per-agent allowlists, requires human approval for sensitive operations, and keeps a full audit trail of every tool call.
Agent (Claude Code / Cursor / OpenClaw)
│ stdio, streamable HTTP, or SSE
▼
Airlock ←→ HITL (Telegram / Slack / webhook / TUI / macOS / iOS / dashboard)
│
├── MCP servers (github, filesystem, ...)
├── CLI tools (git, docker, kubectl, ...)
├── REST APIs (any OpenAPI spec)
├── built-in: http/get, http/post, ...
└── built-in: exec/run
allow, ask, deny, and remember_allow over namespaced tools (github/create_pr, filesystem/read_file), plus arg_policy / arg_scope (value_sets + arg_dimensions) and command_policy for CLI-dispatcher toolstool, tier, provider, profile), multi-step plans (airlock_request_approval), non-blocking async approvals (airlock_await_approval), batched notifications, and operator-only structured approval previews (approvals.previews)token_sha256 keys, Policy Assistant, and Provider Healthextends + top-level default_profile) and OS-level sandbox_presets with tool variants (alias_of)upload-policy, prompt injection detection, canary tokens, PII classification, output scanning, rate limiting, and output size limiting / summarization/agents/:agentId/mcp with X-Airlock-Session-Id scoping alongside legacy SSE and lean stdio modeevents/poll and events/stream push subscriptions with events.arg_policy, untrusted payload scanning, and live reload revocation, plus opt-in mcp_apps: true inline view proxying (io.modelcontextprotocol/ui) with namespaced ui:// URIs and audited resources/readuploads.enabled: true) — push binary and large files from disk through single-use presigned URLs to OpenAPI, built-in HTTP, upstream MCP, and CLI tools without passing raw bytes through LLM contextclient_credentials & hot-add HTTP providers — browser OAuth2 (with native gateway callbacks via oauth_callback_mode: gateway, single-writer revisioned grant storage, and airlock oauth status|history|restore), machine-to-machine client_credentials with disk-cached tokens, and zero-downtime hot-add HTTP providers using bearer_token_filecredential_probe verification and order-independent SHA-256 toolCatalog / eventCatalog contract fingerprints on /health--help, shell completions, Fig specs), OpenAPI 3.x REST APIs, built-in HTTP, and execconfig check, explain, who-can, tools, and lint, plus configure-agent and configure-cli TUIs--agent runs with no HTTP data-plane server and connects only to providers the agent references (opening an ephemeral loopback listener on 127.0.0.1 only when uploads.enabled: true)Requires Node.js 22 or newer.
npm install -g airlock-bot
# 1. Download the no-secret starter config
curl -fsSL -o airlock.yaml \
https://raw.githubusercontent.com/airlock-dev/airlock/main/examples/airlock.yaml
# 2. Validate it locally
npx airlock-bot config check --config airlock.yaml
# 3. Start the streamable HTTP + SSE gateway on 127.0.0.1:4111
npx airlock-bot --config airlock.yaml
# Or connect a local MCP client over stdio
npx airlock-bot --agent claude-code --config airlock.yaml
The starter exposes the built-in HTTP and exec tools with fail-closed command and domain policy. Safe read-only operations are allowed, mutating operations require approval, and everything else is denied. See the quickstart to connect a client, then add your own providers or discovered CLI/API tools.
Add Airlock as an MCP server in ~/.claude/mcp.json:
{
"mcpServers": {
"airlock": {
"command": "airlock",
"args": ["--agent", "claude-code", "--config", "/path/to/airlock.yaml"]
}
}
}
Or without a global install:
{
"mcpServers": {
"airlock": {
"command": "npx",
"args": ["airlock-bot", "--agent", "claude-code", "--config", "/path/to/airlock.yaml"]
}
}
}
Or install as a Claude Code plugin directly from GitHub:
/plugin marketplace add airlock-dev/airlock
/plugin install airlock@airlock
Airlock is also packaged for the Official MCP Registry under io.github.airlock-dev/airlock (airlock-bot on npm).
See examples/claude-code-setup.md for a full walkthrough.
Auto-generate Airlock config from existing tools instead of writing YAML by hand.
# Parse --help output (works with any CLI)
airlock discover cli docker
# Try Fig autocomplete specs first, fall back to --help
airlock discover cli kubectl --fig
# Write to a file, limit recursion depth
airlock discover cli git --output git-commands.yaml --max-depth 2
# Only include specific commands
airlock discover cli npm --include install,test,run
Reference the output in your config:
clis:
git:
discovered: ./git-commands.yaml
max_output_bytes: 30000 # default matches Claude Code's limit
commands:
# Inline commands override discovered ones with the same name
custom-deploy:
exec: 'git push origin main'
params: {}
# From a local spec file
airlock discover api ./petstore.json --output petstore-api.yaml
# From a URL
airlock discover api https://api.example.com/openapi.json --base-url https://api.example.com
# Filter endpoints
airlock discover api ./spec.json --include "GET *" --exclude "DELETE *"
Reference in config:
apis:
petstore:
spec: ./petstore.json
base_url: https://petstore.example.com/v1
auth:
type: bearer
token: ${PETSTORE_TOKEN}
timeout_ms: 30000
max_response_bytes: 1048576
Interactively assign allow/ask/deny to tools discovered from your live MCP servers:
airlock configure-agent --config ./airlock.yaml --agent claude-code
Navigate with j/k, set permissions with a/s/d (per tool or bulk per provider), then Enter to edit config directly, copy to clipboard, or print YAML.
providers:
github:
type: stdio
command: npx
args: ['-y', '@modelcontextprotocol/server-github']
env:
GITHUB_PERSONAL_ACCESS_TOKEN: '${GITHUB_TOKEN}'
exec: builtin
http: builtin
# CLI tools exposed as MCP tools
clis:
git:
discovered: ./git-commands.yaml
shell: /bin/bash
max_output_bytes: 30000
commands:
status:
exec: git status
params: {}
log:
exec: 'git log --oneline -n {count}'
params:
count:
type: number
required: false
default: 10
# REST APIs exposed as MCP tools
apis:
petstore:
spec: ./petstore.json
base_url: https://petstore.example.com/v1
auth:
type: bearer
token: ${PETSTORE_TOKEN}
# Reusable permission profiles
profiles:
readonly:
allow:
- github/list*
- github/get*
- http/get
developer:
allow:
- github/*
- git/*
- exec/run
ask:
- github/create_pr
- github/merge_pull_request
agents:
helena:
extends: [readonly, developer]
exec:
allow: ['git status', 'git diff*', 'npm test*']
ask: ['git push*']
deny: ['sudo *', 'rm -rf *']
env:
PATH: '/usr/local/bin:/usr/bin:/bin'
http:
domain_allowlist: ['api.github.com', '*.sentry.io']
claude-code:
extends: [readonly]
exec:
allow: ['git status', 'git diff*', 'npm test']
approvals:
provider:
type: telegram
bot_token: '${TELEGRAM_BOT_TOKEN}'
chat_id: '${TELEGRAM_CHAT_ID}'
timeout_ms: 300000
batch_window_ms: 10000
Precedence: the most specific matching pattern wins — an exact tool name beats
provider/prefix*, which beats provider/* (longer prefixes beat shorter ones). Equally specific
matches break ties deny > remember_allow > ask > allow, and anything unmatched is
default-denied.
See examples/gateway.yaml for a fully annotated reference config and examples/profiles.yaml for composable profile examples.
Airlock can expose multiple names for the same underlying tool by using tool_overrides.<name>.alias_of.
This is especially useful when you want different approval posture for the same capability:
allowaskThat pattern helps reduce approval fatigue without giving up higher-power versions of the tool.
Sandbox config gets repetitive quickly. A typical local-only transform tool wants the same shape every time:
/tmp~/.sshTop-level sandbox_presets let you define that once and reuse it across agents and tool variants.
providers:
exec: builtin
sandbox_presets:
local_transform:
filesystem:
allow_read:
- '.'
allow_write:
- '/tmp'
- '/private/tmp'
deny_read:
- '~/.ssh'
- '~/.aws'
- '.env'
deny_write:
- '.'
network:
allowed_domains: []
denied_domains: []
github_only:
network:
allowed_domains:
- 'github.com'
- '*.github.com'
- 'api.github.com'
denied_domains: []
agents:
claude-code:
allow:
- 'python/sandboxed'
ask:
- 'python/full'
- 'python/github'
sandbox:
enabled: true
presets:
- local_transform
tool_overrides:
python/sandboxed:
alias_of: 'exec/run'
description: 'Run Python for local transformations only'
python/full:
alias_of: 'exec/run'
description: 'Run Python with broader permissions after approval'
sandbox:
filesystem:
allow_write:
- '.'
- '/tmp'
- '/private/tmp'
deny_write: []
network:
allowed_domains:
- 'pypi.org'
- '*.pythonhosted.org'
denied_domains: []
python/github:
alias_of: 'exec/run'
description: 'Run Python with GitHub-only network access after approval'
sandbox_presets:
- github_only
In this example:
python/sandboxed inherits the agent's local_transform preset and can be broadly allowedpython/full keeps the same base tool but overrides filesystem and network to be more permissive, so it should stay in askpython/github reuses the same local transform defaults but adds a reusable GitHub-only network presetPresets are expanded during config parsing.
sandbox.presets applies to the whole agent sandbox baselinetool_overrides.<tool>.sandbox_presets applies only to that tool variantsandbox values on the tool override win over preset values when they conflictWhen a tool call requires approval, Airlock includes the resolved sandbox summary in the approval payload and formatter output. That means operators can see things like:
Audit entries also include the resolved sandbox context alongside the tool arguments, so you can later verify not just what command ran, but under what safety envelope it ran.
allow variant for cheap local work like JSON transforms, parsing, codegen, or text mungingask until you've smoke-tested the exact runtime you care aboutlocal_transform, github_only, npm_registry, or readonly_repoSee examples/sandbox-presets.yaml for a fuller example config focused on this pattern.
| Provider | Config type | Notes |
|---|---|---|
| TUI | tui | Terminal UI on stderr — [a]pprove / [d]eny with j/k navigation via /dev/tty |
| macOS dialog | macos | Native approve/deny popup via osascript — best for local dev on Mac |
| Dashboard | dashboard | Browser UI with live SSE updates; runs in-process or as a standalone admin dashboard |
| iOS companion | ios | APNs push to the Airlock iOS companion app; see HITL providers |
| Telegram bot | telegram | Long-polls for replies; reply approve ABC123 or deny ABC123 |
| Slack webhook | slack | Incoming webhook, fire-and-forget; pair with slash commands for approvals |
| Generic webhook | webhook | POSTs {requests, text} JSON; configurable headers |
| OpenClaw | openclaw | WebSocket RPC to OpenClaw gateway; see examples/openclaw-setup.md |
| stdio | stdio | Prints to stderr, reads from stdin — for local dev and testing |
When running in gateway mode, Airlock can expose a separate management API
listener for operator/control-plane routes. It is disabled by default and binds
to 127.0.0.1:4113 when enabled:
server:
api_secret: ${AIRLOCK_API_SECRET}
management_api:
enabled: true
api_secret: ${MANAGEMENT_API_SECRET}
GET /health — MCP health, pending HITL count, uptime
GET /hitl/pending — list pending approval requests
POST /hitl/approve/:id — approve a request by canonical approval ID
POST /hitl/deny/:id — deny by canonical approval ID (body: {"reason": "..."})
GET /audit?agent=&tool=&since=&limit= — query audit log
GET /events — dashboard approval event stream
POST /approve?code=ABC123 — approve via manual-entry approval code
POST /deny?code=ABC123 — deny via manual-entry approval code
GET /admin/tools — dashboard tool catalog
All management endpoints require Authorization: Bearer <management_api.api_secret>.
If management_api.api_secret is unset, Airlock temporarily falls back to
server.api_secret and emits a deprecation warning so existing deployments keep
working while operators split the control-plane secret from the data-plane
fallback.
The management listener must use a different port than the agent MCP
data-plane listener (server.port, default 4111). Binding the management API
beyond loopback requires the explicit management_api.insecure_remote_bind: true
opt-in and trusted network controls.
npx vitest run # unit + integration tests
npx vitest run test/integration.test.ts # just the integration test (real child process)
npm run typecheck # TypeScript type check (no emit)
npm run build # Full build to dist/
A self-contained test config with an echo MCP server is included — no tokens or external services needed:
npx @modelcontextprotocol/inspector npx tsx src/index.ts -- --agent test --config test/test-gateway.yaml
Open http://localhost:6274, then list tools and call echo/echo or echo/add through the UI.
sudo cp airlock.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now airlock
See airlock.service for the full unit file.
Airlock can also run as a containerized gateway:
docker build -t airlock-bot:local .
mkdir -p airlock-config
cp examples/docker-gateway.yaml airlock-config/airlock.yaml
docker run --rm \
--env-file .env \
-v "$PWD/airlock-config:/config" \
-v airlock-data:/data \
-p 127.0.0.1:4111:4111 \
-p 127.0.0.1:4113:4113 \
-p 127.0.0.1:4112:4112 \
airlock-bot:local
The dashboard edits /config/airlock.yaml and writes /config/airlock.bak, so
mount a config directory when dashboard editing is enabled.
See examples/docker-compose.yaml and
docs/guides/docker-deploy.md for a VPS or
reverse-proxy deployment. The compose example uses split mode: the gateway mounts
config read-only, while the dashboard mounts the same config directory read-write
for admin edits and approval decisions.
MIT © 2026 Airlock