SSD Nodes Learn Hosting plans →
How to do am Matt ConnorBy Matt Connor · Updated 2026-08-29

Claude Code dey inside Claude Pro? Na so e work

Yes, Claude Pro include Claude Code, but free plan no. Both tools share one usage window, while API key runs dey bill per token separately.

Claude Code dey inside Claude Pro?

Yes. Claude Code dey inside Claude Pro. E dey also inside Max, Team, and Enterprise seats. So one subscription cover both the chat apps and the terminal tool. The free Claude plan no include am. Anthropic setup documentation talk am clearly: Claude Code need Pro, Max, Team, Enterprise, or Console account. The free plan no give access to Claude Code. You only need API key (application programming interface key, wey dem bill per token) when you no get subscription, or when you want automated runs make dem bill am separately from your own interactive work.

Na the next part people dey often get wrong. Claude Code no get separate usage allowance. E dey use the same subscription usage budget wey your chat conversations dey use. So long coding session fit reduce the chat window wey remain after am. Anthropic talk say both Pro and Max plans get usage limits wey Claude and Claude Code share. This mean say all activity for both tools dey count against the same usage limits.

Wetin each plan really get

  • Free: e no get Claude Code. You fit chat for web and apps, but nothing go dey for your terminal.
  • Pro: Claude Code dey included for Pro usage levels. E cost $20 every month for United States as of August 2026, and annual billing dey cheaper.
  • Max: na the same Claude Code, but e get bigger usage allowance, for two tiers wey cost $100 and $200 every month as of August 2026.
  • Team and Enterprise: e dey included with the seat. The allowance belong to the seat, and premium seat get more than standard seat.

Na only these prices dey here, because plan prices fit change and this page no dey change with dem. You fit find the current numbers for complete cost breakdown for Claude Code, the choice between tiers dey explained for comparison of the Claude subscriptions plan by plan, and wetin the free Claude tier cover worth checking before you assume say you no get option.

Why one coding session dey shorten your chat window

Two windows dey control paid subscription. Session limit dey reset every five hours. Weekly limit dey reset for one fixed time every week wey dem assign to your account, and you fit see your own reset time for usage screen. None of dem be message count wey you fit calculate ahead, because how far you reach depend on how long your conversations dey and which model you run. Treat dem as behaviour to monitor, no be number wey you go budget against. The limit mechanics in detail dey worth reading once, before you hit one.

Claude Code dey drain that budget faster than chat because of wetin coding turn carry. Every request dey send the whole conversation wey don happen so far. Every tool call, file read, or test run dey send another request wey carry the results from the previous one. Anthropic own guidance for administrators talk say make you budget more for coding seat than chat seat for exactly this reason: one debugging session fit consume more than one day of chat.

Prompt caching dey reduce this effect, but e no remove am. System dey read repeated context again at cached rate, so one-line question inside session wey don stay open all day still dey use the whole conversation behind am. Cache lifetime na one hour for subscription. If you step away for lunch, your first message when you come back no go find cache, so system go process your full context again at normal rate. That one message fit cost more than the twenty messages before am.

Signs wey show say you dey use shared budget too fast

Run /usage inside Claude Code. For paid plan, e go show usage bars for your plan limits, plus breakdown of wetin dey use the limits. Press d for the last 24 hours and w for the last 7 days.

The breakdown go flag any behaviour wey dey cause 10 percent or more of recent usage, like long context or cache misses. E go also show how skills, subagents, plugins, and individual MCP (model context protocol) servers dey contribute to usage. One important limitation dey. The figures come from local session history for the machine wey you dey use, so work wey you do for another machine or for claude.ai no dey inside the breakdown. The plan bars dey global. The usage attribution dey local.

When you finish the available usage, the message go name the limit wey you reach:

You've hit your session limit
You've hit your weekly limit

Both windows apply to every model, so changing model with /model no go restore access. A model-specific message like You've hit your Opus limit na different matter, and for that case /model go let you continue work with another model. Context warning or auto-compact notice no be usage limit: e mean say the conversation don near the session context window, and older history dey about to get summarised. Anthropic cost guidance put context management first, and keeping the context window small get the clearest effect on how fast the budget dey finish. /clear between unrelated tasks no cost anything, and e start the next request with less context to carry. If you don already lose access, the options when a limit is reached dey limited to waiting, upgrading, or turning on usage credits.

How API key fit take over billing without asking

