tokentop agent plugin for Claude Code (Anthropic's CLI coding agent). Parses session data, tracks token usage, and provides real-time activity monitoring.
| Capability | Status |
|---|---|
| Session parsing | Yes |
| Credential reading | No |
| Real-time tracking | Yes |
| Multi-provider | No |
This plugin reads Claude Code's local session files from ~/.claude/projects/ to extract:
- Session metadata (start time, duration, project)
- Token usage per message (input, output, cache read/write)
- Model information per conversation turn
- Real-time file watching for live session updates
This plugin is bundled with tokentop — no separate install needed. If you need it standalone:
bun add @tokentop/agent-claude-code- Claude Code installed (
~/.claudedirectory must exist) - Bun >= 1.0.0
@tokentop/plugin-sdk^1.0.0 (peer dependency)
| Type | Access | Paths |
|---|---|---|
| Filesystem | Read | ~/.claude |
bun install
bun run build
bun test
bun run typecheckSee the Contributing Guide. Issues for this plugin should be filed on the main tokentop repo.
MIT