AgentMeter
Local-first analytics and cross-tool comparison for AI coding agents
Why This Was Built
Developers running more than one AI coding agent cannot see how token spend, cache efficiency, latency, and session health compare across tools. The evidence sits in different local stores, in different shapes, and usually only surfaces one vendor at a time.
The Architectural Answer
AgentMeter reads those local stores read-only, validates one schema v3 across tools, and renders per-tool reports plus like-for-like comparisons in a single static binary. It names the winner, shows the uncertainty, and marks cost and coverage caveats instead of hiding them.
Key Features & Architecture
Technical Specifications
- Primary Languages
- GoSQLitePython
- Frameworks & Tooling
- Go standard librarymodernc.org/sqliteEmbedded HTML/CSS/JavaScript
- Architecture & Execution Model
- Single static Go binary with read-only SQLite and JSONL readers, schema v3 fail-closed report and comparison builders, embedded HTML dashboards, and six cross-platform release archives
- Licensing Model
- AGPL-3.0-only (copyleft)
- Release & Lineage
- Active release cycle since 2026 · Maintained by @JadMadi
Frequently Asked Questions
Does AgentMeter send my session data to the cloud?
No. AgentMeter is local-first and zero-telemetry. It reads the local stores already on your disk, opens the OpenCode database read-only, and makes no network requests.
Which tools can I analyze and compare?
Command Code, OpenCode, and Muse. Any two can be compared (`agentmeter compare`), and each tool also has its own report command (`agentmeter cmd`, `agentmeter oc`, `agentmeter muse`).
How do I install AgentMeter?
Use a precompiled release archive from GitHub, or run `go install github.com/jadmadi/agentmeter/cmd/agentmeter@latest` with Go 1.26 or newer. `./build.sh --all` builds the same six archives locally.
Why is recorded cost called a floor?
Recorded cost comes from what the provider reports. Free, contributor, and subscription-tier models may report $0, so per-step and per-1M figures can understate paid usage. Cache savings are a counterfactual at fitted prices, not money removed from a bill.
Does AgentMeter read my prompts or code?
No. It reads usage, timing, model, and tool metadata. It does not read or emit prompts, assistant text, tool arguments, or file contents. Session titles and project names are included by default and can be suppressed with `--no-titles` and `--full-paths`.