OpenRouter compared coding agents and found the model decides the cost
With the same model, median session costs in four agents were usually close. Claude Code was the most-used dedicated coding agent, but the figures cover only traffic routed through OpenRouter.
OpenRouter published a comparison of command-line coding agents on its blog on 4 December. A coding agent is a program that gives a language model tools to edit files and run commands. OpenRouter provides access to models from different companies. The usage data covers the service’s traffic from 4 October to 2 November 2026. The comparison measures usage and cost, not the quality of the code the agents write.
OpenRouter calculated the median session cost for each combination of agent and model. The data is a weekly sample of paid sessions. It excludes blocked users and traffic that users pay for with their own provider key. The cost covers model inference only. Data has been published for four agents. OpenRouter notes that each application defines a session itself.
In Claude Code, a 10–49-turn session had a median cost of $1.331 with Claude Opus 5.5 and $0.024 with GPT-6 Luna. Long sessions cost more because the agent resends the conversation and file contents on every turn. An Opus session of 50 or more turns had a median of $8.489 in Claude Code, while a Luna session cost $0.200–0.262 in all four agents.
The table shows that with the same model, the agents’ costs are usually close. Depending on the model, a session costs from a few cents to a few dollars. There are exceptions. With Claude Haiku 5.5, a session cost $0.118 in Kilo Code, about four times as much as in Hermes Agent ($0.029). With Opus 5.5, it cost $2.364 in Codex but $1.331 in Claude Code.
| Model | Price / 1 million tokens (input / output) | Claude Code | Codex | Hermes Agent | Kilo Code |
|---|---|---|---|---|---|
| GPT-6 Luna | $0.10 / $0.50 | $0.024 | $0.026 | $0.023 | $0.034 |
| Claude Haiku 5.5 | $0.10 / $0.50 | $0.043 | $0.066 | $0.029 | $0.118 |
| DeepSeek V4.1 Flash | $0.15–0.30 / $0.60–1.20 | $0.027 | $0.030 | $0.028 | $0.036 |
| GPT-6.1 Sol | $2.00 / $10.00 | $0.426 | $0.474 | $0.444 | $0.495 |
| Claude Sonnet 5.5 | $2.00 / $10.00 | $0.534 | not published | $0.529 | $0.756 |
| Claude Opus 5.5 | $4.00 / $20.00 | $1.331 | $2.364 | $1.327 | $1.603 |
| GPT-6 Astra | $10.00 / $50.00 | $2.760 | $2.992 | $2.702 | not published |
Source: OpenRouter. Median cost of 10–49-turn sessions over the 30 days to 1 November 2026, inference only. Model prices from the OpenRouter API on 3 November 2026; DeepSeek’s price depends on the time of day.
The prices do not show whether a cheaper model does equally good work. OpenRouter advises trying two or three models on a real task in your own repository before choosing.
The most-used dedicated coding agent was Claude Code, with 44.69 trillion tokens. That is 22.3 per cent of all command-line agent tokens and 74 per cent more than in the previous 30-day period. The general-purpose Hermes Agent used more tokens, 52.54 trillion, but OpenRouter said much of that use is likely not coding. Kilo Code, pi and Codex followed. Of the ten most-used agents, only Cline saw its usage fall (down 37 per cent). The figures exclude Claude Code used through an Anthropic subscription and Cursor, which runs on its own models, because the data covers only traffic routed through OpenRouter.
OpenRouter’s Ori Harness tool can launch seven of the ten most-used agents through an OpenRouter account, with the model chosen separately.
Read more: How an agent works · Agent map