toll

Track and display token usage statistics and estimated USD costs from Claude Code and Codex CLI sessions

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "toll" with this command: npx skills add fullstop000/toll

toll — Token Usage Tracker

toll is a CLI tool that aggregates token usage logs from Claude Code and Codex CLI and displays session counts, token totals, cache hit rates, and estimated USD costs.

Installation

If toll is not installed, install it first:

# Quick install (Linux/macOS)
curl -fsSL https://raw.githubusercontent.com/Fullstop000/toll/refs/heads/master/install.sh | sh

# Or via cargo
cargo install toll

Usage

When the user invokes /toll, run the appropriate toll command based on their intent:

User IntentCommand
All-time summary (default)toll
Today's usage onlytoll --today
Last N daystoll --days <N>
Daily breakdowntoll --by-day
Claude Code onlytoll --claude
Codex CLI onlytoll --codex
Full token countstoll --detail
JSON outputtoll --json
CSV outputtoll --csv
List model pricestoll --list-prices

Flags can be combined, e.g. toll --by-day --days 7 --claude.

Behavior

  1. Check if toll is installed by running toll --version. If it fails, prompt the user to install it using the command above.
  2. Parse the user's request to determine which flags to pass.
  3. Run toll with the appropriate flags and present the output to the user.
  4. Explain the output if the user seems unfamiliar with the metrics:
    • Sessions: number of AI coding sessions tracked
    • Input: total input tokens sent to the model
    • Cached: tokens served from the prompt cache (cheaper)
    • Hit Rate: percentage of input tokens that were cached
    • Net Input: non-cached input tokens (full price)
    • Output: tokens generated by the model
    • Cost: estimated USD cost based on per-model pricing

Example Interactions

User: /toll → Run toll and show all-time summary

User: /toll today → Run toll --today

User: /toll last 7 days → Run toll --days 7

User: /toll daily breakdown this week → Run toll --by-day --days 7

User: /toll how much have I spent on Claude? → Run toll --claude and highlight the Cost column

User: /toll export csv → Run toll --csv and offer to save the output to a file

Notes

  • Cost estimates marked with * include models whose pricing is approximate or inferred by prefix matching.
  • Token counts use compact notation: 1.2m = 1,200,000 tokens, 45.6k = 45,600 tokens.
  • Logs are read from ~/.claude/projects/**/*.jsonl (Claude Code) and ~/.codex/sessions/ (Codex CLI).

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Block Company

Block Company develops financial technology including Square payment terminals, Cash App peer-to-peer payments, and Bitcoin integration under Jack Dorsey's l...

Registry SourceRecently Updated
Coding

Browser Harness

用 LLM 友好的方式控制用户已登录的真实 Chrome(CDP)。一行命令在当前标签页跑 JS、点击、滚动、截图、读 DOM、填表、上传文件——共享 cookie/session/登录态,跨 Python 与 TypeScript Agent 操作同一个浏览器。基于 browser-use/browser-ha...

Registry SourceRecently Updated
Coding

Config Drift Scanner

Detect configuration drift across environments (dev, staging, production). Compare config files, environment variables, feature flags, and secrets across dep...

Registry SourceRecently Updated
Coding

API Gateway

Connect to 100+ APIs (Google Workspace, Microsoft 365, GitHub, Notion, Slack, Airtable, HubSpot, etc.) with managed OAuth. Use this skill when users want to...

Registry SourceRecently Updated
73.1K369byungkyu