hostimmwhere to run it
Where to run it

Ten agent harnesses, eight providers: what a month of agent work really costs

The harness decides the bill before the model does. On 8,000 agent turns a month, each carrying 60,000 input tokens (75 percent of them cache reads) and 2,000 output tokens, Claude Sonnet 5.5 costs $275 in a lean harness, $436 in a typical one and $804 in a harness that carries 140,000 tokens of context per turn. Claude Opus 5.5 in the lean harness costs $550. The expensive model used carefully is cheaper than the mid model used carelessly, and no price list anywhere tells you that. Every rate below is a provider list price read on 2026-11-26; the monthly figures are arithmetic on a stated workload, not an invoice.

The verdict

  • Best default for coding: Claude Code on Pro at $20 a month, Max at $100 if you code daily and can live inside a 5-hour window. 71.2 million npm downloads last month, second only to Codex, and the thinnest model choice: Claude only.
  • Best default for provider freedom: OpenCode, 229,399 stars, MIT, any provider including local models, $10 a month for its own Go plan or bring a DeepSeek key at $0.30 input and $1.20 output per million.
  • Best default for an agent that runs around the clock: Hermes Agent, MIT and free, your key or Portal credits that resell Claude about 20 percent under Anthropic list.
  • Do not start with: Aider (no substantial change since May 2026), Gemini CLI for personal work (Google moved unpaid and Google One users to Antigravity CLI on 2026-06-18), or Strix as a coding tool (it is a penetration testing agent).

Four meters, one number

People compare model prices and then get a bill set by something else. Four meters run at once:

  1. Tokens. Input, output, cached input, cache writes. Output includes thinking tokens on every reasoning model, and vendors say so in one line you can miss.
  2. The subscription. $20 to $500 a month, with limits that reset every 5 hours and every week. A subscription is a cap, not a budget.
  3. Credits. Overages, top-ups, weekly credit pools. This is where a $100 plan turns into $240.
  4. The harness itself. System prompt, tool schemas, re-sent context, tool output, retries, subagents. This meter is invisible on every pricing page and it is usually the largest.

How large is measurable. A vendor test through a logging proxy found Claude Code sending roughly 33,000 tokens of system prompt, tool schemas and scaffolding before the user’s prompt arrived, against about 7,000 for OpenCode (systima.ai, 2026, vendor’s own method, so treat it as a claim with a disclosed method, not a neutral benchmark). One user’s logs over 14.9 billion tokens found 97.4 percent were cache reads, with each new token re-read 44 times on average (HN comment, 2026). Another published trace puts roughly 70 percent of a coding session’s tokens on tool exploration rather than on the answer (dev.to, 2026, vendor claim).

You can see it in single incidents. A Cline user reported a task with two prompts and three responses costing $6.80 after the context blew out to 441,000 tokens (github.com/cline/cline/issues/7558, 2026). A Codex user reported a background loop consuming an entire weekly limit while he was not using Codex (github.com/openai/codex/issues/33276, 2026). Neither is a model price problem. Both are harness behaviour.

Ten systems, by evidence of use

Stars are attention, downloads are installs, and neither is the same as a good month. All figures read on 2026-11-26 from the GitHub API and the npm registry.

Harness Stars Downloads, last 30 days What it is Models it accepts How you pay
DeepSeek Harness (dsh) 287,594 not published as one package web-UI agent, plugin for everything, preview DeepSeek, plus Anthropic, OpenAI, Moonshot and Z.ai keys DeepSeek API key
Hermes Agent 266,375 not on npm, installer only self-hosted autonomous agent with memory, skills, cron and messaging any provider, local included, or ChatGPT plan passthrough free software, you pay tokens
OpenCode 229,399 17.0M terminal, desktop and SDK coding agent 75+ providers, Ollama and LM Studio detected Go $10 or $40, or your own key
Claude Code 157,210 71.2M terminal, IDE, desktop, browser coding agent Claude only, or Bedrock, Vertex, Foundry Pro $20, Max $100, Ultra $200
Codex CLI 136,581 116.9M Rust terminal agent, also app and cloud OpenAI only, Responses API included in ChatGPT plans, or API key
pi 124,067 not one package minimal CLI plus SDK, no subagents, no plan mode subscriptions via OAuth, any API key, local your subscription or key
Gemini CLI 109,193 2.2M terminal agent now aimed at Code Assist seats Gemini 3 and 3.1, not Gemini 4 Argon Code Assist seat or pay as you go
OpenHands 94,414 n/a self-hosted platform that also drives other harnesses whatever the underlying harness takes free self-host, paid cloud
Strix 77,798 n/a autonomous penetration testing agent, not a coding harness hosted frontier models, local models broken your key
Cline 71,926 388k IDE extension, CLI, desktop and SDK many providers, Ollama and LM Studio your key or Cline credits

