# RayTrace

> RayTrace is an open-source MCP server for developer tools. Local gVisor sandbox that records what coding agents actually run, for developers. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** macOS, Linux, Windows, CLI, Self-hosted, API
- **Website:** https://www.raytracer.si
- **Repository:** https://github.com/godcreatebugs/raytrace-cli
- **MCP Registry name:** io.github.Godcreatebugs/raytrace
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-19

## About

The README says RayTrace runs Claude Code or Codex inside an isolated copy of a project, where each sandbox is a Docker container under gVisor inside a Lima-managed Linux VM. A collector outside the sandbox logs every command with its real exit code, the files read or changed, and the network connections made, so the agent's own report can be checked against the machine's record.

The dashboard separates what the agent reported from what the sandbox observed, and flags disagreements. Users can take file changes home as a patch, rerun a session from a chosen step with something altered in a forked sandbox, and search recorded runs for failed commands or touched files like .env.

The local CLI is MIT licensed and needs no account; the website describes it as free and open source. Optional probability scoring and summaries require the user's own TypeSafe and OpenRouter keys, and a cloud sandbox option is offered as a preview.

## Features

- **Isolated agent sandbox:** Runs coding agents in a Docker container under gVisor inside a local Lima VM, separated from the host's files and private networks.
- **Outside-the-sandbox recording:** A collector the agent cannot disable logs commands, exit codes, file access and outbound connections.
- **Reported versus observed comparison:** The dashboard shows tool calls alongside sandbox evidence so mismatches between claims and actual runs are visible.
- **Patch export of changes:** Each prompt's file changes can be reviewed as diffs and downloaded as a patch to apply to your own checkout.
- **Playground reruns:** Fork a session from any step with a changed tool result, file or model, and compare outcomes with an optional test command.
- **Evidence search:** Searches recorded sessions with filters such as outcome, tool, exit code and file path.
- **Restricted file alerts:** Lets owners restrict or watch sensitive files and raises alerts when an agent touches them.

## Good for

- Checking whether an agent's claim that tests passed matches the real exit code
- Auditing which network endpoints and packages an agent contacted during a task
- Running Claude Code or Codex on a repository without giving it access to host secrets
- Reviewing an agent's file changes as a patch before merging them
- Rerunning an agent session with a different model or tool result to compare outcomes

## Install

### Claude Code (Terminal)

```sh
claude mcp add raytrace -- npx -y @raytrace-cli/cli
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "raytrace": {
      "command": "npx",
      "args": [
        "-y",
        "@raytrace-cli/cli"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "raytrace": {
      "command": "npx",
      "args": [
        "-y",
        "@raytrace-cli/cli"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "raytrace": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@raytrace-cli/cli"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "raytrace": {
      "command": "npx",
      "args": [
        "-y",
        "@raytrace-cli/cli"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "raytrace": {
      "command": "npx",
      "args": [
        "-y",
        "@raytrace-cli/cli"
      ]
    }
  }
}
```

## FAQ

### Is the local version free?

The README says local sandboxes are free, MIT licensed, and need no RayTrace account. Cloud sandboxes are optional.

### Which agents does RayTrace support?

The README describes running Claude Code or Codex in the sandbox; Codex prompts do not yet appear on the Prompts page in local sandboxes.

### Does my code get uploaded?

According to the README, local sandboxes keep everything on the machine and nothing is uploaded. Cloud sandboxes upload the project to RayTrace servers.

### What do I need to run RayTrace?

The README lists macOS 13.5 or later, or Linux with Lima, QEMU and KVM access; Windows is experimental and needs WSL2. The first setup downloads about 1 GB.

### How do I add RayTrace to Claude Code?

Run this command in your terminal: claude mcp add raytrace -- npx -y @raytrace-cli/cli

### What are the best alternatives to RayTrace?

The closest alternatives to RayTrace are Ironclaw, rag-rat, Agent Theatre, Tracetoon and ParallelSandbox.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Ironclaw](https://ai-powered.com/mcp/ironclaw): Ironclaw is an open-source MCP server for security.
- [rag-rat](https://ai-powered.com/mcp/rag-rat): rag-rat is an open-source MCP server for knowledge and memory.
- [Agent Theatre](https://ai-powered.com/mcp/agent-theatre): Agent Theatre is an open-source MCP server for developer tools.
- [Tracetoon](https://ai-powered.com/mcp/tracetoon): Tracetoon is an open-source MCP server for developer tools.
- [ParallelSandbox](https://ai-powered.com/mcp/parallelsandbox): ParallelSandbox is a freemium MCP server for developer tools.
- [Actvt](https://ai-powered.com/mcp/actvt): Actvt is a freemium MCP server for developer tools.
- [Traceo](https://ai-powered.com/mcp/traceo): Traceo is a freemium MCP server for developer tools.
- [Headmesh Agent Sandbox](https://ai-powered.com/mcp/headmesh-agent-sandbox): Headmesh Agent Sandbox is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/raytrace
