tokunseba
Watching it

The dashboard

In the terminal, or in a browser served from your own machine.

In the terminal

tokunseba ui              # draw it once
tokunseba watch           # redraw every two seconds until Ctrl-C
tokunseba ui --since 30d  # a different window

This needs no browser, no port and no window, which matters when the machine you are working on is reached over ssh. It is the default surface and it is not going away.

In a browser

tokunseba dashboard

Serves one page off 127.0.0.1 on a port the operating system picks, and opens it. It refreshes itself every few seconds and stops polling when the tab is hidden.

FlagWhat it does
--port NBind this port instead of asking for a free one
--no-openPrint the address instead of opening a browser
--print-urlPrint the address of the already-running proxy's copy and exit

If the proxy is already running, the same page is at http://127.0.0.1:7777/_tokunseba/, and --print-url will tell you so rather than starting a second server.

What is on it

SectionWhat it tells you
HeaderTokens never sent, the percentage that is, and the window
TilesSent upstream, fresh tokens, replies, substitutions, models, provider time
ChartTokens never sent, per day, for the last fortnight
By toolWhich client sent the traffic, and what was kept off the wire for each
Models seenWhat actually answered, through which upstream, and when
Biggest reductionsWhat the tokens were spent on, and the handle for each
Largest passthroughsWhat nothing could be done about, which is as visible as the savings
JudgeWhat it made of your opening prompts, by domain and difficulty
SignalsEvery decision the proxy logged
ConversationsRecent sessions, their tool, project, model and arm

Three things it enforces

These are properties of the code, not promises in a document.

It binds the loopback address

The socket is opened on 127.0.0.1 and on a port the operating system hands out. Nothing outside this machine can reach it.

It checks the name it was asked by

Every request is compared against the Host header it arrived with. This is what stops a page you happened to be visiting from reaching in by pointing a hostname at 127.0.0.1. Same-origin rules do not cover that case, because by the time the request is made the attacker's page and the rebound address share an origin.

It fetches nothing from the internet

One file, no font host, no script CDN, no beacon, no analytics. Pull the network cable out and it still renders. A test asserts this against the bytes on disk rather than trusting a comment above them.

The status line

For an editor or a coding tool that can display one:

tokunseba statusline

Reads the host tool's JSON event on stdin and prints one line: whether the proxy is in the path, the context you are carrying, and what has been kept off the wire today. Claude Code picks this up automatically if tokunseba init registered the hooks.

On this page