Agent Spend is a local usage analytics dashboard for coding agents. It currently supports:
- Claude (
~/.claude/projects) - Codex (
~/.codex/sessions)
This project is based on the original claude-spend by Aniket Parihar.
This standalone repo adds:
- Multi-provider parsing architecture
- Codex ingestion and token aggregation
- Provider-aware dashboard filtering
- Provider-specific insights (
Claude,Codex) - Rebrand to Agent Spend
For full lineage and diffs, see UPSTREAM.md.
- Added Codex support in backend parser.
- Removed Gemini ingestion (insufficient useful local token data).
- Added provider breakdown API and provider-aware UI controls.
- Added Codex insight generation (token-based rules).
- Rebranded naming and docs to Agent Spend.
npm installnode src/index.jsOptions:
node src/index.js --port 8080
node src/index.js --no-openAfter launch:
- Dashboard:
http://localhost:3456 - Data API:
http://localhost:3456/api/data
Expected API shape includes:
sessionsproviderBreakdowninsightsByProvider
Agent Spend reads local log files and serves a localhost dashboard. No telemetry or remote data upload is included.
MIT. See LICENSE.
Created by Anshumani Ruddra.