跳到正文
OpenRouter:Announcements·精选AI 评分71

OpenRouter 按真实用量和成本排名 AI 编码智能体:Claude Code 居首,换模型比换智能体更省

AI Coding Agents Ranked by Real Usage and Cost

AI 导读

OpenRouter 依据 2026 年 10 月 4 日至 11 月 2 日的 token 用量排名其平台上的 CLI 编码智能体,Claude Code 以 44.69T token(占 22.3%,环比 +74%)居专用编码智能体首位,通用智能体 Hermes Agent 以 52.54T 总量最多。

推荐理由

OpenRouter 用 30 天真实 token 用量和同模型会话成本给 CLI 编码智能体排序,数据显示换模型对成本的影响远大于换智能体。

正文 · 原文

We ranked the CLI coding agents developers ran through OpenRouter by token use over 30 days, from October 4 to November 2, 2026, and then compared the median cost of a session in each agent at the same model.

The goal is to show which agents developers rely on most, and whether your agent or your model does more to decide what a session costs. The ranking measures adoption and cost, not the quality of the code an agent writes.

Tl;dr

  • Claude Code is the most used dedicated coding agent on OpenRouter, with 44.69 trillion tokens (22.3% of all CLI-agent tokens), up 74% on the previous 30 days.
  • Hermes Agent, a general agent that also codes, sent the most tokens overall at 52.54 trillion. Together, Hermes Agent and Claude Code accounted for 48.6% of the 200 trillion tokens CLI agents used.
  • In a 10 to 49 turn Claude Code session, switching from Claude Opus 5.5 to GPT-6 Luna cuts the median cost from $1.331 to $0.024, about 55 times less.
  • At the same model, the other three agents with published session costs come in at 0.90 to 1.26 times Claude Code’s median.
  • If you want to cut what a coding session costs, changing the model will do far more than changing the agent.

The most used AI coding agents on OpenRouter

The table ranks the seven dedicated coding agents in the top 10 CLI agents on OpenRouter. The last column is the median cost of a 10 to 49 turn session on GPT-6 Luna for the three agents that have published session-cost data.

RankAgent30-day tokens (share of CLI-agent tokens)Change vs prior 30 daysRequestsTokens per requestMedian session cost, GPT-6 Luna
1Claude Code44.69T (22.3%)+74%397.0M113k$0.024
2Kilo Code23.59T (11.8%)+24%233.9M101k$0.034
3pi16.58T (8.3%)+58%150.0M111kNot published
4Codex13.20T (6.6%)+50%190.2M69k$0.026
5Cline11.13T (5.6%)-37%116.1M96kNot published
6omp9.35T (4.7%)+4%62.4M150kNot published
7OpenHands2.91T (1.5%)+21%32.5M90kNot published

Source: OpenRouter (openrouter.ai/apps), as of 2026-11-03, licensed CC BY 4.0. Session costs: OpenRouter (openrouter.ai/rankings), as of 2026-11-02.

Three of the top 10 CLI agents aren’t in the table. Hermes Agent (52.54T, 26.3%, +4%) is first overall and OpenClaw (10.82T, 5.4%, +97%) is seventh, but both are general agents that do much more than write code. Strix (4.79T, +262%) is ninth, and it’s a security-testing agent. We cover all three after the coding agents.

Bar chart ranking top AI coding agents by 30-day token volume on OpenRouter.

Further down the list, Cursor is 13th with 1.25 trillion tokens, followed by Goose (18th), Qwen Code (21st), Crush (22nd) and Aider (31st). OpenCode didn’t appear among the 83 agents in this window.

How we ranked them

Usage comes from our public app rankings dataset, which you can query yourself at GET https://openrouter.ai/api/v1/datasets/app-rankings?subcategory=cli-agent. We pulled it on November 3, 2026, for October 4 to November 2 and for the 30 days before that, September 4 to October 3, to measure change. Tokens are prompt plus completion tokens, and hidden and private apps aren’t included. We counted an agent as a dedicated coding agent when coding is its main job.

Session cost comes from our session-cost dataset, the same data behind the session cost chart on our rankings page. Its 30-day window ended November 1, 2026, with 627 published cells. Each cell is one agent, one model and one session length (1 turn, 2 to 9 turns, 10 to 49 turns, or 50 or more turns). We take a weekly sample of paid sessions, leave out bring-your-own-key traffic and banned users, count at most five sessions per user, and publish a cell only once it has at least 200 sessions from at least 50 users. The cost covers model inference only, not web search or file tool charges. Each app defines what a session means, so we never pool sessions across apps. Four agents have published data so far: Claude Code, Codex, Hermes Agent and Kilo Code.

