I built a local token cost tracker for Claude Code in Rust A developer built agentwatch, a local HTTP proxy written in Rust that tracks token costs for AI coding agents like Claude Code, Codex, and Gemini CLI. The tool intercepts requests, parses token usage, and displays a live dashboard using Ratatui, with all data stored locally in SQLite and no signup required. After one too many surprise Claude Code bills, I built agentwatch. It's a local HTTP proxy written in Rust. Point your agent at localhost:7878, and it intercepts every request, parses the token usage, and shows a live Ratatui TUI dashboard of what you're spending — in real time. Everything stays local. SQLite database, zero signup, single binary via cargo install agentwatch. Supports Claude Code, Codex, and Gemini CLI. github.com/zaydmulani09/agentwatch Top comments 0 Subscribe For further actions, you may consider blocking this person and/or reporting abuse /report-abuse