Claude Code status line

vscode-claude-status

Shows Claude Code token usage and cost in the VS Code status bar.

36 stars 11 forksStatus lines Source

Install

From source
git clone https://github.com/long-910/vscode-claude-status.git

From 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…
Read the full README on GitHub

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.
Claude Code docs

Details

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

Browse the most popular Claude Code mods, all status lines, or the skills and MCP server directories.