You spend $80–300/month on Claude Code, API keys and AI subscriptions. devspend tells you exactly which project and client it went to — and turns it into invoice line items.
npx devspend projects
项目路径 花费 输入tok 输出tok
/clients/acme-rewrite $142.80 31.2M 1.8M
/clients/globex-mvp $96.15 19.7M 1.1M
/side-projects/devspend $12.40 2.1M 0.3M
──────────────────────────────────────────────────────
合计 $251.35
Claude Code local logs today; OpenRouter / OpenAI / Anthropic API usage and subscriptions in Phase 1. One number, every source.
Rules map repo paths to clients. Every dollar lands where it belongs.
CSV/PDF line items per client. AI costs become recoverable costs, not silent margin erosion. (Pro)
No cloud, no telemetry, no accounts. Your billing data never leaves your machine.
No. devspend reads local files and computes everything locally. No cloud, no telemetry, no accounts.
Token costs are list-price estimates including cache pricing, overridable at ~/.devspend/prices.json. Calibrate before invoicing — subscription plans (Claude Max, Cursor) don't pay per-token rates.
ccusage is a great free CLI for Claude Code stats. devspend starts there but is built for billing: project/client attribution and invoice-ready exports. Both can coexist.
Project attribution works today. Client entities, invoice-grade exports and budget alerts are Phase 2 (Pro, one-time license). Join the waitlist to get early access.