SuperAPIAI Directory

ironcurtain

github.com · AI agents

Open-source security layer for autonomous AI agents. Runs agents in isolated VMs to prevent prompt injection and rogue behavior.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

Purpose

IronCurtain is a secure runtime for autonomous AI agents. The problem it solves is this: current agent frameworks typically grant agents the same permissions as the user (full filesystem, credentials, and network access), which security researchers call "ambient authority," meaning a single prompt injection or multi-turn conversation drift could let an agent delete files, exfiltrate data, or push malicious code. Common countermeasures are narrowing the sandbox (sacrificing usability) or requiring the user to approve every action (sacrificing autonomy). IronCurtain takes another path: express security intent in natural language, and let the system handle enforcement.

Main Capabilities

  • English input, enforced enforcement: Users write a short constitution describing what the agent may and may not do; the system compiles it into a deterministic security policy through an LLM pipeline.
  • Semantic interposition: The agent is not given raw system access directly; all interactions go through MCP servers (filesystem, git, etc.); every tool call passes through the policy engine and can be allowed, denied, or escalated to the user for approval.
  • Defense in depth: Agent code runs in an isolated V8 environment with no direct host access, and the only egress is semantically clear MCP tool calls, each of which is checked against the policy.
  • Untrusted-agent assumption: Security does not rely on the model "behaving well," but is enforced at the boundary.
  • Two session modes: Built-in agent (code mode), where IronCurtain's own LLM agent writes TypeScript snippets that execute in a V8 sandbox; Docker agent mode, where external agents (Claude Code, Goose, Codex) run inside a container with no direct public internet access, LLM API calls go through a TLS-terminating MITM proxy (host allowlist, fake keys swapped for real keys), MCP tool calls pass through the same policy engine, and supported package installs go through a verified package proxy.
  • Policy compilation pipeline: Annotate MCP tool parameter roles (read path, write path, delete path, etc.), translate the English constitution into deterministic if/then rules, resolve symbol lists (such as "major news websites" or "my contacts"), generate test scenarios, run verification and repair (up to two rounds), and fail the build if verification is impossible. All artifacts usecontent-hash caching, so recompilation is triggered only when inputs change.
  • Multi-agent workflows: Built-in vulnerability discovery workflow (layered testing framework, Tier 1 isolated functions → Tier 2 multi-component → Tier 3 full build, with libFuzzer/AFL++ coverage gating, hypothesis-driven discover/triage states, and a final human report review gate) and design coding workflow (plan/design/implement/review loop, also with human gates). Each agent runs in its own Docker container with role-based policy boundaries; the engine automatically manages state transitions, artifact passing, and crash-recovery checkpoints.
  • SKILL.md skill packs: Placing them under ~/.ironcurtain/skills/<name>/ gives each Docker agent session purpose-specific guidance (helper scripts, deterministic checks, domain knowledge).

Usage

Prerequisites: Node.js 24 or 26 (even major version lines, both with prebuilt isolated-vm binaries; Node 25 is not supported), Docker (not required but strongly recommended, for Docker agent mode), and an API key for at least one LLM provider (Anthropic, Google, or OpenAI).

Can be installed as a global CLI tool (end users) or from source (development). Set the API key (it can also be placed in a .env file at the project root, or via ironcurtain config Write to ~/.ironcurtain/config.json; environment variables take precedence). Then run the first-launch wizard to complete settings such as the GitHub token, web search provider, and model selection.

How to run: Using a terminal multiplexer (mux) is recommended; it lets you use the agent's full interactive TUI in a single terminal while also having IronCurtain mediate every tool call. Non-mux sessions are also supported (suitable for quick one-off tasks and scripts), along with session resumption, a legacy raw PTY/debug mode, a Signal messaging transport for mobile approvals, and a daemon mode for scheduled cron tasks (with an optional Web UI).

Custom policies: You can use an LLM-assisted conversation to generate a constitution tailored to your workflow (saved to ~/.ironcurtain/constitution-user.md), then compile the policy into deterministic rules and verify it.

Use cases and limitations

Suitable for developers and security researchers who want autonomous AI agents to work within clear security boundaries, especially in scenarios involving file management, git operations, messaging, and API interactions, as well as automated workflows that require multi-agent collaboration with human approval gates.

Limitations and caveats: The project is explicitly labeled an early-stage research prototype; the API, configuration format, and architecture may all change. Policies use default-deny: any call that does not match an explicit allow or escalation rule is denied. Nested Docker is an optional feature, and the implemented supported configurations cover Apple Container and Docker Desktop on macOS, as well as WSL2 with Docker Desktop on amd64; the native Linux Engine does not support nesting. For cron jobs and persona-related configuration, see DAEMON.md. Content-free LLM usage statistics are collected locally (enabled by default), recording token counts, timing, protocol/provider/model routing, outcomes, denials, and cost metadata, but not storing prompts, completions, thinking text, tool payloads, request/response bodies, credentials, or arbitrary request headers; labels derived from users/configuration and non-public routes are pseudonymized with a local HMAC key.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools