Skip to content

coding-agent-cost v0.1.0

Choose a tag to compare

@shiki-yusuke shiki-yusuke released this 14 Aug 22:07
· 12 commits to main since this release

First PyPI release: pip install coding-agent-cost (the CLI command stays agent-cost, the import package stays agent_cost).

The distribution name differs from the repository name because PyPI rejects agent-cost (and agent-cost-cli) as too similar to agentcost, an unrelated project by a different author. This tool is not affiliated with it.

What this is

Measures Claude Code / Codex CLI token usage and estimated cost from the logs those tools already write locally — zero network calls. Unknown stays unknown: unpriced tokens are never priced, partially-observable cache writes are flagged lower_bound, and estimated_cost_usd is a list-price conversion, not an invoice.

Verification

  • 111 tests green; published wheel verified from the live registry in a clean venv (install + agent-cost doctor)
  • Also carries a claim corpus (docs/claims/, built with evidence-docs): 17 provenance-checked observations, whose authoring surfaced two missing regression tests since closed by PR #2 / PR #3

🤖 Generated with Claude Code