calc.dev.brAI calculators for developers

How much does Claude Code cost per month on the API?

Answer
$199.94 a month on Claude Opus 5.5: 4 sessions/day, 40 steps, 22 days

Running Claude Code with Claude Opus 5.5 on the API, each step (60K context tokens, 90% cached, 800 output) costs $0.0568; a 40-step session, $2.27. At 4 sessions a day over 22 days: $199.94 a month.

agent-cost.tsadjust the values
Each file read, command or edit is one request.
tokens
tokens
%
Examples

Plan or API?

On a plan, the agent is covered by the fixed price within usage limits; on the API you pay every token. People who code with an agent all day usually save with a Max plan; CI automation fits the API better.

Where the cost comes from

Every step resends instructions, history and the files read so far. Without caching the bill would be several times higher, which is why short, focused sessions cost less.

More questions like this

Frequently asked questions

How do I cut agent costs?

Start fresh sessions for new tasks, keep the instructions file short and use a smaller model for mechanical work.

Are the plans unlimited?

No. Claude and ChatGPT cap usage per time window (on Claude, 5-hour windows plus weekly limits). Bigger plans give more usage.

Estimate based on public prices as of October 2026. Token counts vary with the text and the model; check the official pricing page before you decide.