Skip to content
ruam.ai

AI agent cost calculator.

See what Claude Code, Codex and Antigravity CLI cost a month. Paste what ccusage or Claude Code's /usage shows, or type your tokens. Then check whether a flat plan is cheaper on price, and what each client's share comes to. Free, no sign-up, and your numbers stay in your browser.

Prices checked on 2026-11-20, from each vendor's own pages. See the price table below.

Nothing you paste leaves this page.

Add your usage above to see what it costs a month.

Ruam's agent tracking puts each run on the client's record, with what it delivered, how long it took and its cost when the run reports it. Beta. Open on every plan.

See agent tracking

Is Claude Max worth it? How the number is worked out

Every line of the math is on the page, so you can check it against your own bill.

  • Each kind of token has its own price per million: input, output, cache read, and for Claude a cache write. Your tokens times each price, added up, is the cost. On Opus 5.5 a cache read costs 5% of a fresh input token.
  • Some models cost more when the prompt is long: Haiku 5.5 over 100,000 tokens, OpenAI's GPT-6 models over 272,000, and Gemini 3.1 Pro over 200,000. A pasted total doesn't say how long each prompt was, so the calculator uses the base price and says so. Tick the box on a line if most of your prompts are long.
  • Announced price changes are in the table. Gemini 4 Carbon and Argon double on December 1, 2026, and Gemini 3.8 and 3.6 Flash double on January 1, 2027, so a result that uses them shows what it becomes.
  • Plan limits are published as multiples ("5x Pro usage") or as ranges, never as dollars or tokens. So the calculator shows your usage as a multiple of the base plan's price, lays the plans side by side with what each vendor says, and tells you plainly that it can't say whether you'd hit a limit.
  • The rough mode uses one published figure, Anthropic's own average of about $13 per active day in enterprise deployments, and is labeled as an estimate for Claude Code only.

Worked examples

Each one is worked out by the same code that runs the calculator above.

Claude Code on Opus 5.5, ten runs a day for 20 days

One run uses 20k input, 8,000 output, 400k cache read and 30k cache write tokens. That is 200 runs a month.

Input4M× $4 per 1M$16.00
Output1.6M× $20 per 1M$32.00
Cache read80M× $0.20 per 1M$16.00
Cache write6M× $5 per 1M$30.00
A month on pay per use$94.00

At API list prices this usage is worth about 4.7 times the price of Claude Pro ($20 a month). That is a measure of how much work you do, not what a plan covers.

Split 50, 30 and 20 percent across Acme, Northwind and an internal project, with a 25% markup:

  • Acme: $47.00 a month, bill $58.75
  • Northwind: $28.20 a month, bill $35.25
  • Internal: $18.80 a month, bill $23.50

Codex on GPT-6.2 Sol, a month of everyday tasks

3M input, 1M output and 20M cached input tokens: $6.00 + $10.00 + $2.00.

$18 a month. At API list prices this usage costs $18 a month, less than the $20 price of ChatGPT Plus.

Antigravity CLI on Gemini 4 Carbon

10M input, 2M output and 50M cache read tokens at today's prices.

$45 a month at Gemini API list prices. From Dec 1, 2026 this becomes $90 a month (up $45).

Yardstick only: these tokens at Gemini API list prices come to $45 a month. Google doesn't sell Antigravity CLI per token, so this isn't a price you could pay, and it isn't set against the plan prices below.

Where to find your own numbers

Everything below runs on your computer and reads files already on it.

Claude Code

Your tokens, by model and by day:

npx ccusage@latest daily --json

Or run /usage inside Claude Code and paste the Session block, the part under "Usage by model". Claude Code's own cost figure there is at list price.

Your limits: In claude.ai, open Settings, then Usage, to see bars for your five-hour session and weekly limits. In Claude Code, run /usage.

Codex

ccusage reads Codex's local logs too:

npx ccusage@latest codex daily --json

If the calculator can't read it, enter the tokens by hand.

Your limits: In a Codex CLI session, run /status to see your remaining limits. The usage dashboard in ChatGPT shows your current limits too.

Antigravity CLI

Run /usage to see model credit use and quota limits. We found no token export for it, so enter tokens by hand if you have them.

Your limits: In Antigravity CLI, run /usage. It shows your model credit use and quota limits.

ccusage is a free open source tool: ccusage on GitHub.

Prices used, checked on 2026-11-20

