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
English | 中文
See what your coding agents did, rather than what they said they did.
Try the interactive demo — no install needed
Website · npm · PyPI · MCP · Contributing · Discord · Report an issue
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)
Why we built RayTrace — the gap between what an agent reports and what actually ran.
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, inside a Linux VM made with Lima. 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 account. Cloud sandboxes are optional, for teams that want a shared dashboard at app.raytracer.si.
Install the CLI from npm or PyPI, then create a sandbox in any Git repository. Nothing is uploaded.
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
--name my-box to choose the name.--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),
use uvx --from raytrace-cli raytrace instead.
Or skip the commands and ask your editor's agent: set up MCP, then say "create a local sandbox and connect this repo".
| Requirement | |
|---|---|
| macOS 13.5 or later | Nothing to install. RayTrace uses your Lima 2.0+ if you have it, or offers to download Lima into ~/.raytrace/lima (no admin rights; checked against a pinned chec |
bug(upload): raytrace upload logs leaks other sandboxes, host sessions, and auxiliary caches
https://github.com/RayTrace-Inc/RayTrace/issues/284
Labels: 없음
Thanks for wanting to help. This guide is how to set up a checkout, run the tests, and open a pull request. The product itself — local and cloud sandboxes, the MCP server, and the dashboard — is described in the README.
If RayTrace is useful to you, a star on the repo helps other developers find it.
Questions or want to pick up more issues? Join us on Discord: https://discord.gg/k7VWV5Gac9
node --version) and npm/dev/kvm. Windows is experimental;
RayTrace doesn't download Lima there. raytrace doctor (or
node bin/raytrace.mjs doctor) checks what's missing.git clone https://github.com/RayTrace-Inc/RayTrace.git
cd RayTrace
npm install
npm run build # dashboard -> dist/dashboard
npm run typecheck
npm test
node bin/raytrace.mjs <command> # run the CLI from this folder
To use your checkout as the MCP server in Claude Code:
claude mcp add --scope user raytrace -- node /path/to/RayTrace/bin/raytrace.mjs mcp
To try it without touching your real setup, give it its own home and port:
mkdir -p /tmp/rt && echo RAYTACE_PORT=18797 > /tmp/rt/config.env
RAYTRACE_HOME=/tmp/rt node bin/raytrace.mjs setup --no-claude-code
npm run dashboard:dev runs the dashboard with hot reload, using the API from
a running RayTrace.
Before you open a pull request, run:
npm test
npm run typecheck
npm run build
raytrace-cli/
├── bin/raytrace.mjs # CLI entry
├── src/ # CLI: sandbox, MCP, auth, Lima, report, upload
├── proxy/ # recording, evidence store, playground, traces
├── worker/sandbox/ # gVisor sandbox image, collector, Lima config
├── dashboard/ # local dashboard (Vite and React)
├── python/ # PyPI wrapper and wheel build
├── test/ # CLI tests (`npm test` also runs proxy/*.test.mjs)
└── docs/ # guides and screenshots
Merged contributions earn points on a public leaderboard. The top 3 get the chance to join the RayTrace team as remote, paid interns. The full announcement is discussion #186.
good first issue are the place
to start./claim on it. A bot assigns you if a slot is free. Up to 3
people can claim an issue at a time; a feature worth 10 points or more
has 1 slot. Being assigned is the claim: other comments don't reserve
anything, and commenting /claim again doesn't take a second slot.
/unclaim gives yours back.Closes #N or Part of #N. Otherwise the bot drops your
claim and someone else can take over.feature issue worth 10 points or more, needs a design
comment on the issue and the design-approved label before you write the
code. Large pull requests without it are closed without review. Splitting a
feature? Say which part you're taking (Part of #N).[!IMPORTANT] Every pull request must state the points it claims in the Points section of the pull request template, and why. Pull requests that don't claim points are closed without review.
The number you claim is a request, not a promise. A maintainer confirms it with a
points:Nlabel before merging, and may accept it, lower it, or reject it (points:0). The Points check fails until the description claims points and a maintainer has added the label.
| Contribution | Points |
|---|---|
A feature issue | that issue's points:N label (3, 5, 10 or 15) |
Part of a feature (Part of #N in the PR) | up to the feature's points, set by a maintainer |
| A bug you found and fixed that wasn't already reported | 2 |
| A fix for a bug that is already reported in an issue | 1 |
A bug report a maintainer labels bug:confirmed | 1 |
| Docs, cleanup and any other merged PR | 1 |
points:0. AI tools are fine; you are responsible for
understanding an