tokenstat
tokenstat

Help center

CLI and MCP

Find the right command for each question, add usage to your shell prompt, set a spending cap, or connect an agent to usage, workspaces, tasks, notes and jobs through MCP.

3 guides in CLI and MCP.

Which tokenstat command shows what
One archive, a dozen views over it. Which command answers which question, the four filters that work on all of them, and why every report can be piped as JSON.
Set a budget and put usage in your prompt
Two commands built for glancing rather than reading: a soft list-rate cap you can check at any time, and a single line you can hang off your shell prompt without slowing it down.
Connect an agent to workspaces, tasks and notes with MCP
Connect tokenstat's 49 MCP tools, copy a short agent prompt, discover workspace IDs, and answer tokenstat questions from MCP.

Human-led and verified · AI-assisted content · AI tools may help draft, edit, maintain, and improve grammar or clarity. Nothing is published automatically; every change is reviewed by the human maintainer.