Dollars per million tokens, straight from each vendor's page. Where a vendor lists nothing, the table says so and the calculator adds nothing for it.

Show the full price table and sources

Claude Code (Anthropic)

ModelInputCache write (5 min / 1 h)Cache readOutputChanges
Opus 5.5$4$5 / $8$0.20$20Claude Code's default model on Pro, Max, Ultra and Team.
Sonnet 5.5$2$2.50 / $4$0.10$10
Haiku 5.5$0.10$0.125 / $0.20$0.01$0.50Priced higher when the prompt is over 100,000 tokens, counting cache reads and writes.
Haiku 5.5, prompt over 100,000 tokens$0.50$0.625 / $1$0.05$2.50
Fable 5.2 and Mythos 5.2$8$10 / $16$0.20$40
Fable 5.1 and Mythos 5.1$10$12.50 / $20$0.25$50
Fable 5 and Mythos 5$10$12.50 / $20$1$50
Opus 5$5$6.25 / $10$0.50$25
Opus 4.5 to 4.8$5$6.25 / $10$0.50$25
Sonnet 5$2$2.50 / $4$0.20$10
Sonnet 4.5 and 4.6$3$3.75 / $6$0.30$15
Haiku 4.5$1$1.25 / $2$0.10$5

Source: Anthropic API pricing. Claude Code defaults to Opus 5.5 on Anthropic's plans and API.

Codex (OpenAI)

ModelInputCache writeCache readOutputChanges
GPT-6.2 Astra$8none listed$0.40$40OpenAI calls it recommended for demanding work.
GPT-6.2 Astra, prompt over 272,000 tokens$16none listed$0.80$60
GPT-6.2 Sol$2none listed$0.10$10OpenAI calls it recommended for everyday tasks.
GPT-6.2 Sol, prompt over 272,000 tokens$4none listed$0.20$15
GPT-6 Astra$10none listed$1$50
GPT-6 Astra, prompt over 272,000 tokens$20none listed$2$75
GPT-6.1 Sol$2none listed$0.10$10
GPT-6.1 Sol, prompt over 272,000 tokens$4none listed$0.20$15
GPT-6.1 Terra$1none listed$0.05$5
GPT-6.1 Terra, prompt over 272,000 tokens$2none listed$0.10$7.50
GPT-6 Sol$2none listed$0.20$10
GPT-6 Sol, prompt over 272,000 tokens$4none listed$0.40$15
GPT-6 Luna$0.10none listed$0.01$0.50
GPT-6 Luna, prompt over 272,000 tokens$0.20none listed$0.02$0.75
GPT-5.3 Codex (API only)$1.75none listed$0.175$14Deprecated for ChatGPT sign-in; still sold through the API.

Source: OpenAI API pricing. OpenAI doesn't state which model Codex uses by default, so pick the one you use.

Antigravity CLI (Google)

Antigravity CLI is sold in Google AI plans, not per token. These are Gemini API list prices, used as a yardstick.

ModelInputCache writeCache readOutputChanges
Gemini 3.8 Flash$0.75none listed$0.075$3.75From Jan 1, 2027: $1.50 input, $7.50 output, $0.15 cache read.
Gemini 3.6 Flash$0.75none listed$0.075$3.75From Jan 1, 2027: $1.50 input, $7.50 output, $0.15 cache read.
Gemini 3.5 Flash-Lite$0.30none listed$0.03$2.50
Gemini 3.1 Pro Preview$2none listed$0.20$12
Gemini 3.1 Pro Preview, prompt over 200,000 tokens$4none listed$0.40$18
Gemini 4 Carbon$2none listed$0.10$10From Dec 1, 2026: $4 input, $20 output, $0.20 cache read.
Gemini 4 Argon$2none listed$0.10$10From Dec 1, 2026: $4 input, $20 output, $0.20 cache read.
Gemini 4 Neon$3none listed$0.15$15
Gemini 4 Hydrogen$1.50none listed$0.075$7.50

Source: Gemini API pricing. Google doesn't say which Gemini 4 model Antigravity CLI uses by default, and doesn't list a price for extra AI credits per model.

Flat plans, per person a month

