Repository avatar
AI Tools
v0.2.2
active

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 (Warpgate 0.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-paste uvx --from opsairlock opsairlock-mcp snippet 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 PortsBest ForWhat You Need to Configure
router (Default)None (127.0.0.1:8888 only)Fast setup, strict firewalls, Free tier (3 grants/mo) or ProNothing — just run opsairlock install
caddy (Opt-in)TCP 443 (your own Caddy)Privacy-first teams with their own domain & TLSPoint 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 domainOpen your chosen TCP port in your VPS firewall / security group

Path 1 — Zero-Port Router Mode (Default, Free 3 Grants/Month)

  1. Run opsairlock install (no flags required).
  2. Click the pairing link in your terminal to connect Slack.
  3. Done — zero inbound ports are opened on your VPS. Free tier includes 3 grants/month (max 3h per session); upgrade to Pro ($19/mo unlimited) 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:

  1. Point a DNS A record (e.g. bastion.yourdomain.com) to your VPS public IP and allow inbound TCP 443 on your firewall.
  2. Run with explicit CLI flags:
    opsairlock install --proxy caddy --host bastion.yourdomain.com
    
    (Or pre-configure ~/.opsairlock/.env.airlock with PROXY_MODE=caddy and EXTERNAL_HOST=bastion.yourdomain.com, then run opsairlock install.)
  3. Copy the generated ~/.opsairlock/Caddyfile.airlock block into /etc/caddy/Caddyfile and 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:

  1. Allow your chosen TCP port (e.g. 8080 or 8899) in your VPS firewall / cloud security group.
  2. Run with explicit CLI flags:
    opsairlock install --proxy standalone --port 8080 --host <YOUR_VPS_IP_OR_DOMAIN>
    
    (Or pre-configure ~/.opsairlock/.env.airlock with PROXY_MODE=standalone, EXTERNAL_PORT=8080, and EXTERNAL_HOST=<YOUR_VPS_IP_OR_DOMAIN>, then run opsairlock install.)

How OpsAirlock Compares

SolutionBest ForWhy Teams Pick OpsAirlock Instead
Teleport / Hoop.devEnterprise platform teamsHeavy multi-component clusters; OpsAirlock deploys on a single VPS in 60 seconds
ssh-mcp / MCP pluginsLocal MCP clients onlyNo server-side OS sandbox, no contractor browser Web SSH, no session replay
Raw SSH / Root KeysSolo hobby serversStanding root keys, no sandbox isolation, no kill switch, no audit trail
OpsAirlock1–50 person SMBs, AI agencies, indie foundersZero-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.

PYPI
opsairlock
Install Command
pip install opsairlock