OpenRouter ranked CLI coding agents using token traffic from October 4 through November 2, 2026, then compared median inference costs for sessions using the same model. The analysis measures adoption and cost, not code quality, and covers only traffic routed through OpenRouter.
Claude Code led dedicated coding agents with 44.69 trillion tokens, or 22.3% of CLI-agent traffic, up 74% from the prior 30 days. Kilo Code followed with 23.59 trillion, then pi with 16.58 trillion and Codex with 13.20 trillion. Hermes Agent, a general agent that also codes, led overall with 52.54 trillion tokens.
For sessions lasting 10 to 49 turns, the same-model median was 0.90 times Claude Code’s cost for Hermes Agent, 1.08 times for Codex, and 1.26 times for Kilo Code. Model selection created larger differences: a Claude Code session had a median cost of $0.024 on GPT-6 Luna and $1.331 on Claude Opus 5.5, about 55 times more.
The dataset excludes hidden and private apps, bring-your-own-key traffic, and activity outside OpenRouter, including Claude Code used through an Anthropic subscription. Provider tokenizers also differ, and the agents were not run side by side on identical tasks. OpenRouter therefore presents the rankings as usage and cost comparisons rather than evidence that one agent produces better code.