
opsairlock-mcp
io.github.opsairlock/opsairlock-mcp
Fail-closed MCP guardrail for sandboxed Linux access with Slack approvals and local session audit.
Documentation
OpsAirlock
Run one command on your VPS (opsairlock install), close SSH forever, and manage AI Agents & contractors from Slack — OS sandboxing, 1-tap approvals, TTL auto-revoke, and local session replay.
100% Glass-Box Trust: Pure Python 3 standard library (
dependencies = []), zero hidden telemetry, and 100% unmodified official Apache-2.0 bastion engine (Warpgate0.30.0). All session recordings and audit logs remain strictly local on your VPS.
Quick Start (Default: Zero-Port Router Mode)
By default, OpsAirlock opens zero inbound ports on your VPS and requires zero firewall or domain setup. The bastion binds strictly to 127.0.0.1:8888 and connects outbound over HTTPS to the OpsAirlock Approval Router:
# Recommended (PEP-668 safe on Ubuntu 24.04 / Debian 12+)
pipx install opsairlock && opsairlock install
# Alternative: zero-dependency shell installer from a cloned repo
./install.sh && opsairlock install
In 60 seconds, opsairlock install initializes the loopback-only bastion, pairs your Slack workspace via 1-click link, and enables opsairlock-daemon.service. Manage everything from Slack:
/airlock grant human --profile deploy --workdir /srv/app --ttl 3h→ Ready-to-share browser Web SSH pass./airlock grant agent --profile readonly --ttl 2h→ Ready-to-pasteuvx --from opsairlock opsairlock-mcpsnippet for Claude Code / Cursor.- High-risk commands pause and pop
[Approve] / [Deny]directly in Slack (or fail closed offline). /airlock audit&/airlock revoke→ 3-second Red/Yellow/Green risk summary + local replay link + instant kill switch.
Choose Your Access Mode (Router Default vs. Self-Hosted Own Port)
By default, OpsAirlock uses Zero-Port Router Mode (includes 3 free grants/month, up to 3 hours per session). If you prefer not to route Web SSH through router.opsairlock.com or want to expose your own domain/port directly, explicitly opt in via CLI flags or ~/.opsairlock/.env.airlock:
Mode (PROXY_MODE) | VPS Inbound Ports | Best For | What You Need to Configure |
|---|---|---|---|
router (Default) | None (127.0.0.1:8888 only) | Fast setup, strict firewalls, Free tier (3 grants/mo) or Pro | Nothing — just run opsairlock install |
caddy (Opt-in) | TCP 443 (your own Caddy) | Privacy-first teams with their own domain & TLS | Point DNS + add generated Caddyfile.airlock to Caddy + open TCP 443 |
standalone (Opt-in) | Custom TCP port (e.g. 8080) | Direct IP access without Caddy or a domain | Open your chosen TCP port in your VPS firewall / security group |
Path 1 — Zero-Port Router Mode (Default, Free 3 Grants/Month)
- Run
opsairlock install(no flags required). - Click the pairing link in your terminal to connect Slack.
- Done — zero inbound ports are opened on your VPS. Free tier includes 3 grants/month (max 3h per session); upgrade to Pro (
$19/mounlimited) or Credit Packs ($9 / 10 grants) anytime at opsairlock.com.
Path 2 — Self-Hosted Own Domain with Caddy (PROXY_MODE=caddy)
Use this if you want contractor Web SSH traffic to terminate directly on your own VPS domain over HTTPS port 443:
- Point a DNS
Arecord (e.g.bastion.yourdomain.com) to your VPS public IP and allow inbound TCP 443 on your firewall. - Run with explicit CLI flags:
(Or pre-configureopsairlock install --proxy caddy --host bastion.yourdomain.com~/.opsairlock/.env.airlockwithPROXY_MODE=caddyandEXTERNAL_HOST=bastion.yourdomain.com, then runopsairlock install.) - Copy the generated
~/.opsairlock/Caddyfile.airlockblock into/etc/caddy/Caddyfileand reload Caddy (sudo systemctl reload caddy).
Path 3 — Self-Hosted Direct Port (PROXY_MODE=standalone)
Use this if you want direct access on your own VPS port without Caddy:
- Allow your chosen TCP port (e.g.
8080or8899) in your VPS firewall / cloud security group. - Run with explicit CLI flags:
(Or pre-configureopsairlock install --proxy standalone --port 8080 --host <YOUR_VPS_IP_OR_DOMAIN>~/.opsairlock/.env.airlockwithPROXY_MODE=standalone,EXTERNAL_PORT=8080, andEXTERNAL_HOST=<YOUR_VPS_IP_OR_DOMAIN>, then runopsairlock install.)
How OpsAirlock Compares
| Solution | Best For | Why Teams Pick OpsAirlock Instead |
|---|---|---|
| Teleport / Hoop.dev | Enterprise platform teams | Heavy multi-component clusters; OpsAirlock deploys on a single VPS in 60 seconds |
| ssh-mcp / MCP plugins | Local MCP clients only | No server-side OS sandbox, no contractor browser Web SSH, no session replay |
| Raw SSH / Root Keys | Solo hobby servers | Standing root keys, no sandbox isolation, no kill switch, no audit trail |
| OpsAirlock | 1–50 person SMBs, AI agencies, indie founders | Zero-Port Default • Slack Control Plane • 3 OS Sandbox Profiles • TTL Kill Switch |
Attribution & License
Licensed under the Apache-2.0 License. Powered by the unmodified upstream Warpgate (Apache-2.0) bastion engine. See LICENSE, NOTICE.
opsairlockpip install opsairlock