Skip to content
  1. Home
  2. AI tools
  3. ccusage

ccusage

Token and cost reports for coding agent CLIs, read from local logs

What it is

A CLI that reads the usage data coding agents already keep on disk and turns it into daily, weekly, monthly and per-session reports of tokens and estimated cost. It began with Claude Code and now also covers Codex, OpenCode, Amp, Cline, Goose and others.

Good for

  • See what yesterday's sessions cost
  • Compare usage across agents by month
  • Find the sessions that used the most tokens

Install or run

npx ccusage@latest

Command as given in the project README. Read the repository before you run anything on your machine.

What you need

Node.js

Worth knowingCosts are estimates from local logs and price tables, not your actual invoice.

Sources

The summary is ours, written from the README. Spotted an error? See how we work.

More for productivity & knowledge

See the topic →
  • Ollama

    ollama/ollama

    Download and run open LLMs locally behind a simple CLI and API

    ToolGitHub stars: 187k
  • Open WebUI

    open-webui/open-webui

    Self-hosted chat interface for Ollama and OpenAI-compatible APIs

    ToolGitHub stars: 159k
  • llama.cpp

    ggml-org/llama.cpp

    C/C++ LLM inference engine with CLI and OpenAI-compatible server

    ToolGitHub stars: 135k
  • Claude-Mem

    thedotmack/claude-mem

    Records what your agent did and loads a summary into later sessions

    ToolGitHub stars: 117k