🚀 Under Active Development

ttop for your AI costs

Real-time terminal monitoring of LLM token usage and spending across providers and coding agents.

Binaries ↗
â„šī¸ Recommended for macOS and Linux
$ brew install tokentopapp/tap/tokentop
tokentop dashboard showing real-time AI token usage and costs

Blind spots in your AI spending

You're coding with AI agents all day. Claude Code, OpenCode, Cursor — they're burning through tokens and you have no idea how fast. You check the Anthropic dashboard. It's hours behind. You check OpenAI. Different dashboard, different login. Want to see it all in one place? In real time? In your terminal, where you already live?

Scattered dashboards

Different login for every provider. Anthropic, OpenAI, Google — none talk to each other.

Hours behind

Provider billing dashboards update slowly. By the time you see the damage, it's done.

No spending limits

Most providers don't let you set daily caps. One runaway agent can burn through hundreds.

No local visibility

Your terminal is where you work. Why should cost monitoring live in a browser tab?

Everything you need to track AI spending

Built for developers who want granular control and visibility over their AI infrastructure costs.

⚡

Real-time Dashboard

Live token counts, costs, burn rate, and activity sparklines updating every second.

📜

Session Tracking

Every coding agent session logged with model, tokens, cost, and duration.

đŸ›Ąī¸

Budget Guardrails

Set daily, weekly, or monthly spending limits with visual warning indicators.

📊

Smart Sidebar

Break down spending by model, project, or agent type instantly.

🧠

Efficiency Insights

Analyze cache leverage, output verbosity, and cost-per-request metrics.

📈

Historical Trends

Visualize cost patterns over 7, 30, or 90 days with ASCII step charts.

đŸšĻ

Provider Limits

Monitor rate limits and quota usage with visual gauge indicators.

🎨

15 Built-in Themes

Tokyo Night, Dracula, Nord, Catppuccin, and more to match your terminal.

🧩

Plugin System

Extend with custom providers, agents, themes, and notification hooks.

🔧

Zero Config

Auto-discovers credentials from Claude Code, env vars, and CLI auth files.

Works with your stack

Supported Providers

Anthropic
OpenAI
Google Gemini
GitHub Copilot
Codex
Perplexity
Antigravity
MiniMax
Zai
OpenCode Zen

Supported Agents & CLIs

OpenCode
Claude Code
Cursor
wip
Windsurf
wip
Gemini CLI
wip
Antigravity
wip

Plugin Registry

33 built-in plugins ready to use.

provider-anthropic Official

Anthropic Claude subscription usage tracking via OAuth.

Provider
Built-in
provider-openai-api Official

OpenAI API usage tracking via OAuth. Supports GPT-4.1, o3, and all current models.

Provider
Built-in
provider-gemini Official

Gemini CLI usage tracking via Google OAuth.

Provider
Built-in
provider-github-copilot Official

GitHub Copilot usage tracking including premium requests.

Provider
Built-in
provider-codex Official

OpenAI Codex subscription usage tracking via OAuth.

Provider
Built-in
provider-perplexity Official

Perplexity AI API usage tracking (credit-based).

Provider
Built-in
provider-antigravity Official

Antigravity (Google Gemini Advanced) subscription usage tracking.

Provider
Built-in
provider-minimax Official

MiniMax usage and quota tracking.

Provider
Built-in
provider-opencode-zen Official

OpenCode Zen — curated AI models for coding agents.

Provider
Built-in
provider-zai Official

Z.ai coding plan usage and quota tracking.

Provider
Built-in
agent-opencode Official

OpenCode session parsing, credential discovery, and real-time cost tracking.

Agent
...
agent-claude-code Official

Claude Code session parsing, credential discovery, and real-time cost tracking.

Agent
...
agent-cursor Official

Cursor session parsing, credential discovery, and real-time cost tracking.

Agent 🚧
...
agent-windsurf Official

Windsurf (Codeium) session parsing, credential discovery, and cost tracking.

Agent 🚧
...
agent-gemini-cli Official

Gemini CLI session parsing, credential discovery, and real-time cost tracking.

Agent 🚧
...
agent-antigravity Official

Antigravity session parsing, credential discovery, and real-time cost tracking.

Agent 🚧
...
tokyo-night Built-in
opencode Built-in
claude-code Built-in
dracula Built-in
nord Built-in
one-dark Built-in
rose-pine Built-in
rose-pine-dawn Built-in
catppuccin-mocha Built-in
catppuccin-latte Built-in
kanagawa Built-in
gruvbox-dark Built-in
gruvbox-light Built-in
github-light Built-in
solarized-light Built-in
notification-terminal-bell Official

Simple terminal bell (BEL character) for budget alerts.

Notification
Built-in
notification-visual-flash Official

Visual screen flash using ANSI escape sequences for alerts.

Notification
Built-in

plugin-sdk

SDK for building tokentop plugins — type definitions, helpers, and test harness.

Build a Plugin

See it in action

Watch tokentop monitor AI sessions in real-time.

Try it yourself — run ttop demo for a live preview with sample data.

MIT License

Built in the open

tokentop is 100% open source. Join us in building the best terminal dashboard for AI engineering.

TypeScript Bun OpenTUI SQLite
Star on GitHub