Do Claude Code and claude.ai share limits?

Short answer: yes. When you sign in with a Claude plan, Claude Code and claude.ai share limits. Chat, Claude Desktop, the mobile app and every form of Claude Code draw on the same 5-hour session limit and the same weekly limit. The exception is how you sign in: with an API key, Claude Code is billed separately and doesn't touch your plan.

How you use ClaudeCounts towards your plan limits?
claude.ai, Claude Desktop, the mobile appYes
Claude Code in the terminal, signed in with your planYes
VS Code, Cursor and JetBrains extensionsYes
Cloud sessions (claude.ai/code, claude --cloud)Yes
Scheduled tasks, formerly called routinesYes
claude -p and the Agent SDK, signed in with your planYes
Cowork, Claude in Chrome, Claude DesignYes
Claude Code with an approved ANTHROPIC_API_KEYNo, billed per token to that key's account
Claude Code signed in with a Console accountNo, billed per token to that account
Amazon Bedrock, Google Cloud, Microsoft Foundry, an LLM gateway credentialNo, billed to whoever owns the credential

Do Claude Code and claude.ai use the same usage limit?

Yes. Anthropic's Help Center says usage of claude.ai, Claude Code and Claude Desktop "counts towards the same usage limit". The pricing page adds mobile and describes it as one pool.

So there's one 5-hour window and one weekly reset, not a set for each product. A long afternoon of chat leaves less for the terminal, and a long coding session leaves less for chat.

The separate weekly limit for Fable on Max and Ultra is shared in the same way. Verified Ultra accounts have no 5-hour limit, so only the weekly limits apply to them.

The pool is shared, but the products don't use it at the same speed. Anthropic tells admins to budget more for a coding seat than a chat seat, because one debugging session can use more than a day of chat. Cowork and Claude in Chrome also use your limit faster than ordinary chat.

Claude Design used to have its own weekly allowance. It now counts towards the same limits as everything else, so older guides that call it separate are out of date.

What doesn't count towards your plan limits?

Whatever isn't using your plan's login. Billing follows the credential, not the app.

The common surprise is ANTHROPIC_API_KEY. If it's set and approved, Claude Code uses it instead of your subscription, even when you're signed in, and you pay API rates. A few details decide when that happens:

  • In an interactive session, Claude Code asks once whether to use the key and remembers your answer.
  • With claude -p, the key is always used when it's present.
  • The CLI, VS Code extension, Agent SDK and GitHub Actions all read the variable.
  • Claude Desktop and cloud sessions don't. They stay on your login, unless Desktop has a third-party inference configuration.

That means one machine can be on two meters at once: Claude Desktop on your plan, and a terminal with a stray key on the API. Run /status to see which credential is active. It marks the one that isn't in use.

The monthly API credits on Max, Ultra and Team plans are a separate thing again. They don't change your usage limits, and they don't cover interactive Claude Code.

Why has my Claude Code usage gone up when I haven't been coding?

Because the bars in /usage show your limits, and those limits cover your whole plan. The usual causes are:

  • Chats on claude.ai, Claude Desktop or your phone.
  • Cowork tasks or Claude in Chrome.
  • A scheduled task that ran while you weren't looking.
  • Claude Code on another computer signed in to the same account.

The breakdown lower down the /usage screen won't explain it. It's built from session history on that machine, so it leaves out claude.ai and your other devices. You can see the same limits under Settings → Usage, and there's more in how to check your Claude Code usage.

The bars count everything, but you have to open them. Leeway keeps your session and weekly usage in your Mac's menu bar, and those numbers include claude.ai and Claude Desktop as well as Claude Code.

Can you use claude.ai after hitting the limit in Claude Code?

No, not for a session or weekly limit, unless you've turned on usage credits. Moving between products doesn't help, because they all draw on the limit you've just used up. Usage credits work across both, and spending them doesn't change when your limits reset.

Two other limits behave differently:

  • Length limits apply to one conversation. If a chat gets too long, start a new one. That has nothing to do with your 5-hour or weekly limit.
  • Model limits such as You've hit your Opus limit apply to one model family. Switching to a different family with /model keeps you working.

Here's what to do when you hit your session limit or your weekly limit. The Claude Code limits guide covers the rest.

Do different accounts have separate limits?

Yes. Limits belong to the account you're signed in to, and on a Team plan each member has their own. Limits can't be moved or shared between team members.

If Claude Code and your browser disagree, check that they're on the same account. Run /status in Claude Code and compare it with the account you see on claude.ai. People with a personal plan and a work seat can end up looking at one account's bars while spending the other's. To stay signed in to both, Anthropic's docs suggest giving each account its own CLAUDE_CONFIG_DIR.

A second computer on the same account doesn't add anything, because the limits are counted per account.

FAQ

Do Claude Code and Claude Desktop share limits?

Yes. Anthropic names Claude Desktop alongside claude.ai and Claude Code as drawing on the same limit.

Is it the same on Team and Enterprise?

On Team and seat-based Enterprise plans, each member has a per-seat allowance shared across Claude Code, chat and Cowork. Usage-based Enterprise plans have no per-seat limits, and all usage is billed at API rates.

Does claude -p use my subscription?

Yes, when you're signed in with your plan and no API key is set. Anthropic paused a planned change to this in June 2026, and claude -p and the Agent SDK still draw from your subscription limits.

Will an API key stop Claude Code using my claude.ai limit?

Yes. Requests made with the key don't touch your plan, but you pay per token for them. Keep the variable unset if you want to stay inside your subscription.

Sources