Dashboard & TUI
Terminal GUI
Section titled “Terminal GUI”cmxOpens a full-screen terminal app (mouse-enabled):
| Page | Keys | Contents |
|---|---|---|
| Dashboard | 1 |
tokens saved, context reduction %, cache read/write, 14-day bar chart |
| Sessions | 2 |
every session with requests, original vs sent tokens, saved — click or Enter for detail |
| Session detail | Enter on a session |
summary entries with the exact message IDs they replace |
| Config | 3 |
live config values and file location |
- Scroll with the mouse wheel or
j/k, arrow keys Sstarts the gateway,Xstops it,q/Escquits- Refreshes every 3 seconds
Web dashboard
Section titled “Web dashboard”cmx start # then visithttp://127.0.0.1:17323 — built into the same binary, zero extra setup:
- Stat cards — saved tokens + reduction %, context sent (original → actual), requests/sessions, cache read/write
- Daily chart — original vs sent tokens per day, saved tokens as bars
- Sessions table — click a row for summaries with the replaced ID ranges
- Live polling every 5 s with a connection indicator
What the numbers mean
Section titled “What the numbers mean”- Original — estimated tokens that would have been sent with no compression
- Sent — estimated tokens actually sent upstream after rewrites
- Saved — the difference; per session, per day, and per provider
- Cache read/write — provider-reported cached-token counts, so you can verify cache hit rates stay healthy
