RayTrace — Claude Code MCP server: sandbox agents with gVisor
RayTrace is a Claude Code MCP server that runs coding agents in an isolated gVisor environment. It logs true exit codes, file modifications, and network connections from outside the sandbox.
MIT ★ 110 updated 2026-11-24
claude mcp add raytrace -- npx -y @raytrace-cli/cliWhat RayTrace does
The server spins up an isolated gVisor container inside a Lima Linux virtual machine to run coding tasks. An external collector sits outside the guest environment, logging every executed binary, real process exit status, touched file, and outbound network socket.
Recorded telemetry is displayed in a local web interface at http://127.0.0.1:8797. This lets you compare tool outputs claimed by the model against raw machine events and inspect file diffs.
Initial setup downloads about 1 GB of assets, and the virtual machine reserves 4 GiB of memory during execution. Linux hosts need access to /dev/kvm, while Windows support remains experimental and relies on WSL2.
What it helps with
- sandboxing agents with gVisor
- capturing actual shell commands and network calls
- auditing discrepancies between agent claims and machine events
- keeping local secrets and files isolated from agent processes
Example prompts for the agent
- Create a local sandbox and connect this repo
- Start an isolated sandbox named dev-box
- List all active local sandboxes
How to install RayTrace
Platform CLI
claude mcp add raytrace -- npx -y @raytrace-cli/cliPlatform CLI
codex mcp add raytrace -- npx -y @raytrace-cli/cliConfig file
{
"mcpServers": {
"raytrace": {
"command": "npx",
"args": [
"-y",
"@raytrace-cli/cli"
]
}
}
}Config file
{
"servers": {
"raytrace": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@raytrace-cli/cli"
]
}
}
}Platform CLI
gemini mcp add raytrace npx -y @raytrace-cli/cliStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about RayTrace
How to install RayTrace in Claude Code?
Run claude mcp add raytrace -- npx -y @raytrace-cli/cli.
What does RayTrace do?
It executes coding agents in an isolated gVisor container managed by Lima, collecting an external log of modified files, network traffic, and executed terminal commands.
What are the requirements for RayTrace?
The environment needs 4 GiB of RAM, about 1 GB of disk space, and Node.js 22.16 or higher when installed from npm. Linux hosts require /dev/kvm access, and older macOS releases need QEMU.