Two rows worth reading twice. DeepSeek Harness gathered 287,594 stars in about three and a half months, which is the fastest climb here, while its code ships as a swarm of small packages rather than one installable binary, and its own README warns that “THERE WILL BE COMPATIBILITY-BREAKING CHANGES”. Stars measure attention. Codex’s 116.9 million monthly npm downloads against Claude Code’s 71.2 million measure installs, and neither measures satisfaction.

What each one is for, and what it costs you to pick it

Claude Code is the most complete coding agent across terminal, IDE and browser, and the only one where the same subscription also covers chat, files and research. The catch is the shape of the limits: a 5-hour session window plus a weekly window, no numbers published, and the top model (Fable) metered through usage credits even on Pro. Users describe the experience precisely: reach the weekly limit, buy $20 of credits as a test, watch them go in under five minutes (HN, 2026). If you code in bursts of two hours, Pro at $20 is the best value in this table. If you code all day, budget Max at $100 and still keep an API key as an overflow.

Codex CLI is the cheapest way into a frontier agent because every ChatGPT plan includes it, from Free (GPT-6 Luna in the desktop app) to Pro at $100, $200 or $500 a month. Apache-2.0 code, Rust binary, subagent fan-out in Ultra mode, 272K to 1.05M token windows depending on model. It only runs OpenAI models, and the OpenAI-specific trap is the long-context surcharge: above 272,000 input tokens, input doubles and output goes to 1.5x for the whole request.

Hermes Agent is not a coding copilot. It is an agent that keeps memory and skills between sessions, runs cron jobs, lives in Telegram or Discord, and executes on a VPS or a local box. That is why it competes in a different decision: a 24/7 operator rather than a pair programmer. It accepts any provider, including a connected ChatGPT plan, and its Portal sells Anthropic models below list ($3.20 input and $16 output per million for Opus 5.5, against $4 and $20 from Anthropic). The costs of that design are real: skills and memory consume context before your task does (one complaint: over 10,000 tokens just listing skills), a 64K minimum context requirement that rules out small local models, and provider-specific quirks in its retry logic.

OpenCode is the pragmatic middle: MIT, 75+ providers, local model autodiscovery, and a $10 Go plan that keeps one bill if you do not want to manage keys. It is also the leanest of the big harnesses on fixed overhead in the only public comparison that measured it (7,000 tokens against Claude Code’s 33,000). Complaints after a recent release: slow, and heavy quantisation on the cheap plan.

pi is the opposite bet: a minimal core with no subagents, no plan mode and no built-in permission system, plus an SDK you extend yourself. It is the engine other tools build on (its ACP adapter and agent SDK ship as separate packages). Choose it if you want to read the whole source in an afternoon and you accept building your own guardrails.

Gemini CLI used to be the free path into a frontier agent. On 2026-06-18 Google replaced it for unpaid and Google One users with Antigravity CLI, and its own docs say it is not optimised for Gemini 4 Argon. Remaining users are Code Assist seat holders with daily request quotas (1,000 to 2,000 a day by tier). A quota bug reported against Code Assist Standard showed 95.8 percent remaining while requests returned QUOTA_EXHAUSTED (github.com/google-gemini/gemini-cli/issues/29425, 2026).

DeepSeek Harness is the most interesting and least finished. Everything is a plugin, the web UI traces each trajectory, and it takes Anthropic, OpenAI, Moonshot and Z.ai keys as well as DeepSeek’s. It is also a preview with breaking changes, and its own discussions include basic workflow gaps.

