Skip to content

baboonzero/agent-spend

Repository files navigation

Agent Spend

Agent Spend is a local usage analytics dashboard for coding agents. It currently supports:

  • Claude (~/.claude/projects)
  • Codex (~/.codex/sessions)

Upstream Attribution

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.

What's Changed From Upstream

  1. Added Codex support in backend parser.
  2. Removed Gemini ingestion (insufficient useful local token data).
  3. Added provider breakdown API and provider-aware UI controls.
  4. Added Codex insight generation (token-based rules).
  5. Rebranded naming and docs to Agent Spend.

Install

npm install

Run

node src/index.js

Options:

node src/index.js --port 8080
node src/index.js --no-open

Verify Locally

After launch:

  • Dashboard: http://localhost:3456
  • Data API: http://localhost:3456/api/data

Expected API shape includes:

  • sessions
  • providerBreakdown
  • insightsByProvider

Privacy

Agent Spend reads local log files and serves a localhost dashboard. No telemetry or remote data upload is included.

License

MIT. See LICENSE.

Created by Anshumani Ruddra.

About

See where your local AI assistant usage goes. One command, zero setup.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors