Getting Started
Requirements
Section titled “Requirements”| macOS | Linux | |
|---|---|---|
| OS | macOS 14 (Sonoma) or later | Debian/Ubuntu (apt-based) |
| Hardware | Apple Silicon (M1 or newer) | x86_64 or arm64, KVM capable |
| Disk | ~2 GB for binaries + VM assets | ~2 GB for binaries + VM assets |
macOS uses Apple’s Virtualization.framework (Apple Silicon only). Linux uses KVM.
Install
Section titled “Install”One-liner (recommended)
Section titled “One-liner (recommended)”curl -fsSL https://capsem.org/install.sh | shThe script auto-detects your OS and architecture, downloads the Capsem binaries, and runs capsem setup to complete installation.
Manual download
Section titled “Manual download”- Go to the latest release on GitHub.
- Download the
.pkg(macOS) or.deb(Linux) file for your architecture. - macOS: open the package and follow the installer.
- Linux:
sudo apt install ./capsem_*.deb
Building from source
Section titled “Building from source”See the Development Guide for instructions on cloning the repo, installing toolchain dependencies, building VM assets, and running from source.
On first use, Capsem auto-runs the setup wizard. You can also run it explicitly:
capsem setupThe wizard walks through 6 steps:
- Corp config — enterprise provisioning (optional, skip for personal use)
- Asset download — downloads the Linux VM image (~200 MB) in the background
- Security preset — choose medium or high network restriction
- AI providers — auto-detects API keys from your environment
- Repository access — detects Git/SSH/GitHub configuration
- Service install — registers the background service (starts on login)
After setup, the Capsem service runs in the background (like Docker). It starts automatically on login.
First session
Section titled “First session”Boot a sandboxed VM and get a shell:
capsem shellThis creates a temporary Linux session with an air-gapped network. You get a terminal inside the VM session with Python 3, Node.js, git, and 30+ packages pre-installed. The session is destroyed when you exit.
For a persistent session that survives suspend/resume cycles:
capsem create myboxcapsem shell myboxManage sessions with:
capsem list # show all sessionscapsem info mybox # detailed status + telemetrycapsem suspend mybox # save state to diskcapsem resume mybox # resume from where you left offcapsem delete mybox # destroy permanentlySee the CLI Reference for the full command list.
Desktop app
Section titled “Desktop app”You can also use the Capsem desktop app for a graphical interface:
# macOSopen /Applications/Capsem.app
# Or launch from the system trayThe desktop app connects to the same background service — it’s a thin browser shell showing the same UI.
Using an AI agent
Section titled “Using an AI agent”Capsem comes with Claude Code, Gemini CLI, and Codex pre-installed in the VM. To start a session with an agent:
# Inside the Capsem terminalclaude # Claude Codegemini # Gemini CLIcodex # CodexAPI keys are configured in ~/.capsem/user.toml on the host (or auto-detected by the setup wizard):
[ai.anthropic]api_key = "sk-ant-..."
[ai.google]api_key = "AIza..."
[ai.openai]api_key = "sk-..."The keys are securely forwarded into the VM at boot time. They never touch the guest filesystem.
Network policy
Section titled “Network policy”By default, the VM is air-gapped — all network traffic routes through the host’s MITM proxy. Only explicitly allowed domains can be reached. Add custom domains in ~/.capsem/user.toml:
[security.web]custom_allow = [ "api.anthropic.com", "generativelanguage.googleapis.com", "api.openai.com", "pypi.org", "files.pythonhosted.org", "registry.npmjs.org",]Every HTTPS request is logged to a per-session SQLite database with full method, path, headers, and body preview. The Capsem GUI shows this in real time in the Network tab.
MCP integration
Section titled “MCP integration”AI agents can control sandboxes programmatically via the MCP server:
# Add to your Claude Code or Gemini CLI MCP configcapsem-mcpThis gives agents tools to create, exec, read/write files, and inspect sessions.
What’s next
Section titled “What’s next”- CLI Reference — full command reference
- Service Architecture — how the multi-binary system works
- Kernel Hardening — how the VM kernel is locked down
- Network Isolation — air-gapped networking and the MITM proxy
- Capsem Doctor — run diagnostics inside the VM