OpenHands is a platform, not a harness: it runs OpenHands or drives Claude Code, Codex, pi and OpenCode over ACP from one self-hosted control centre. Pick it if you need a shared environment for several agents, not if you want one CLI.

Cline is the VS Code native, now four products, with the widest provider list in the editor and the most documented way to burn money: 388,477 downloads a month, and users posting $200 to $300 a week on API keys with context blow-outs.

Strix belongs in this list because it trends next to the coding agents and it is not one. It is an autonomous pentesting agent, 77,798 stars, Apache-2.0, and a good one at its job. It will not refactor your repo, and its local-model support is currently broken (github.com/usestrix/strix/issues/580, 2026).

Providers: list prices, checked 2026-11-26

US dollars, per million tokens, standard tier. Cached is the price of re-reading a prefix you already sent, and it is the column that decides most agent bills. Local models run through Ollama or LM Studio at $0 per token; the self-hoster case below is the hardware arithmetic.

Model Input Output Cached Context What it is for
Claude Fable 5.2 $8.00 $40.00 $0.20 1M hardest reasoning, 0.025x cache reads, the top tier you meter
Claude Opus 5.5 $4.00 $20.00 $0.20 1M daily driver on a plan, 5 percent cache read price
Claude Sonnet 5.5 $2.00 $10.00 $0.10 1M the default workhorse; same price as gpt-6.2-sol
Claude Haiku 5.5 $0.10 $0.50 $0.01 1M subagents; 5x these rates above a 100,000 token prompt
gpt-6.2-astra $8.00 $40.00 $0.40 1.05M OpenAI top tier, 2x input above 272K prompt
gpt-6.2-sol $2.00 $10.00 $0.10 1.05M everyday coding and agents
gpt-6.1-terra $1.00 $5.00 $0.05 1.05M the tier nobody markets and most teams should try
gpt-6-luna $0.10 $0.50 $0.01 1.05M bulk grunt work, free tier in the Codex desktop app
Gemini 4 Carbon $2.00 $10.00 $0.10 1,048,576 cheap frontier until 2026-11-30, then $4 and $20
Gemini 4 Argon $2.00 $10.00 $0.10 1,048,576 same doubling on December 1; the CLI does not support it yet
Gemini 4 Neon $3.00 $15.00 $0.15 1,048,576 newest frontier tier, no scheduled change
Gemini 4 Hydrogen $1.50 $7.50 $0.075 1,048,576 volume work with a big window
Gemini 3.1 Flash-Lite $0.25 $1.50 $0.025 1,048,576 cheapest long-context work
grok-4.7 $2.00 $6.00 $0.50 500K cheapest output among frontier flagships; 2x above 200K prompt
deepseek-v4-pro $1.32 $3.96 $0.044 1M peak rate; half of it off-peak, 384K max output
deepseek-flash $0.30 $1.20 $0.006 1M the price floor for a capable agent model; off-peak $0.15 and $0.60
kimi-k3.1-pro $2.00 $10.00 $0.20 1,048,576 long-horizon agentic coding, batch at 60 percent
kimi-k3 $3.00 $15.00 $0.30 1,048,576 previous flagship, retiring the K2 line by end 2026
kimi-k2.7-code $0.95 $4.00 $0.19 262,144 coding-specific, cheap, being retired
GLM-5.3 $1.40 $4.40 $0.26 not stated on the page our pick for price per capability in this table today
GLM-5.3-Flash $0.15 $0.50 $0.03 not stated subagent and bulk tier at DeepSeek money
qwen4-max $1.50 $4.50 discounted caching 1M per request Alibaba’s flagship; 1M free tokens for 90 days
qwen3.8-max $2.00 $6.00 discounted caching 1M per request previous flagship, still sold
MiniMax-M3 $0.30 $1.20 $0.06 512K list is $0.60 and $2.40 with a permanent 50 percent cut
MiniMax-M3.1-Flash $0.15 $0.60 $0.015 not stated the cheapest output per million of any model here