PlanMonth to monthBilled yearlySource
Claude Pro$20$17 a monthClaude plans
Claude Max$100not publishedClaude plans
Claude Ultra (was Max 20x)$200not publishedClaude plans
Claude Team, standard seat$25$20 a monthClaude plans
Claude Team, premium seat$125$100 a monthClaude plans
ChatGPT Go$8not publishedChatGPT and Codex pricing
ChatGPT Plus$20not publishedChatGPT and Codex pricing
ChatGPT Profrom $100not publishedChatGPT and Codex pricing
ChatGPT Business, per user$25$20 a monthChatGPT and Codex pricing
Google AI Plus$4.99not publishedGoogle AI plans
Google AI Pro$19.99not publishedGoogle AI plans
Google AI Ultra 5xfrom $99.99not publishedGoogle AI plans
Google AI Ultra 20x$199.99not publishedGoogle AI plans

Google lists no yearly price for its plans, and the yearly prices for ChatGPT Plus and Pro, and for Claude Max and Ultra, weren't on the pages we could read. Enterprise plans are left out: Anthropic lists $20 a seat with a 20-seat minimum plus usage at API rates, and the others are sold through sales. Antigravity has no plan of its own: its quota comes from your Google AI plan, and Google Workspace plans don't include it. Antigravity plans.

Anthropic's benchmark for the rough mode is from Claude Code costs: about $13 per developer per active day, $150 to $250 per developer per month, and under $30 per active day for 90% of users.

Questions

How much does Claude Code cost a month?

It depends on how much you use it. Anthropic says that across enterprise deployments the average cost is around $13 per developer per active day and $150 to $250 per developer per month, with costs below $30 per active day for 90% of users. On a flat plan it starts at $20 a month for Claude Pro. Paste your own usage above for a number that is yours.

Is Claude Max worth it compared with paying per use?

The calculator shows your usage at API list prices as a multiple of Claude Pro's $20 price, then lays the plans side by side. Max is "5x Pro usage" for 5 times the price and Ultra is "10x Pro usage" weekly for 10 times, so they are more of the same, not a discount. What it can't tell you is whether your work fits a plan's five-hour and weekly limits, because Anthropic, OpenAI and Google don't publish them in dollars or tokens. Check with /usage in Claude Code, /status in Codex or /usage in Antigravity CLI, and in Settings, Usage on claude.ai. If you are on a plan, say how often you hit its limit and the page words the next step to try.

How do I see how many tokens my agent used?

For Claude Code, run npx ccusage@latest daily --json in a terminal, or run /usage inside Claude Code for the Session block. For Codex, ccusage reads Codex's local logs too (npx ccusage@latest codex daily --json). Paste either into the calculator. For Antigravity CLI, /usage shows credit use and quota, and we found no token export, so enter tokens by hand if you have them.

Does it work for Codex and Antigravity CLI, not only Claude Code?

Yes. Each model is priced from its own vendor's list: Anthropic for Claude Code, OpenAI for Codex, and Google's Gemini API list for Antigravity CLI. Antigravity CLI runs on Google AI plans and we found no pay per use price for it, so its figure is the same tokens at Gemini API prices, a yardstick and not a bill.

Is my usage sent anywhere?

No. The calculator runs in your browser. What you paste or type is not sent to us. A draft stays on this device so a refresh doesn't lose it, and a share link keeps the numbers in the link itself, not on our servers. Our analytics record only which mode and agent were used, never a number or a client name.

What isn't included in the numbers?

Batch discounts, fast and priority modes, US-only or regional processing surcharges, OpenAI's Ultrafast multiplier, and Gemini's hourly cache storage fee are left out. Extra usage bought as credits on a plan isn't included either. Each of these changes the price, so treat the result as the standard list price.

Put this calculator on your site

Paste the code below and your readers get the whole calculator. It's free, and it picks up every price update we make.

Hear about the next free tool

One email when we add a new one. Unsubscribe in one click.

See our Privacy Policy.

Beta

Put each run on the client's record.

This calculator prices the work in a month. Ruam's agent tracking records it as it happens: each Claude Code, Codex or Antigravity CLI run lands on a client with what it delivered, how long it took and what it cost when the run reports it. Your people's hours count themselves beside it. Ruam keeps summaries only, never code, prompts or files.

Agent cost does not reach invoices yet, so for now you copy the figures across.

Agent tracking is in Beta and open on every plan.

7 days for your team, up to 10 people. No card.

Agent tracking is in Beta and open on every plan. Read more on AI agent time tracking, or the pages for Claude Code, Codex and Antigravity CLI. Also free: billable hours calculator.