# raytrace-cli [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/Godcreatebugs/raytrace-cli  
**GitHub Stars:** 123  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/raytrace-cli

## Description
Sandbox to create a local isolation for agentic run. "Eye of Sauron" for agents, observe everything from file access to network calls with rayTrace sandbox

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

## Documentation

## What raytrace-cli MCP server does

raytrace-cli MCP server gives MCP-connected agents access to RayTrace's local sandbox workflow. A repository is copied into an isolated environment where an agent can work without direct access to the host's files or private networks. The resulting activity is captured for inspection in a local dashboard.

RayTrace separates reported agent activity from observed sandbox evidence. The dashboard can show prompts, answers, and tool calls alongside commands that actually ran, their exit codes, files read or changed, and network destinations. Project changes are snapshotted after edits, and the resulting differences can be taken out as a patch.

This fits development tasks where an agent needs to modify or test a repository but the operator also needs an auditable record of what happened.

## How it works

Each local sandbox runs as a Docker container under gVisor inside a Linux virtual machine managed by Lima. A collector outside the sandbox records activity, so the agent cannot disable or alter the capture process. The host project itself is not modified, and local sessions do not upload data.

Sandboxes have fixed resource limits: 2 GB of memory, 2 CPUs, 256 processes, and a 512 MB `/tmp`. They share a 30 GiB virtual-machine disk. The dashboard runs locally at `http://127.0.0.1:8797` by default.

The workflow can start Claude Code, start Codex, or provide a plain shell in the sandbox. Sessions remain available when the terminal disconnects. RayTrace can also rerun a session from a previous step as a separate fork, with altered tool results, files, model, or messages, and optionally run a check such as `npm test`.

## Setup and configuration

Install the CLI from npm with `npm install -g @raytrace-cli/cli`, or install the PyPI package with `pip install raytrace-cli` or `uv tool install raytrace-cli`. The npm route requires Node.js 22.16 or newer on macOS or Linux; the PyPI package supplies its own Node.js runtime.

From a Git repository, create a local sandbox with `raytrace sandbox create --local`, then connect with `raytrace connect <repository-or-sandbox> --claude` or `--codex`. Omitting both flags opens a plain shell. Use `raytrace open` to access the local dashboard. The MCP setup can use `npx -y @raytrace-cli/cli@latest`; when using the Python installation, use `uvx --from raytrace-cli raytrace` instead.

macOS 13.5 or later can use Lima 2.0+ or let RayTrace download it. Linux requires Lima, QEMU, and access to `/dev/kvm`. Windows support is experimental and requires WSL2 for local sandboxes. Initial setup downloads about 1 GB, and the VM uses 4 GiB of memory while running. `raytrace doctor` checks the host prerequisites.

## Tools and capabilities

- Create, list, start, stop, and destroy local sandboxes.
- Connect a repository to Claude Code, Codex, or a plain shell.
- Open a local dashboard for prompts, tool calls, and sandbox evidence.
- Review commands, exit codes, file reads, edits, and network connections.
- Inspect snapshots and export changes as patches.
- Archive or delete captured logs when destroying a sandbox.
- Upload logs to the RayTrace cloud dashboard after signing in.
- Fork recorded sessions and compare reruns with optional checks.

## Limitations and notes

Local sandboxes depend on virtualization support and host resources. Older macOS versions need QEMU in addition to Lima, Linux needs KVM access, and Windows follows an experimental WSL2 path. Each sandbox shares the VM's disk capacity and has the stated CPU, memory, process, and temporary-storage limits.

Cloud sandboxes and cloud log uploads are optional. Uploading logs requires a RayTrace account; local use does not require one. Destroying a sandbox prompts for a log-handling choice: captured data can be deleted or moved into `~/.raytrace/archive/` for continued dashboard access.

_Full upstream README: https://allmcps.com/mcp/raytrace-cli/readme_

