paneherd

Claude Code

Claude Code usage vs API usage

By Eren Çolak, who makes Paneherd · Updated 24 October 2026

Claude Code can run on two different billing models. Signed in with a Pro or Max subscription, it draws on a plan allowance: a five-hour session limit and weekly limits, shared with claude.ai and Claude Desktop. Signed in with an API key, you pay per token, there are no plan windows, and the API's own rate limits apply instead.

Subscription (Pro, Max)API key
How you payFlat plan pricePer token used
What limits youFive-hour session limit and weekly limitsSpend you allow and API rate limits
Shared withclaude.ai and Claude DesktopOnly other uses of that key
Where to look/usage, status line, Usage MeterThe Anthropic Console
When it runs outStops until the window resetsRate limits clear in moments; spend limits are yours to raise

How to tell which you are on

If Claude Code reports a five-hour and weekly percentage, you are on a subscription: those limits are shown only to Pro and Max subscribers. If it reports no plan windows and you signed in with an API key, you are billed per token. Anthropic's cost documentation covers the details of each.

Why it matters for tools

Frequently asked questions

Can I switch between them?

Yes, by signing in differently. Limits and billing follow whichever you are signed in with.

Which hits a limit first?

They are not comparable: a plan stops at its window, an API key stops at your budget or at a rate limit. See rate limit vs usage limit.

Install the free Usage Meter