Coding agent cost calculator
What a task in Claude Code, Cline, Roo Code or OpenCode costs in rupees, from the number of steps and how much context each step re-sends.
Model
One task
One model call per step: read, edit, run, check
System prompt, tool definitions and the first files
File contents and command output that stay in the session
Edits and explanations the model writes
Context already sent in the previous step
How much you use it
Cost on Claude Sonnet 5.5
Rupee prices are read from the live catalog, last updated 2026-11-22. They follow the USD/INR rate, so a real bill can differ slightly.
Get an API keyWhy input dominates
A coding agent re-sends the session on every step, so the context is paid for again each time. With 25 steps the model reads 11,00,000 input tokens to write 37,500. Starting a fresh session for a new task keeps that context small.
What caching changes
Context that was already sent in the previous step can be read from the prompt cache at the cached-input price. The first step is never cached. See the prompt caching calculator for the details.
Cap it before you run it
Give the agent its own API key with a budget so a long session stops at a limit you chose: spend limits per key. Setup for Claude Code, Cline and OpenCode is in the docs.