Lightweight token usage display for Claude Code status line
npx claudepluginhub jointime1/claude-tokens-pluginLightweight token usage display for Claude Code status line
Lightweight Claude Code plugin that displays plan usage limits and context window in the status line. Zero LLM token consumption — fetches data from Anthropic API via pure bash + jq + curl.
Sonnet 4.6 | session ━━━───── 37% 1h 45m | weekly ━━────── 21% 6d 5h | ctx ━──────── 10%
When API rate limit is hit, a notice appears at the start and cached data continues to be shown:
rate limit (no updates) | Sonnet 4.6 | session ━━━───── 37% 1h 45m | weekly ━━────── 21% 6d 5h | ctx ━──────── 10%
With Russian locale:
Sonnet 4.6 | сессия ━━━───── 37% 1ч 45м | неделя ━━────── 21% 6д 5ч | контекст ━──────── 10%
When rate limited:
рейт лимит (нет обновлений) | Sonnet 4.6 | сессия ━━━───── 37% 1ч 45м | неделя ━━────── 21% 6д 5ч | контекст ━──────── 10%
Color-coded:
/plugin marketplace add jointime1/claude-tokens-plugin
/plugin install claude-tokens-plugin
Run the setup command to configure the status line:
/setup
It will ask your preferred language (English/Russian), configure ~/.claude/settings.json, and you're done. Restart Claude Code to see the status line.
The status line script:
api.anthropic.com/api/oauth/usage using your OAuth tokenNo LLM calls are made. The API endpoint returns usage statistics only.
If you find this plugin useful, please give it a star on GitHub!