ccusage

Active
GitHub Rust NOASSERTION

Description

Analyze coding (agent) CLI token usage and costs from local data.

Key Features

  • Unified CLI reports for 15+ coding agent CLIs including Claude Code, Codex, OpenCode, and Gemini
  • Daily, weekly, monthly, and session-based usage aggregation with cost tracking in USD
  • Per-model cost breakdown with `--breakdown` flag and cache token tracking
  • Date range filtering with `--since`/`--until` and project-level grouping by instance
  • JSON export, compact mode for screenshots, and auto-responsive table layout
  • Zero-install execution via `bunx ccusage` or `npx ccusage@latest`

Use Cases

💡 Monitoring and optimizing LLM API spending across multiple coding agents
💡 Generating monthly cost reports for teams using AI-assisted development tools
💡 Tracking per-project token consumption to identify cost-intensive workloads
💡 Comparing cost efficiency across different AI coding agents on the same tasks
💡 Setting up budget alerts by integrating JSON output with monitoring pipelines

Strengths & Limitations

Strengths

  • Actively maintained, recent updates
  • High community interest (18.0k stars)
  • Responsive to issues, low backlog

⚠️ Limitations

  • No clear open-source license

Quick Start

Run `bunx ccusage` (no install needed) to see all detected sources. Use subcommands like `ccusage claude daily`, `ccusage weekly --since 2026-04-01`, or `ccusage monthly --json` for filtered and structured reports.

Related Projects

OpenShell

8.2k · Rust
Active A

OpenShell is the safe, private runtime for autonomous AI agents, developed by NVIDIA. Provides controlled execution environments and resource management.

rustagentframework +2
  • · Sandboxed execution environments protecting data, credentials, and infrastructure with declarative YAML policies
  • · Four defense-in-depth layers: filesystem, network, process, and inference policy enforcement
  • · Hot-reloadable network and inference policies via `openshell policy set` without restarting sandboxes

AgentOps

5.8k · Python
Normal B

AgentOps is an observability platform for AI agents, providing monitoring, debugging, and evaluation to help developers optimize agent performance.

observabilitymonitoringdebugging +1
  • · AI Agent observability platform with session replay and step-by-step execution graphs
  • · LLM cost management: track spending with foundation model providers
  • · Native integrations with CrewAI, AG2, LangGraph and other major agent frameworks

Crucix

11.4k · JavaScript
Normal B

Crucix is a personal intelligence agent that watches the world from multiple data sources and pings you when something changes, helping you stay on top of information in real time.

agentautomationmonitoring +2
  • · Aggregates 27 OSINT sources: satellite fire data, flight tracking, radiation monitoring, and more
  • · Jarvis-style 3D WebGL dashboard with globe, flat map, and animated flight corridors
  • · LLM integration for two-way intelligence assistant with Telegram and Discord alerts