Metadata-Version: 2.4
Name: opsairlock
Version: 0.2.2
Summary: 60-second zero-trust access airlock, OS sandbox, and Slack-first control plane for AI Agents and freelancers.
Author-email: OpsAirlock <hello@opsairlock.com>
License: Apache-2.0
Project-URL: Homepage, https://opsairlock.com
Project-URL: Repository, https://github.com/opsairlock/opsairlock
Project-URL: Issues, https://github.com/opsairlock/opsairlock/issues
Keywords: ssh,bastion,ai-agent,mcp,zero-trust,security,devops,slack
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Dynamic: license-file

# 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](https://github.com/warp-tech/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:

```bash
# 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 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)

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](https://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:
   ```bash
   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:
   ```bash
   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

| Solution | Best For | Why Teams Pick OpsAirlock Instead |
| :--- | :--- | :--- |
| **[Teleport](https://goteleport.com/use-cases/agentic-ai/) / [Hoop.dev](https://github.com/hoophq/hoop)** | Enterprise platform teams | Heavy multi-component clusters; OpsAirlock deploys on a single VPS in 60 seconds |
| **[ssh-mcp](https://github.com/tufantunc/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](https://github.com/warp-tech/warpgate) (Apache-2.0) bastion engine. See [`LICENSE`](./LICENSE), [`NOTICE`](./NOTICE).

<!-- mcp-name: io.github.opsairlock/opsairlock-mcp -->
