ccusage alternatives: Claude Code usage inside VS Code

ccusage turns Claude Code's local logs into token and cost reports in your terminal. Here's what Claude Code already shows in VS Code, when another tool makes sense, and how the alternatives compare as of October 2026.

Short answer

Start with Claude Code itself: in VS Code, /usage shows your plan's 5-hour and weekly limits and when they reset. For ccusage-style token and cost reports in the editor, the most-installed extensions built for this are Claude Code Usage, Claude Status and CCAssist (October 2026). For several Claude accounts side by side, try the free Layers extension. Log-based costs are estimates, not your bill.

What Claude Code already shows in VS Code

In the Claude Code panel, type /usage to open the Account & usage dialog. It shows your signed-in account and a bar for each of your plan's limits, such as the current session and the week, with how long until each one resets. It also breaks down what is using your limits, by skill, subagent, plugin and MCP server, over the last 24 hours or 7 days. Those figures are approximate and count only this computer's sessions.

The prompt box also shows a context indicator and, when the conversation has subagents, an agent count that opens a map with each one's token count.

Two more places show your limits:

If you only need what's left on the account you're using, you may not need another tool. Claude Code usage limits: how to check what's left covers each of these in detail.

What ccusage does well

ccusage is a free, open-source command-line tool. It reads the logs Claude Code writes on your computer and turns them into reports. You can run it without installing it globally:

npx ccusage@latest claude daily
npx ccusage@latest blocks --active

When you might want something else

Another tool makes sense when one of these is true:

ccusage alternatives for VS Code, compared

The VS Code rows are the five most-installed Marketplace extensions built to track Claude Code usage, plus Layers, which I make. Each row says only what that tool's own listing, README or docs said as of October 2026.

What each tool shows

ToolWhere it runsPlan limits, and where the numbers come fromCost estimatesSeveral accounts
Claude Code (built in)Claude Code panel and terminalYes, from AnthropicSession cost at list price, meant for API usersThe signed-in one
ccusageTerminalIts own 5-hour blocks, worked out from your logsYes, from local logsCombines the folders you list
Claude Code UsageStatus bar and dashboardYes, when turned on: Anthropic's usage endpoint, with Claude Code's sign-inYes, from local logsNot yet, says its README
Claude StatusStatus bar and dashboardYes: rate-limit headers from a small API request, at most every 5 minutesYes, from local logsNot mentioned
Claude Code Usage TrackerStatus bar and panelYes: Anthropic's usage endpoint, every 2 minutes by default, with Claude Code's sign-inNo; shows usage-credit spendOne; follows CLAUDE_CONFIG_DIR
Claude Usage BarStatus bar, macOS onlyYes: Claude Code's own usage replies, plus a request at startup and every 5 minutesNoNot mentioned
CCAssist (Claude Code and Codex Assist)Sidebar, dashboard and status barYes; its README doesn't say where they come fromYesNot mentioned
LayersSidebar, Claude's message box and status barYes: what Claude Code shows and saves for each account, with no requests of its ownYes, from Claude Code's historyYes, side by side

Price, size and last update

ToolPriceInstalls or GitHub starsLast update
ccusageFree, open sourceAbout 19,100 stars22 Oct 2026 (20.0.41)
Claude Code UsageFreeAbout 72,400 installs15 Oct 2026
Claude StatusFreeAbout 17,700 installs28 Jul 2026
Claude Code Usage TrackerFreeAbout 15,100 installs3 Oct 2026
Claude Usage BarFreeAbout 12,600 installs23 Apr 2026
CCAssistFree; Pro is $4.99 a month or $49.99 lifetimeAbout 11,600 installs14 Oct 2026
LayersFreeNew: first listed 22 Oct 202622 Oct 2026

Read the limits column first: a tool that only reads logs can estimate tokens and cost, but not what's left of a limit you share with claude.ai. And two things apply to every tool that reads Claude Code's logs:

Where Layers fits (I make it)

I make Layers, a free VS Code extension that works on top of Anthropic's Claude Code extension. It's unofficial: Anthropic doesn't make, endorse or support it. For usage, it does three things:

The Analytics section of the Layers sidebar with sample numbers: prompts, tokens and API-equivalent cost for this project over the last 7 days, then tokens and prompts today, cost this week and a 12-day streak.
Layers' Analytics, worked out on your computer from Claude Code's history. The numbers are sample data.

Before you choose it:

Layers is free on the VS Code Marketplace. For the accounts side, see How to switch Claude accounts in VS Code.

How I checked

On 23 October 2026 I read each tool's own pages: the Marketplace listing and README for each extension, and the GitHub repository and docs for ccusage. Install counts are rounded and change daily. The tables repeat what each tool says about itself, not the results of my own tests. I picked the five extensions by install count, not by preference.

I make Layers, so read its rows with that in mind. If something here is wrong or out of date, tell me and I'll correct it.

Questions

Why doesn't ccusage match the limit in /usage?

They measure different things. /usage shows the percentage Anthropic tracks for your plan, a limit shared with claude.ai and Claude Desktop. ccusage counts the tokens in the Claude Code logs on your computer and groups them into its own 5-hour blocks, which start with your first message. Chats on claude.ai, your other computers and deleted logs never reach it.

Is the cost ccusage shows what I actually pay?

Not on a Pro or Max plan. ccusage works out cost from token counts and model prices, as Claude Code does for its own session cost, and Anthropic says that figure "isn't relevant for billing purposes" for Pro and Max subscribers. It's still useful for comparing days and projects. If you pay per token through the Claude Console, its Usage page is the real record. Where did my Claude Code tokens go? explains more.

Can I see my real 5-hour and weekly percentages in the terminal?

Yes. Run /usage, or set up a status line: on Pro and Max, Claude Code passes it rate_limits.five_hour and rate_limits.seven_day, each with a percentage and a reset time. ccusage's statusline shows costs, the current block, a burn rate and context use rather than these percentages. Claude-Code-Usage-Monitor, a free terminal dashboard (version 4.0.0, June 2026), can capture these percentages with its --statusline option.

Does Layers work in Cursor or Windsurf?

Not yet. Layers is waiting for approval on Open VSX, so for now it's for VS Code 1.100 or newer. It isn't for Claude Code in a separate terminal app, the Claude desktop app or claude.ai.

Sources

Every source was checked on 23 October 2026.

Try Layers. It's free.

Install in VS Code

Or open VS Code, press ⌘P (Ctrl+P on Windows and Linux), paste it and press Enter.

Or get it from the VS Code Marketplace.