Free tool
AI agent cost calculator
What does it actually cost to run an AI coding agent in the cloud? Pick a machine, how long it works, and how you pay for the model. The numbers use JackHamr's live hourly rates.
Updated October 30, 2026.
Machine size
2 vCPU, 4 GB RAM, 50 GB SSD
How you pay for the model
Estimated monthly cost
$15.05
for about 173 working hours a month
Leaving the same machine on around the clock would cost $47.34 a month. Paying only while the agent works saves $32.29.
New JackHamr accounts get $30 in free credit, no card needed. That covers about 462 hours of this machine.
Machine rates are JackHamr's live prices. Model costs are paid directly to your provider (bring your own key or subscription), with no markup.
What drives the cost
Machine time
An agent that builds and tests code needs a real computer: a shell, a file system, a browser. You pay for its CPU and memory by the hour. The biggest lever is whether you pay for idle hours too. A server you rent by the month costs the same at 3 a.m. as at noon.
The model
With API keys this is often the larger cost. If you already pay for a Claude Code or Codex plan, an agent can use that plan, so the model adds nothing on top. If you use API keys, cost scales with tokens: long tasks, big codebases and retries all burn more.
Storage
A persistent disk lets the agent keep its repo, dependencies and notes between runs, so it does not start from zero each time. It is small, but it is billed even while the agent is stopped.
Questions
How much does it cost to run an AI coding agent?
It depends on three things: how many hours the machine runs, how big it is, and how you pay for the model. On JackHamr a small machine (2 vCPU, 4 GB) costs about 6 cents an hour while it works, plus $5 a month for 50 GB of storage. Model costs go straight to your provider, or are covered by your existing Claude Code or Codex plan.
Is it cheaper to rent a server and run the agent myself?
A server you rent by the month bills for every hour, including the ones where the agent is idle. The calculator shows both numbers for the same machine: on all month, or billed only while the agent works. For an agent that works a normal week, the second is a fraction of the first. A server you run yourself also leaves setup, updates and monitoring to you.
Can I use my Claude Code or Codex subscription instead of API keys?
Yes. A JackHamr agent can use your Claude Code or Codex plan as its model, or your own API keys. Either way you pay the model provider directly, and JackHamr adds no markup.
What does the $30 free credit cover?
New accounts get $30 in free credit with no card needed. It pays for machine time and storage, so you can see what your agent actually costs before you buy anything.
Want the full rate card? See pricing. Keeping an agent working after you close the laptop? Read how to run Claude Code 24/7.
See your real number
$30 in free credit, no card needed. Your first agent is running the moment you sign up.