AIAny
AI Infra2025
Icon for item

ccusage

Parses the local JSONL logs that coding-agent CLIs write and turns them into token and cost reports, no API keys or telemetry. Breaks spend down by day, month, session, and Claude's 5-hour billing windows across Claude Code, Codex, Gemini CLI and more.

Introduction

Every coding-agent CLI quietly writes a JSONL transcript of each request to disk, and almost nobody reads it. ccusage's bet is that the data needed to understand your spend is already on your machine—you just need something to add it up. It never calls an API, never phones home, and runs fully offline against logs Claude Code and a dozen other agents already produce.

What Sets It Apart
  • Reads existing local JSONL logs instead of scraping a billing dashboard, so the numbers reconcile with what the agent actually sent—and keep working when you're offline.
  • Aggregates the same data several ways: daily, weekly, monthly, per-session, and per 5-hour block matching Claude's billing windows, so you see both trends and the single window that blew up.
  • Spans more than Claude Code—one unified report covers Codex, Gemini CLI, Copilot CLI, OpenCode and others, which matters once you juggle several agents.
  • Custom pricing overrides and JSON export let you plug it into your own dashboards or correct for negotiated rates.
Who It's For

Great fit if you run coding agents heavily and want a fast, scriptable read on cost without trusting—or waiting on—a vendor dashboard; npx ccusage and you have numbers. Look elsewhere if you need team-wide rollups, seat management, or a hosted UI: this is a single-user, local-first CLI, and its figures are estimates derived from logged tokens and public pricing, not an authoritative invoice.

Information

  • Websitegithub.com
  • OrganizationsRyotaro Kimura
  • AuthorsRyotaro Kimura (ryoppippi)
  • Published date2025/05/29

Categories

More Items

GitHub
AI Infra2025

Defines a vendor-neutral JSON/YAML semantic model specification and tooling to exchange metrics, dimensions, lineage and other business semantics across analytics, AI and BI platforms; includes a core spec, validators, converters (dbt, GoodData, Salesforce) and example models.

GitHub
AI Train2025

An asynchronous, high-throughput framework for large-scale reinforcement learning and agentic training that scales to 1T+ MoE models and 1000+ GPUs, with native verifiers integration, end-to-end SFT/RL/evals, and Slurm/Kubernetes deployment; requires NVIDIA GPUs.

GitHub

Runs a self-hosted meeting bot and transcription API that joins Google Meet, Teams and Zoom and streams speaker-attributed transcripts in real time. Compiles meetings into a git-backed Markdown workspace and runs sandboxed agents on your infrastructure; Apache-2.0 and air-gap capable.