AIAny
AI Infra2025
GitHub

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

Turns natural-language instructions into end-to-end Android automation that drives real devices and captures Logcat and screenshots. Uses a multimodal “Dynamic‑First, Coordinate‑Fallback” locator and a native MCP server for IDE integration, supporting fast Flash (3–5s/step) and verifiable Pro workflows.

Converts real repositories into verifiable, sandboxed training environments with black-box tests to train coding agents on long-horizon program reproduction. Provides Program-Env for automated environment construction and Program-Agent for a role-isolated development workflow, yielding 1,648 C/C++/Go/Rust tasks and improving benchmark performance.

GitHub
AI Agent2026

Runs a local-first AI agent runtime that drives your desktop and automates workflows — browsing, file edits, approved shell commands, document extraction, and scheduled tasks — while integrating local or cloud LLMs (llama.cpp/TurboQuant) and embedding as an HTTP service or Tauri sidecar.