# Token Usage

Token usage analytics from the local Ulpi database (\~/.ulpi/state.db) — lifetime totals, per-model breakdown, per-session details, cache/reasoning tokens.

- Type: Plugin
- Version: 0.1.0
- Updated: 22 Nov 2026
- Publisher: priyankarpal
- Category: Tools

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

## What it does

Token usage analytics from the local Ulpi database (\~/.ulpi/state.db) — lifetime totals, per-model breakdown, per-session details, cache/reasoning tokens, API call counts and estimated cost. No network, no auth, no Ulpi required.

Fully config-driven.

## How to set it up

Disclosure — reads the Ulpi session database (state.db) read-only for token counts and cost totals, and config.yaml for its own settings; no network, no writes.

```
token_plugin
```

## Review notes

What an owner reads and accepts before the install is approved.

- Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve

## More in Tools

- [tokenjuice](https://www.ulpi.io/en/marketplace/plugins/tokenjuice): Compact successful terminal output locally before model consumption.
- [Toll](https://www.ulpi.io/en/marketplace/plugins/toll): Read-only safety checks before an agent buys a coin, signs a transaction or pays another agent.
- [Tool guard](https://www.ulpi.io/en/marketplace/plugins/tool-guard): Guardrails that follow what a conversation has read.

[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)
