> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hexgate.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Dashboard

> Vite + React + shadcn/ui. Policy editor, Playground, tokens.

Vite + React + Tailwind + shadcn/ui + React Flow.

```bash theme={null}
cd platform/dashboard
pnpm install        # first time
pnpm dev
```

## Routes

* `/agents` — read-only manifest view (tools, model, system prompt) per registered agent
* `/policies` — edit each agent's policy (roles × tools × argument constraints)
* `/graph` — read-only project overview (everyone → agents → tools)
* `/playground` — chat with a serving agent, watch tool decisions stream live
* `/audit` — every policy decision for the project
* `/bans` — stop an agent or a user from running (overrides every policy)
* `/usage` — LLM token usage for the project
* `/tokens` — mint, list, revoke dev tokens
* `/orgs` — organizations you belong to and their members
* `/settings` — project settings

The dev server proxies `/v1/*` (HTTP and WebSocket) to `localhost:8000`, so HMR
works through the same origin as the API.

## Editing policy live

The `/policies` page lets you edit each agent's policy. [`hexgate
serve`](/cli/serve) re-fetches at every turn boundary, so your edits take effect
on the next chat message without a restart. Under the hood the refresh is an
`If-None-Match` round-trip: a `304` reuses the cached WASM module, a `200` swaps
in the new bundle.

<Note>
  Want to try the dashboard without installing anything? The hosted
  [live demo](/platform/live-demo) lets you edit an agent and chat with it in the
  browser — bring your own model key.
</Note>
