sandbox-agent/docs/frontend.mdx
2026-01-26 22:29:10 -08:00

22 lines
534 B
Text

---
title: "Frontend Demo"
description: "Run the Vite + React UI for testing the daemon."
---
The demo frontend lives at `frontend/packages/inspector`.
## Run locally
```bash
pnpm install
pnpm --filter @sandbox-agent/inspector dev
```
The UI expects:
- Endpoint (e.g. `http://127.0.0.1:2468`)
- Optional token
When running the daemon, the inspector is also served automatically at `http://127.0.0.1:2468/ui`.
If you see CORS errors, enable CORS on the daemon with `sandbox-daemon server --cors-allow-origin` and related flags.