Tracking AI Agent Costs and Quota Limits with Gnomcode
Last updated
Gnomcode combines recorded token usage, estimated API-equivalent cost, cache savings and observed quota windows in one local view. These are different measurements: a token count can be exact while its dollar equivalent remains an estimate and a missing quota stays unknown.
What do the trust labels mean?
EXACT comes from an exact source record, EST is calculated or inferred, API comes from an opted-in provider response and UNKNOWN means reliable data is absent. Source timestamps matter: an exact historical quota observation is not a fresh provider balance. Partial pricing coverage excludes unpriced usage rather than treating it as zero.
Is API-equivalent spend my bill?
No. Gnomcode values observed usage at available model rates. Subscription fees, discounts and provider billing rules can differ. Plan Value compares that estimated compute value with the configured subscription fee; it is not cash saved or a refund calculation.
How do cache savings work?
Where source logs expose cache reads and writes, the Rust pricing engine uses the corresponding model rates. Cache savings compare estimated cached input cost against the uncached reference rate. Missing rates or token classes remain unavailable; cached tokens must not be double counted.
How does Resume Queue work?
A supported session can be armed for continuation after an eligible observed quota reset. Native approval, ownership and routing restrictions remain. The privacy transition stopped persisting arbitrary custom queue prompts; do not assume the entire original prompt will be replayed. Validate your CLI’s actual resume behavior before unattended use.
How do I set a plan price?
Set subscription prices in Profile or use gnomcode report --range 7d --plan-usd 20 for a report with your chosen reference fee. The fee is user configuration, not an inferred charge. Reports group in UTC and preserve trust/partial coverage across daily, ISO-weekly, monthly and yearly aggregation.
CLI examples
gnomcode report --range 7d --plan-usd 20Why do I receive a low-limit warning?
A quota window below 20% remaining can trigger one low-limit warning. Stale readings and five-minute refreshes do not repeat it, and the warning state survives a daemon restart. A fresh healthy reading or a confirmed new quota window re-arms the warning.
Try Gnomcode
Download it for Windows, macOS, Linux or Android, open a project and start an agent.