English | [中文](README.zh-CN.md)

RayTrace — Prompts, Tool calls, Sandbox evidence

Eye of Sauron

See what your coding agents did, rather than what they said they did.

The agent said it only read the file. The sandbox saw it wrote to ~/.bashrc, twice.

Try the interactive demo — no install needed

Website · npm · PyPI · MCP · Contributing · Discord · Report an issue

npm PyPI MIT license raytracer.si Discord Godcreatebugs/raytrace-cli MCP server

## Why sandboxing matters A coding agent doesn't just suggest edits. It runs commands, installs packages, reads and writes files, and opens network connections — often with permission to do all of that on your machine. What it tells you afterwards is a claim. "Tests passed" is what the agent reported. That report can miss a command that phoned home, a package you didn't ask for, a file outside the task, or a test whose real exit code was not zero. And if the agent is running on your laptop, it can reach everything else there: secrets, private networks, and files that were never part of the work. Sandboxing is how you change both of those problems. The agent works in an isolated copy of the project, where it cannot see your machine. And the record of what happened is taken from outside that sandbox, so the agent cannot turn it off or edit it. **[▶ Watch: Why we built RayTrace (1 min 47 sec, MP4)](docs/videos/why-sandboxing.mp4)** *Why we built RayTrace — the gap between what an agent reports and what actually ran.* ## How RayTrace sandboxes RayTrace runs Claude Code or Codex in that isolated copy, records what actually happened, and shows it in a dashboard. Each local sandbox is a Docker container under [gVisor](https://gvisor.dev), inside a Linux VM made with [Lima](https://lima-vm.io). It can't see your machine's files or private networks. A collector outside the sandbox — which the agent can't turn off — records every command, its real exit code, the files it read or changed, and where it connected. Your own files are never changed. Nothing is uploaded. The dashboard has two layers. **Tool calls** are what the agent reported. **Sandbox evidence** is what the machine saw. If those disagree, you can see it, and take the file diffs home as a patch. Local sandboxes are free, MIT licensed, and need no [RayTrace](https://www.raytracer.si/) account. Cloud sandboxes are optional, for teams that want a shared dashboard at [app.raytracer.si](https://app.raytracer.si). --- ## Create a local sandbox Install the CLI from [npm](https://www.npmjs.com/package/@raytrace-cli/cli) or [PyPI](https://pypi.org/project/raytrace-cli/), then create a sandbox in any Git repository. Nothing is uploaded. ```sh npm install -g @raytrace-cli/cli # or: pip install raytrace-cli # or: uv tool install raytrace-cli cd your-project # any Git repository raytrace sandbox create --local # first time: sets up the VM, a few minutes raytrace connect your-project --claude # a terminal in it, with Claude Code running raytrace open # run in another terminal to open the dashboard ``` - The sandbox is named after the folder. Use `--name my-box` to choose the name. - Use `--codex` instead of `--claude` to start Codex, or leave both off for a plain shell where you run `claude` or `codex` yourself. - `connect` prints a link to the dashboard showing only this sandbox's prompts. Run `raytrace open` to open the full local dashboard and sign your browser in. The dashboard is at `http://127.0.0.1:8797` by default. If you set `RAYTACE_PORT` in `~/.raytrace/config.env`, the dashboard is on that port instead. The npm package needs **Node.js 22.16 or newer** (`node --version`) on macOS or Linux. The PyPI package installs the same CLI with its own Node.js, so you don't need Node on the machine. Windows is experimental. Where the docs say `npx -y @raytrace-cli/cli@latest` (for example in [MCP setup](docs/mcp.md)), use `uvx --from raytrace-cli raytrace` instead. Or skip the commands and ask your editor's agent: [set up MCP](docs/mcp.md), then say "create a local sandbox and connect this repo". ### What you need | | Requirement | |---|---| | **macOS 13.5 or later** | Nothing to install. RayTrace uses your [Lima](https://lima-vm.io) 2.0+ if you have it, or offers to download Lima into `~/.raytrace/lima` (no admin rights; checked against a pinned checksum) | | **Older macOS** | QEMU too: `brew install qemu` | | **Linux** | Lima, QEMU, and access to `/dev/kvm` (`sudo usermod -aG kvm $USER`, then log out and in) | | **Windows** | experimental; RayTrace doesn't download Lima there, so local sandboxes need WSL2 — see [docs/windows.md](docs/windows.md) for what works and the WSL2 and cloud paths | | **Disk and memory** | the first setup downloads about 1 GB; the VM uses 4 GiB of memory while it runs | `raytrace doctor` checks all of this and says how to fix anything missing. For slow downloads, port conflicts, Linux KVM access or an interrupted setup, follow [first local sandbox setup troubleshooting](docs/troubleshooting.md#first-local-sandbox-setup). ### Day to day ```sh raytrace sandbox list --local # your local sandboxes raytrace connect my-box --claude # back in; the sandbox keeps running when you leave raytrace open # open the local dashboard and sign in raytrace sandbox stop my-box # stop it; its files are kept raytrace sandbox start my-box raytrace sandbox destroy my-box # asks whether to delete its captured logs too limactl stop raytrace # stop the whole VM to free its 4 GiB of memory ``` When you destroy a sandbox, you're asked what to do with its logs: - **Yes** deletes them everywhere, the dashboard and Playground forks included. - **No** moves them to `~/.raytrace/archive/-