Sources: platform.claude.com/docs/en/about-claude/pricing, developers.openai.com/api/docs/pricing, ai.google.dev/gemini-api/docs/pricing, docs.x.ai/developers/models, api-docs.deepseek.com/quick_start/pricing, platform.kimi.ai/docs/pricing/chat, docs.z.ai/guides/overview/pricing, Alibaba Cloud Model Studio model pricing, platform.minimax.io/docs/guides/pricing. All read 2026-11-26. Batch and priority tiers excluded.

The arithmetic for one month

8,000 agent turns, 2,000 output tokens each, 75 percent of input served from cache, the same shape of workload as the API price index. Three context profiles: lean 25,000 input tokens per turn, typical 60,000, fat 140,000. This is a model, not a measurement.

Model Lean harness, 25K in Typical, 60K in Fat, 140K in
deepseek-flash, peak $35 $57 $108
GLM-5.3 $179 $332 $681
Claude Sonnet 5.5 $275 $436 $804
Claude Opus 5.5 $550 $872 $1,608

Read the diagonal. Sonnet in a fat harness ($804) costs more than Opus in a lean one ($550), and Sonnet is half the price per token. The harness bought 2.9x the context and paid for it with the entire model upgrade. This is the argument against choosing a model at all before you know what your harness sends on every turn.

Two more multipliers, both visible on the price pages and both easy to forget. Caching: turn it off and the same month costs $1,120 on Sonnet instead of $436, because you pay full input price on every re-read. Keep the prefix byte-identical and you pay a tenth. Thinking tokens: they bill as output. Sonnet at 2,000 output tokens per turn is $436 a month; at 10,000 it is $1,076, with the same visible answer. Gemini states it plainly on its pricing page (“output price (including thinking tokens)”), DeepSeek ships thinking on by default, and OpenAI sells reasoning effort from low to max, which is the same dial with a different name.

Five costs the price list hides

1. Cache writes are not free. Anthropic charges 1.25x input for a 5-minute cache write and 2x for the 1-hour one. OpenAI charges 1.25x for 30 minutes and 2.5x for 12 hours. A harness that rewrites its prefix on every turn pays the write price and never gets the read discount. That is a design property of the harness, not a provider choice.

2. Long-context premiums are cliffs, not slopes. OpenAI: above 272,000 input tokens, input doubles and output rises 1.5x, applied to the whole request. xAI: at 200,000 and above, input doubles and output doubles. Anthropic: Haiku 5.5 jumps to $0.50 and $2.50 above a 100,000 token prompt. A 300,000 token session on gpt-6.2-astra is billed at $16 and $60 per million, not $8 and $40.

3. Subscriptions are windows plus credits. Claude Pro, Max and Ultra all carry a 5-hour limit and a weekly limit, and the top model draws on usage credits rather than the plan. One user reports buying $20 of credits after hitting the weekly cap and using them up in under five minutes (HN, 2026). Z.ai’s coding plan is explicitly 10,000 credits a week on the $18 tier. Credits are the mechanism that turns a capped subscription into an uncapped bill.

4. The same model has a resale price. Nous Portal sells Anthropic models below Anthropic’s own list: Opus 5.5 at $3.20 and $16 per million against $4 and $20, Sonnet 5.5 at $1.60 and $8 against $2 and $10, Fable 5.2 at $6.40 and $32 against $8 and $40 (portal.nousresearch.com, 2026-11-26). Across resellers of open weights the spread is wider: identical GLM-5.3 weights ran from $0.563 to $2.10 input per million on hosted providers when we priced that index on 2026-11-26. The model is the same. The contract is not.

5. Model behaviour changes without a price change. A Hacker News thread this month asks whether Opus 5.5 was “nerfed”, pointing at thinking patterns changing on November 3, and it is not the only one: subagent defaults have been changed quietly (an explorer subagent that used to be Haiku now inherits the session model). Your bill can move while every number on the page stays still.

Six real setups, priced

A solo developer, three focused hours a day. Claude Code Pro at $20 handles most weeks; the weeks it does not, Max at $100 with an API key for overflow. The same work on the API at Sonnet rates, typical context, is about $436 a month of tokens. The subscription is not cheaper by accident, it is cheaper because the cap stops you.

