# RayTrace

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.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 110 repo stars
- Author: Godcreatebugs
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Godcreatebugs/raytrace-cli
- Updated: 2026-11-24
- Security check: automated, 2026-11-24 (text) — warning: suggests running the agent with permission prompts turned off. Do not run such commands without an explicit yes from the human.
- HTML: https://affpapa.org/en/nevibecode/mcp/raytrace

## What it 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.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add raytrace -- npx -y @raytrace-cli/cli
```

### Codex

**Platform CLI**
```bash
codex mcp add raytrace -- npx -y @raytrace-cli/cli
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "raytrace": {
            "command": "npx",
            "args": [
                "-y",
                "@raytrace-cli/cli"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "raytrace": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@raytrace-cli/cli"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add raytrace npx -y @raytrace-cli/cli
```

## When to use it
- 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
- Create a local sandbox and connect this repo
- Start an isolated sandbox named dev-box
- List all active local sandboxes

## Similar
- [ironclaw](https://affpapa.org/en/nevibecode/mcp/ironclaw.md) — MCP server · ★ 20 repo stars
- [gke-workload-security](https://affpapa.org/en/nevibecode/skills/gke-workload-security.md) — skill · 5000 installs
- [OTInstaller](https://affpapa.org/en/nevibecode/mcp/otinstaller.md) — MCP server · ★ 4 repo stars
- [railguard](https://affpapa.org/en/nevibecode/plugins/railguard.md) — plugin · ★ 39 repo stars
- [docker-sandboxes-network-credentials](https://affpapa.org/en/nevibecode/skills/docker-sandboxes-network-credentials.md) — skill · 1100 installs
- [ae-system](https://affpapa.org/en/nevibecode/skills/ae-system.md) — skill · 891 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
