Claude Reply Tokens is a VS Code companion extension that shows the token usage for the latest Claude Code reply in the status bar.
It does not depend on private APIs from the official anthropic.claude-code extension. Instead, it reads Claude Code's local JSONL session logs and computes the latest full assistant reply chain for the current workspace.
Features
Shows the latest Claude reply token usage in the VS Code status bar
Aggregates a full reply chain instead of only the last assistant JSONL record
Matches Claude sessions to the current workspace
Refreshes automatically when Claude writes new transcript lines
Opens the matching transcript file from the status bar
How It Works
The extension scans Claude's local projects/**/*.jsonl files, finds the most relevant session for the current workspace, and sums token usage across the latest assistant reply chain by walking parentUuid.
The total includes:
input_tokens
output_tokens
cache_creation_input_tokens
cache_read_input_tokens
Requirements
VS Code 1.86.0 or later
Claude Code installed and actively writing transcript files locally
Settings
This extension contributes the following settings:
claudeReplyTokens.dataDirectory
Override the Claude config directory. Point it at the folder that contains projects/.
claudeReplyTokens.refreshIntervalSeconds
Fallback full-rescan interval in seconds. Minimum: 30.
Commands
Claude Reply Tokens: Refresh
Claude Reply Tokens: Open Claude Transcript
Claude Reply Tokens: Open Claude Reply Tokens Settings