Claude Code usage

Agent Trail

Local dashboard for Claude Code, Codex, OpenCode, OpenClaw and Qoder session history, token usage, cost tracking, tool calls and subagent replay.

Install

Install
npm install -g @camtrik/agent-trail

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/camtrik/agent-trail.git

From the README

Agent Trail

English · 简体中文 · 日本語

A local AI coding agent observability dashboard for Claude Code, Codex, OpenCode, OpenClaw, and Qoder.

Track token usage, estimated cost, tool calls, subagent trees, and replay full coding-agent sessions from local JSONL / SQLite files.

🏠 camtrik.github.io/agent-trail

What it does

Usage overview across all your agents

A unified dashboard aggregates token consumption and estimated cost across Claude Code, OpenClaw, Codex, OpenCode, and Qoder — broken down by day, session, project, and model. At a glance you can see:

- Total tokens and estimated USD cost for any time window (today / week / all)
- Per-project and per-model breakdowns with trends over time
- Which sessions consumed the most tokens and where your budget is going
- Live activity feed as new sessions are written to disk

Everything is computed locally from the JSONL files your agents already produce.

Full session replay with tool and subagent detail

Open any session and step through every turn exactly as it happened. The replay view goes beyond raw text — it surfaces the internal structure of each assistant turn:

- Tool calls: expand any Bash, Read, Edit, Write, or custom tool invocation to see the exact input arguments and the full output the model received
- Subagent spawns: when Claude Code or OpenClaw launches a sub-agent, the dashboard renders the nested agent tree so you can trace which subtask was delegated, what instructions it received, and what it returned
- Injected context and system events: surface hidden context blocks, permission prompts, and synthetic messages that normally live between turns but shape how the model behaves
- Token accounting per turn: see input, output, cache-read, cache-write, and reasoning token counts at the turn level, not just…
Read the full README on GitHub

Details

Language
TypeScript
Last updated
24 June 2026
Topics
agent-dashboardai-agentai-agentsclaude-codecodexcoding-agentopenclawopenodeqodersession-managementsubagentstoken-usage

FAQ

What is Agent Trail?

Local dashboard for Claude Code, Codex, OpenCode, OpenClaw and Qoder session history, token usage, cost tracking, tool calls and subagent replay. It is a usage for Claude Code, from camtrik/agent-trail on GitHub.

How do I install Agent Trail?

Run npm install -g @camtrik/agent-trail, then follow the setup in the README.

Is Agent Trail popular?

camtrik/agent-trail has 40 GitHub stars and 6 forks. It was last updated on 24 June 2026.

More usage & cost trackers

Browse the most popular Claude Code mods, all usage & cost trackers, or the skills and MCP server directories.