AI agent running cost calculator
Work out what an AI agent really costs to run around the clock. Enter how often it runs, how much context each turn carries, and your model's prices to see monthly token spend, hosting, and a spend cap worth setting.
How your agent runs
What you pay
How the estimate is calculated
The calculator turns your agent's shape into a monthly token count, prices it at the rates you enter, and adds what you pay for hosting. It runs entirely in your browser and nothing you type is sent anywhere.
- Turns per month = runs per day x days x turns per run.
- Token spend = input tokens x input price + output tokens x output price.
- Total = token spend plus your monthly hosting cost.
- Suggested cap = the total plus 50 percent headroom.
Why input tokens usually dominate
An agent loop re-sends the conversation so far on every turn, so context grows as a run progresses. That makes input the larger share of most agent bills even though output is priced higher per token. A flat figure per turn is therefore a floor, not a ceiling. Where your provider offers prompt caching the repeated portion gets much cheaper, so check whether the price you enter should reflect that.
Sizing a spend cap
Steady usage is rarely what causes a surprise bill. The usual causes are a loop that retries, a task firing more often than intended, or a tool returning far more text than expected. Size the cap against a bad day rather than an average one, and set it somewhere that hitting it stops the agent instead of only warning you.
Frequently asked questions
How much does it cost to run an AI agent 24/7?
It depends almost entirely on how often the agent runs and how much context each turn carries, not on uptime. A scheduled agent doing a handful of runs a day usually costs more in model tokens than in hosting. Enter your own numbers above to get a figure for your case.
Why is my agent's token spend higher than expected?
Agent loops re-send the accumulated conversation on every turn, so a long run costs far more than the same prompt sent once. Retries, chatty tool output, and tasks firing more often than intended are the other common causes.
What spend cap should I set for an AI agent?
Set it against a bad day rather than an average one. A common approach is your expected monthly cost plus 50 percent headroom, enforced as a hard stop so the agent halts rather than only warning you.
Is this calculator free?
Yes. It runs entirely in your browser, needs no sign-up, and nothing you enter is sent to us.
Run it 24/7 without the devops sidequest
Qoren runs OpenClaw, Hermes and Codex agents in managed cloud environments, with the spend cap enforced for you. No Docker and no VPS to babysit.