# Token Rate Monitor

Live output/input tokens-per-second chip in the Ulpi status bar for a local llama.cpp server.

- Type: Plugin
- Version: 2.0.0
- Updated: 22 Nov 2026
- Publisher: Lazzdaycod
- Category: Desktop
- Licence: MIT

[Contact us](https://www.ulpi.io/en/support#contact)

## What it does

Live output/input tokens-per-second chip in the Ulpi status bar for a local llama.cpp server. The counter starts off — click the chip, or run the palette entry "Token Rate: start/stop the tok/s counter" (Ctrl/Cmd+K), to start it; the on/off flag is a file ($ULPI_HOME/cache/token-rate-state.json).

## Tools it adds

The tools an agent gets once this plugin is installed.

- `get_token_rate`

## How to set it up

Ulpi itself reads the server's log ($ULPI_HOME/logs/llama-server.log, last 200 lines: for output and for input) and serves it at /api/plugins/token-rate/; the chip polls that route once a second.

```
tg = X t/s
```

```
prompt eval time ... X tokens per second
```

## More in Desktop

- [token-speed](https://www.ulpi.io/en/marketplace/plugins/token-speed-ba940e): Live decode tokens-per-second chip for the Ulpi status bar: 1-second sliding window while the model is still streaming, tool execution time excluded from decode seconds.
- [Token Speed](https://www.ulpi.io/en/marketplace/plugins/token-speed-f83d04): Live token generation speed plus session up/down token totals in the Ulpi status bar, with a click-through dashboard: 60-second sparkline, this-turn output tokens.
- [Token Stats](https://www.ulpi.io/en/marketplace/plugins/token-stats): Lifetime token usage page for Ulpi: totals across every profile on the connected (local or remote) gateway, a per-model table.

[All listings →](https://www.ulpi.io/en/marketplace) · [Publisher's guide →](https://www.ulpi.io/en/docs) · [Report a problem →](https://www.ulpi.io/en/security#report)
