Claude Code status line
vscode-claude-status
Shows Claude Code token usage and cost in the VS Code status bar.
Install
git clone https://github.com/long-910/vscode-claude-status.gitFrom the README
vscode-claude-status Claude Code token usage & cost — always visible in your VS Code status bar. 🌐 English | 日本語 | 中文 Overview vscode-claude-status is a Visual Studio Code extension that monitors your Claude Code usage in real time — without leaving your editor. It reads session data from ~/.claude/projects/ locally (no extra network calls) and queries the Anthropic API at most once per 5 minutes to fetch rate-limit utilization headers. All token costs are calculated client-side, priced per model (Opus, Sonnet, Haiku, Fable…) with built-in rates. Models newer than the built-in table are estimated from their family's latest rate, and exact rates can be set with claudeStatus.pricing.modelOverrides. API calls are minimal and only happen while Claude Code is active. The rate-limit API call fires only when a JSONL file was recently updated — when you stop using Claude Code, the extension stops calling the API entirely. Each call uses ≈ 9 tokens of claude-haiku-4-5 (≈ $0.00013). Typical cost with default settings: Set claudeStatus.rateLimitApi.enabled: false to stop all new API calls. If a prior cache exists, the last-fetched rate-limit % is still shown with a [Xm ago] staleness indicator. Without any cache, the display falls back to cost-only. Cost figures are estimates at Anthropic's list API prices (checked 2026-10-31), calculated from local transcripts. Negotiated discounts, seat fees and partner (Bedrock / Vertex) pricing are not included. For a new model or a price change, set claudeStatus.pricing.modelOverrides — see docs/PRICING.md. Features 📊 Status Bar — Always Visible Real-time usage summary pinned to the VS Code status bar. Hover for a detailed tooltip with full token breakdown and reset times. 🧭 Sidebar Overview *(VS Code-native)* A dedicated…
How status lines work
- A status line is a command Claude Code runs to draw the bar under the prompt. It gets the session as JSON on stdin (model, folder, cost, context) and prints one or more lines.
- Point the statusLine setting in ~/.claude/settings.json at it: { "statusLine": { "type": "command", "command": "<the command from the README>" } }.
- Or run /statusline inside Claude Code and describe what you want.
Details
- Repository
- long-910/vscode-claude-status
- Type
- Status lines
- Language
- TypeScript
- License
- MIT
- Last updated
- 1 November 2026
- Topics
- claude-aiclaude-codetypescriptusagevisualizationvscodevscode-extension
FAQ
What is vscode-claude-status?
Shows Claude Code token usage and cost in the VS Code status bar. It is a status line for Claude Code, from long-910/vscode-claude-status on GitHub.
How do I install vscode-claude-status?
Clone long-910/vscode-claude-status from GitHub and follow the setup steps in its README.
Is vscode-claude-status popular?
long-910/vscode-claude-status has 36 GitHub stars and 11 forks. It was last updated on 1 November 2026.
More status lines
cc-costline
28Ventuss-OvO/cc-costline
A status line that shows your 7-day and 30-day spend at a glance.
Claude Code Status Line
65shanraisshan/claude-code-status-line
A custom status line script for Claude Code that displays context window usage, git status, and model information.
Claude Code Personalities
35kumamaki/Claude-Code-Personalities
A status line of kaomoji faces that change to reflect what Claude is currently doing.
Headroom
70henchmarketing-rgb/headroom
Know your headroom. Context window usage bar for Claude Code.
cc-statusline-rs
42khoi/cc-statusline-rs
A Rust status line generator for Claude Code.
claude-usage-line
40canack/claude-usage-line
A status line with rate limits, git branch, cost and diff stats.
Browse the most popular Claude Code mods, all status lines, or the skills and MCP server directories.