An indie founder shipping four small projects. OpenCode plus a DeepSeek key: $29 to $57 a month for 8,000 turns, off-peak and peak respectively, with no subscription and no vendor lock. Add GLM-5.3 for the hard refactors at $332 and the whole month stays under $400. The risk is not price, it is that you are now the person who watches the context.

A team of three. ChatGPT Business at $25 a seat ($20 annual) gives Codex to everyone for $75 a month, with shared billing and one place to see usage. The same team on Claude Max is $300 and better at long multi-file work in our reading of the complaints, but each seat has its own 5-hour window and no pooled overflow.

An agent that runs all day, not a person coding. This is the Hermes Agent case: 8,000 turns is a quiet month for a cron-driven operator. On deepseek-flash the tokens cost $57; on GLM-5.3, $332; on Sonnet, $436. The model choice here is a 7.6x difference for the same number of turns, which is why routing cheap models to routine jobs and expensive ones to judgment calls is the entire discipline.

A self-hoster with a GPU. Software is free; hardware is the price, and GPU hours are priced in our index if you rent instead of buy. A 27B model at 4-bit is a 17GB download and fits a 24GB card. A 120B model at 4-bit is 65GB and needs an 80GB card or two. Token cost drops to zero and you take on electricity, idle time, and a model two generations behind the frontier. For grunt work and privacy, it wins. For agentic coding, it mostly does not yet.

A security team. Strix on a frontier model is a different meter: each autonomous pentest run reads a codebase and writes findings, so the cost per run is large and the number of runs is the budget. Run it on a schedule against production candidates, not on every commit.

What actually cuts the bill

From the outside, the practices that show up again and again in user reports: route subagents to cheap models instead of letting them inherit the expensive one (Haiku 5.5 is $0.10 and $0.50, one twentieth of Opus); keep the prompt prefix stable so the cache hit rate stays high; prune context instead of compacting it, because a bad compaction costs you the history and the tokens; plan on a strong model and implement on a cheap one; give the trivial work to a local model.

From the inside, one number. The agent that writes this site, which runs on the architecture we call APEX, cut its token consumption by roughly 60 percent after we rebuilt how it handles context, what it sends, and which model sees which job. The method is private and stays private; the figure is ours and the method behind it is not published, so treat it as a claim from an operator, not a benchmark. What we will say is that none of it was a discount. It was all discipline: less re-sending, fewer tokens per decision, cheaper models where the work did not need judgment.

What would change this verdict

December 1. Gemini 4 Carbon and Argon double to $4 and $20 per million. On the workload above, the same month goes from $436 to $872, and the cheapest frontier option in this table stops being cheap. If you are building a case on Gemini today, build it on the December number.

GLM-5.4 has no price. Z.ai’s page still stops at GLM-5.3, and its 5.4 documentation says the model API arrives after a security assessment. If 5.4 lands at the same rate, the middle of this table gets tighter.

DeepSeek Harness stabilises. If the plugin ecosystem settles and the breaking changes stop, it becomes the default open web-UI harness on price alone. Until then, 287,594 stars are a bet on attention, not on a working month.

Anthropic or OpenAI raise the caps. Every subscription argument here rests on limits that reset every 5 hours and every week. Ten more hours a week at the same price would move a large share of API spending back inside the subscription.

Aider wakes up, or does not. Aider is still the reference terminal pair programmer and has had no substantial change since May 2026. It stays out of the recommendation until it does.

Published 2026-11-26. All model prices, plan prices, star counts and download figures read from the providers and registries on 2026-11-26. The monthly figures are a stated cost model, not invoices. How we label numbers. Next scheduled re-verification 2026-12-26, or sooner if Gemini’s December 1 change lands differently.

What you probably want next

The Verdict

One decision, three numbers, every Friday.

A weekly email for people who have to choose where their AI workloads run. It ends a decision instead of starting one. No popups, no upsells, one click out.

Double opt-in. We store your email and the date you confirmed it, nothing else. Privacy.