Keep three limits in mind. The data only covers traffic that goes through OpenRouter, so Claude Code on an Anthropic subscription and Cursor on its own models don’t count. Token counts come from each provider’s own tokenizer, so they don’t line up exactly across providers. And we didn’t run the agents side by side on the same task, which is why quality isn’t part of the ranking.

What does a session cost in each coding agent?

We compared the four agents model by model at 10 to 49 turns. Across the 38 models Hermes Agent shares with Claude Code, its median session cost is 0.90 times Claude Code’s. Codex comes in at 1.08 times across 11 shared models, and Kilo Code at 1.26 times across 19.

Chart comparing median session cost across coding agents running the same model.

The table shows the median cost of a 10 to 49 turn session in US dollars, next to each model’s price per million input and output tokens from our models API on November 3, 2026.

ModelPrice per 1M tokens (input / output)Claude CodeCodexHermes AgentKilo 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.30 / $1.20 peak, $0.15 / $0.60 off-peak$0.027$0.030$0.028$0.036
GLM 5.3 Flash$0.03 / $0.08$0.038$0.025$0.035$0.048
GLM 5.3$0.08 / $3.60$0.219$0.152$0.167$0.248
GPT-6.1 Sol$2.00 / $10.00$0.426$0.474$0.444$0.495
Gemini 4 Argon$2.00 / $10.00$1.246$1.105$0.806$1.052
Claude Sonnet 5.5$2.00 / $10.00$0.534Not 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.702Not published

Source: OpenRouter (openrouter.ai/rankings), as of 2026-11-02. Prices from the OpenRouter models API, pulled 2026-11-03.

In each row, the four agents usually cost about the same. Down each column, the cost climbs from a few cents to a few dollars, so the model decides most of what a session costs.

There are a few exceptions. Claude Haiku 5.5 costs $0.118 a session in Kilo Code, about four times the $0.029 in Hermes Agent. Codex costs $2.364 on Claude Opus 5.5, against $1.331 in Claude Code. Codex also isn’t the cheapest agent on any of the three OpenAI models in the table, though it’s the cheapest on both GLM models.

Longer sessions cost more, because every turn sends the conversation and file context again. At 50 or more turns, a Claude Opus 5.5 session has a median of $8.489 in Claude Code, $8.402 in Hermes Agent and $8.977 in Kilo Code, while GPT-6 Luna stays between $0.200 and $0.262 in all four agents. Codex stands out on GLM 5.3, where a long session costs $0.452 against $1.252 to $1.736 in the other three. For a wider view of the models developers use for coding, see our programming model rankings.

The top coding agents, one by one

1. Claude Code

Claude Code is Anthropic’s terminal coding agent. It’s the most used dedicated coding agent on OpenRouter and the top agent on our trending chart, and it added about 19 trillion tokens over the month, more than any other CLI agent. Developers run it on 44 models with published session costs, not only Anthropic’s. Of the ten models in the cost table, GPT-6 Luna is the cheapest to run it on.

2. Kilo Code

Kilo Code is an open-source coding agent. It’s second among dedicated coding agents, which makes it the most used Claude Code alternative on OpenRouter, and it’s second on the trending chart. It has session-cost data for 22 models, and its median at the same model is the highest of the four agents, at 1.26 times Claude Code’s.

3. pi

pi is a minimal open-source terminal coding agent. It grew 58% and moved from fifth to fourth among all CLI agents, with an average of 111k tokens per request. pi isn’t in the session-cost dataset yet, so there’s no measured cost per session to compare.

4. Codex

Codex is OpenAI’s coding agent. It grew 50% and climbed from seventh to fifth among all CLI agents, and it sends the smallest requests of the seven dedicated coding agents, at 69k tokens each. Developers run it on 23 models with published session costs, many of them from other labs. It’s the cheapest of the four agents on GLM models and the most expensive on Claude Opus 5.5.

5 to 7. Cline, omp and OpenHands

Cline is fifth, but it fell 37% and is the only top-10 CLI agent that shrank over the month. omp is sixth and sends the largest requests in the top 10, at 150k tokens each. OpenHands is seventh and grew 21%. None of the three has published session-cost data yet.

General and security agents: Hermes Agent, OpenClaw and Strix

Hermes Agent is an open-source agent from Nous Research. It keeps memory across sessions, writes reusable skills as it works, and ships with more than 40 tools, including web search, browser automation and subagents. It has session-cost data for 121 models, more than any other agent. It suits developers who want one long-running agent that codes alongside other work, and much of its traffic is likely not coding, so read its token count as the volume of a general agent.

OpenClaw is an open-source general agent that you talk to from messaging apps. It nearly doubled its volume over the month and doesn’t have published session-cost data yet. Strix, the autonomous security-testing agent, grew 262% to ninth among all CLI agents and has no session-cost data either.

Which AI coding agent fits your work?

Use this table to choose a starting agent, then use the cost table to choose the model you run in it.

If most of your work isStart withWhy
Terminal coding across a whole repositoryClaude CodeThe most used dedicated coding agent, with session-cost data on 44 models
One general agent that codes alongside other workHermes AgentMemory across sessions, more than 40 tools, and the lowest same-model session cost of the four agents
Trying a Claude Code alternativeKilo Code or CodexThe second and fourth most used dedicated coding agents, both growing and both with published session costs
Everyday sessions on a tight budgetAny of the four, on GPT-6 Luna or DeepSeek V4.1 FlashA 10 to 49 turn session has a median of $0.023 to $0.036 in every agent
Long sessions on GLM 5.3CodexA 50+ turn session has a median of $0.452, against $1.252 or more elsewhere

Run any of these agents on OpenRouter

Ori Harness runs seven of the top 10 CLI agents on OpenRouter with one command each: Hermes Agent, Claude Code, Kilo Code, pi, Codex, Cline and omp. Usage goes through your OpenRouter account, so you don’t need a separate provider key for each agent, and you can put any model from the cost table behind it. Install Ori, sign in through your browser, and start the agent you already use:

curl -fsSL https://openrouter.ai/labs/ori/install.sh | bash
ori login
ori claude

Swap ori claude for ori hermes, ori kilo, ori pi, ori codex, ori cline, ori omp or ori opencode, and add --model to pick the model, as in ori claude --model openai/gpt-6-luna. Ori starts the agent on your PATH and offers to install it if it’s missing. If you’d rather keep launching the agent yourself, ori harness setup codex writes OpenRouter settings into that agent’s own config (it also works for claude, cursor, droid and pi), and ori harness reset <agent> undoes it. Our posts on using OpenRouter with any coding agent and how Ori Harness works go into more detail.

Usage and cost data show what other developers run, but they can’t tell you which model does the best work on your code. To find that out, run two or three candidate models on a real task from your own repository and compare the results before you commit to one. With Ori Harness, each run only needs a different --model value.

Frequently asked questions

What is an AI coding agent?

An AI coding agent is a language model paired with a harness that lets it plan a task, read and edit files, run shell commands, and react to test results across a repository. Claude Code, Codex and Kilo Code are common examples.

Which AI coding agent is the most popular?

On OpenRouter, Claude Code is the most used dedicated coding agent, with 44.69 trillion tokens from October 4 to November 2, 2026. Hermes Agent, a general agent that also codes, sent more tokens overall, at 52.54 trillion.

Is Claude Code the best coding agent?

Claude Code is the most used dedicated coding agent on OpenRouter, and it added more tokens over the last 30 days than any other CLI agent. We didn’t compare code quality between agents, so the best way to decide is to test candidate models on your own repository.

What is the cheapest AI coding agent to run?

Of the four agents with published session costs on OpenRouter, Hermes Agent has the lowest median at the same model, at 0.90 times Claude Code’s. The model matters far more than the agent, though. On GPT-6 Luna or DeepSeek V4.1 Flash, a 10 to 49 turn session costs under 4 cents in every agent.

Does the agent or the model matter more for cost?

The model matters more. In Claude Code, moving from GPT-6 Luna to Claude Opus 5.5 raises the median cost of a 10 to 49 turn session about 55 times, from $0.024 to $1.331. Switching agents at the same model usually changes the cost by less than 2 times.

What are good Claude Code alternatives?

On OpenRouter, the most used dedicated coding agents after Claude Code are Kilo Code, pi and Codex, and all three grew over the last 30 days. Kilo Code and Codex also have published session costs, at 1.26 and 1.08 times Claude Code’s median at the same model. If you want one general agent that also codes, Hermes Agent is the most used option.

Can I use Codex with non-OpenAI models?

Yes. On OpenRouter, Codex has published session costs for 23 models, including Claude Opus 5.5, Gemini 4 Argon, GLM 5.3 and DeepSeek V4.1 Flash. Run ori codex, or ori harness setup codex, to point it at OpenRouter.

How often is this ranking updated?

The app rankings on OpenRouter update as traffic comes in, and the session-cost data refreshes weekly. The numbers in this post cover October 4 to November 2, 2026, and we’ll refresh them monthly.

来源:OpenRouter:Announcements · openrouter.ai