This one dey cause the biggest wahala for server. If ANTHROPIC_API_KEY environment variable dey set, Claude Code go authenticate with that key instead of your subscription, and dem go bill the work per token to your API account. Your Pro or Max allowance go remain untouched while invoice dey increase. No free allowance dey wait for the other side too, because Claude API no get free tier apart from the small credit wey dem give when you sign up.

For VPS, this one dey happen by mistake more often than for laptop, because the same shell profile usually dey hold keys for other tools. Check before you start:

printenv ANTHROPIC_API_KEY

If nothing print, no key dey set, so Claude Code go use your subscription. If key print, the next session go bill the API. Clear am for this shell, then find the file wey dey set am:

unset ANTHROPIC_API_KEY
grep -rn ANTHROPIC_API_KEY ~/.bashrc ~/.profile ~/.bash_profile 2>/dev/null

Now start Claude Code and sign in with the subscription account:

claude

The first run go open browser login. Inside session, /login dey switch accounts and /usage confirm which billing account you enter: subscriber go see plan usage bars, while API account go see session block with token costs and no plan bars. The remaining server setup, including how to keep session alive after you disconnect, dey covered for running Claude Code on VPS inside tmux, while the permission side dey covered for running Claude Code safely on server wey you own.

One related trap dey. When plan allowance finish, you fit turn on usage credits to continue work beyond the allowance. Dem go bill this on top of the subscription. Once you start use credits, prompt cache lifetime go drop from one hour to five minutes. So the same idle gaps wey used to be free go start cost money. /usage-credits dey open billing settings for Pro or Max subscriber.

Wetin one you suppose pay for?

All dis assume say you don decide to pay at all, and whether Claude Code go earn back e price for your own hourly rate na the arithmetic behind that decision. If wetin you dey weigh na the subscription itself instead of the terminal tool, whether Claude Pro worth am for how you really dey use Claude dey start from another question: how often the free limit dey stop you in the first place.

  • Occasional or hobby coding: Pro. One tool, one bill, enough for some sessions every week. Details of the allowance dey for the Pro plan price and its limits.
  • Sustained daily coding: Max. If you dey reach the session window most days, the cheaper fix na bigger allowance, no be second account. The choice between the two Max tiers depend on how often you dey reach the weekly limit, instead of the five-hour one.
  • Several people: Team or Enterprise seats, where the allowance follow the seat and admin fit see spend per user. What a seat costs against what the same work costs per token na the comparison you suppose run before you buy seats in bulk.
  • Bursty or automated runs: API billing. Nightly job or CI (continuous integration) step no get reason to compete with the interactive work you dey do for the same allowance.

Those last two cases fit work well together. Keep the subscription for the work wey you dey do by hand, and give automation its own API key, so overnight run no fit empty the window wey you need the next morning. The API and subscription cost comparison go show where the crossover dey.

FAQ

I fit use Claude Code for the free Claude plan?

No. Claude Code need Pro, Max, Team, Enterprise, or Console account. Anthropic setup documentation talk say free Claude plan no include Claude Code access, so when you run claude e go ask you to sign in with paid account or authenticate with API key instead. Free plan still cover chat for web and desktop apps, and this fit help you test whether Claude dey answer the kind question wey you get before you pay for anything.

Claude Code dey use the same usage limits as Claude chat?

Yes, for Pro and Max. Anthropic talk say usage limits dey shared across Claude and Claude Code, so all activity for both tools dey count against the same limits. Session limit dey reset every five hours, and weekly limit dey reset for fixed time every week wey dem assign to your account. For real use, one afternoon of heavy refactoring fit leave you with short chat window that evening. Run /usage to see the bars and the next reset time.

Why my usage drop fast during one coding session?

Because one coding turn carry much more context than chat message. Every request dey send the whole conversation, and every tool result add another request wey carry the conversation again. Run /usage and read the behaviour flags: anything wey cause 10 percent or more of recent usage go get mark, and the usual causes na long context and cache misses. Session wey stay open all day dey keep sending the full history again, and idle gap wey pass the one hour cache lifetime make the next message process everything again at the normal rate. Using /clear between unrelated tasks solve both problems.

When API key cheaper pass Pro or Max subscription?

When the work dey happen in bursts or na automation dey run am. API billing charge per token with no monthly minimum, so script wey run twice every week go cost only wetin those tokens cost and nothing more, while subscription dey make you pay for one month capacity wey you no use. Daily coding wey dey run continuously na the opposite: subscription get fixed price for large allowance, and paying per token for that same volume go cost more. Setting ANTHROPIC_API_KEY for machine wey you also dey use to code by hand na the mistake to avoid, because Claude Code go then bill the API and leave your subscription allowance unused.