Claude Code usage
Agenttrace
Local-first Rust TUI/CLI for auditing AI coding-agent sessions: cost, tokens, latency, failures, and health|本地运行的 Rust TUI/CLI,审计 AI 编程 Agent 会话的成本、Token、延迟、失败与健康度
Install
npm install -g @zack78/agenttraceFound in the project README. Check it for setup steps after installing.
git clone https://github.com/luoyuctl/agenttrace.gitFrom the README
AgentTrace Local-first TUI and reports for AI coding-agent session history, cost, tokens, time, and slow-run diagnosis. English | 简体中文 agenttrace is a local-first terminal TUI and report generator for AI coding-agent session history. It reads Claude Code, Codex CLI, Qwen Code, Cline, Aider, Cursor exports, Hermes Agent, OpenCode, OpenClaw, Pi, Oh My Pi, Kimi CLI, Copilot-style logs, and generic JSON/JSONL traces, then helps with two daily jobs: see what multiple agents spent across cost, tokens, and time; and diagnose why a task ran slowly. One agenttrace binary provides both interfaces: run it without a report action to open the TUI, or pass flags such as --sessions and --overview for CLI output. Why agenttrace? AI coding agents now behave like small build systems: they call tools, retry, stall, and spend tokens while you only see the final answer. agenttrace reads the logs your agents already write and puts cost-heavy or slow sessions first. It helps you answer: - What did my agents spend? Compare historical sessions by agent source, model, input/output/cache tokens, estimated cost, and wall-clock time. - Why was this task slow? Catch long gaps, hanging sessions, retry loops, slow tool calls, large parameters, and context pressure. - Did a run regress? Compare against a local baseline when supplied, then inspect incident timelines and conservative tool authority categories in reports. - What should I inspect first? Rank sessions by cost, duration, turns, health, failures, anomalies, model, source, or text search. - Can I inspect this privately? Everything runs locally; prompts, code, and logs do not need to leave your machine. Real local run Install macOS and Linux: Windows PowerShell: The install scripts download the release binary for your…
Details
- Repository
- luoyuctl/agenttrace
- Website
- github.com/luoyuctl/agenttrace
- Language
- Rust
- License
- MIT
- Last updated
- 3 November 2026
- Topics
- ai-agent-observabilityai-agentsai-cost-trackingclaude-codecodex-clicoding-agentcursorgemini-cliopencodeqwen-coderustrust-cli
- Listed in
- awesome-claude-code-toolkit
FAQ
What is Agenttrace?
Local-first Rust TUI/CLI for auditing AI coding-agent sessions: cost, tokens, latency, failures, and health|本地运行的 Rust TUI/CLI,审计 AI 编程 Agent 会话的成本、Token、延迟、失败与健康度 It is a usage for Claude Code, from luoyuctl/agenttrace on GitHub.
How do I install Agenttrace?
Run npm install -g @zack78/agenttrace, then follow the setup in the README.
Is Agenttrace popular?
luoyuctl/agenttrace has 154 GitHub stars and 8 forks, and is included in 1 curated Claude Code list. It was last updated on 3 November 2026.
More usage & cost trackers
Cctop
148stefanprodan/cctop
Live top-style monitor for Claude Code sessions
Inferock Bench
110inferock/inferock-bench
Local LLM cost-tracking proxy for OpenAI, Anthropic, Gemini, and pinned OpenRouter calls with token usage, failure, and billing-integrity receipts.
Claude Control
138sverrirsig/claude-control
macOS desktop dashboard for monitoring and managing multiple Claude Code sessions
Bough
129nickelsec/bough
Claude Code, Codex and Pi write down everything you do. bough draws it and prices it: a day, the work inside it, every prompt, and what each piece cost. One Go binary, runs on your machine, sends nothing anywhere.
Usage Limit Reducer
204Dubibubii/usage-limit-reducer
A Claude Code skill that stops you from burning through your usage limit.
ClaudeMeter
176eddmann/ClaudeMeter
macOS menu bar app for tracking Claude.ai plan usage in real-time. Monitor 5-hour session, 7-day weekly, and Sonnet-specific limits with color-coded indicators and smart notifications.
Browse the most popular Claude Code mods, all usage & cost trackers, or the skills and MCP server directories.