Claude Code is the most used of the AI coding agents running through OpenRouter, with 44.69 trillion tokens between October 4 and November 2, 2026. That is 22.3% of all tokens sent by command-line agents, and 74% more than the previous 30 days. The bigger finding is about money: the model behind an agent sets a session’s price far more than the agent does.
Who leads the usage table
Hermes Agent, a general-purpose agent that also writes code, led all CLI agents with 52.54 trillion tokens, a 26.3% share. The two of them made up 48.6% of the roughly 200 trillion tokens CLI agents consumed.
Among agents built mainly for coding, the order runs like this:
- Claude Code, Anthropic’s terminal agent, is first. It added about 19 trillion tokens in a month, more than any other CLI agent, and developers run it on 44 models.
- Kilo Code, an open-source agent, is second, which makes it the busiest alternative to Claude Code.
- pi, a minimal open-source terminal agent, rose 58% and went from fifth to fourth among all CLI agents. Its requests average 111k tokens.
- Codex, OpenAI’s agent, gained 50% and jumped from seventh place to fifth. Its 69k-token requests are the smallest of the seven.
Cline sits fifth among coding agents but fell 37%, the only top-10 CLI agent to shrink. Two other general agents rank high as well: OpenClaw is seventh overall at 10.82 trillion tokens (up 97%), and Strix, a security-testing agent, is ninth at 4.79 trillion (up 262%). Cursor ranks 13th at 1.25 trillion tokens, while OpenCode is absent from the 83 agents counted.

What a session costs
Only four agents have published session costs: Claude Code, Codex, Hermes Agent and Kilo Code. Each was compared on the same model, using the median session of 10 to 49 turns.
Hermes Agent shares 38 models with Claude Code, and its median session costs 0.90 times as much on them. Codex lands at 1.08 times over 11 shared models. Kilo Code lands at 1.26 times over 19. So the agents land within about a quarter of each other.
The model is a different story. Take a mid-length Claude Code session of 10 to 49 turns. Running it on GPT-6 Luna instead of Claude Opus 5.5 brings the median bill down to $0.024 from $1.331, about 55 times cheaper. Down the cost table, prices rise from cents to dollars as the model gets pricier. Across a row, they barely change.

Where the agents differ
There are exceptions. Claude Haiku 5.5 shows the clearest gap: a Kilo Code session runs $0.118 versus $0.029 in Hermes Agent, about four times more. On Claude Opus 5.5, Codex charges $2.364 where Claude Code charges $1.331. Codex does win on both GLM models, yet it is cheapest on none of the three OpenAI models listed.
Length matters too, since each turn resends the conversation and file context. Once a session passes 50 turns, the Claude Opus 5.5 median is $8.489 in Claude Code, $8.402 in Hermes Agent and $8.977 in Kilo Code. GPT-6 Luna holds between $0.200 and $0.262 in all four. Codex stands out on GLM 5.3: a long session costs $0.452, while the other three charge $1.252 to $1.736.

How the numbers were built
Usage means prompt plus completion tokens from public app rankings, with hidden and private apps left out. An agent counts as a coding agent when coding is its main job. For cost, the data takes a weekly sample of paid sessions and drops bring-your-own-key traffic and banned users. No user contributes more than five sessions, and a cell appears only after 200 sessions from 50 different users. Costs cover model inference alone.
The limits are real. Anything that bypasses OpenRouter is invisible here, including Claude Code on an Anthropic subscription and Cursor on its own models. Each provider’s tokenizer counts differently, so totals don’t line up exactly. And the agents never ran head to head on one task, so the ranking says nothing about code quality.
What developers can do with this
If the goal is a smaller bill, change the model before changing the agent. A cheaper model cuts the cost by an order of magnitude or more, while switching agents at the same model moves it by 10% to 26% in these numbers.
Watch the agents without cost data too. pi is climbing fast but has no measured cost per session yet, and more agents should enter the dataset as they reach the sample thresholds. For now, the numbers show where developers are spending their tokens, and that is mostly on a handful of terminal agents.
Source: OpenRouter Blog