tracking token usage per prompt
Summary
The author has created an open-source CLI tool that live monitors token usage and API costs per prompt for AI agents, and is seeking interest to share it.
Similar Articles
Prompting
A user asks AI professionals how to manage prompts efficiently to reduce token waste and subscription costs in daily work.
Show HN: Frugal Tokens – explore costs and usage across coding agents
Frugal Tokens is a tool for analyzing costs and usage patterns across coding sessions with AI models, helping developers understand and optimize their spending.
Why is tokenisation of AI so high?
The article discusses why token usage escalates quickly in AI agents due to factors like system prompts and tool definitions, and inquires about effective techniques to manage token consumption.
Cut my agent’s tokens by 72% (11.9k ➝ 3.3k per task). Here’s exactly what I changed, with numbers
A developer shares a detailed case study on reducing an AI agent's token consumption by 72% through system prompt reduction, tighter retrieval, tool output pruning, and other techniques, with minimal impact on success rate.
@DanKornas: AI coding-agent spend is easy to lose track of when usage is spread across tools. ccusage is a command-line tool for de…
ccusage is an open-source command-line tool that helps developers inspect token usage and costs from local coding-agent CLI data, offering daily/weekly/monthly reports, model breakdowns, and JSON export.