cd /news/ai-agents/claude-vs-openrouter-auto-routing-on… · home › topics › ai-agents › article
[ARTICLE · art-180988] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Claude vs OpenRouter auto-routing on the same agent task, run from my Android phone

A developer ran the same open-ended agent task through Claude Code CLI and OpenRouter's auto-router (which selected google/gemini-4-neon) on a Samsung A54 phone running Termux, finding Claude finished in about 1 minute 50 seconds with 5 tool calls versus roughly 4 minutes 35 seconds and 50 tool calls for the OpenRouter run, at similar cost (~$0.52 vs ~$0.61). Neither run changed anything, but both flagged two earlier failed 'hi' messages; the OpenRouter run traced the bug to a chat-model filter that missed embedding-model prefixes like bge-, e5- and minilm, which the developer fixed by extending the NOT_CHAT list. The developer cautions the comparison is a single field note, not a benchmark, and that the OpenRouter run came second and could see Claude's answer in the conversation history.

recommendation

Treat single-run model comparisons as field notes, not benchmarks: run each model in a fresh session so later runs can't copy earlier answers from conversation history.

more in playbook: Controlling LLM cost
by read2 min views2 publishedDec 3, 2026

Last week I wrote about AXON, the AI agent I built entirely on my Android phone. A few readers asked which model I actually use. The honest answer: it depends on the job, so I let two engines do the same job and wrote down what happened.

This is one real run each, not a benchmark. Treat it as a field note.

AXON has several "engines" behind the same gateway (a small Python server in Termux). Two of them:

openrouter/auto. On this request the router picked google/gemini-4-neon Same phone (Samsung A54, Android 16), same gateway, same tools (shell, files, phone control through Accessibility, web search), same system instructions.

The task, typed in Romanian in the app:

"Check the app's capabilities and, if needed, propose improvements."

It's a good test because it is open-ended. The agent has to decide what to look at, run real checks and avoid inventing results.

Claude (Claude Code CLI) OpenRouter auto → Gemini 4 Neon
Wall-clock time ~1 min 50 s ~4 min 35 s
Cost ~$0.52 ~$0.61
Tool calls / action receipts 5 50
Prompt size at the end n/a ~77k tokens
Changed anything? No No

The time is measured from when the job was created to when it finished, from the gateway's own job journal.

Earlier in the same chat, two plain "hi" messages had failed with a bare HTTPError. Both agents noticed it. That made it the most interesting part of the comparison.

Claude worked fast and broadly:

bge-m3, an embedding model termux-battery-status hanging during the test. Gemini via OpenRouter worked slower and deeper:

NOT_CHAT in direct_providers.py) didn't know embedding-model prefixes like bge-, e5- and minilm. The OpenRouter run happened after the Claude run, in the same chat. So Gemini could see Claude's answer in the conversation history, including the bge-m3 diagnosis. It went further, all the way to the exact line of code, but it didn't start from zero. My wording also differed slightly between the two messages.

This is exactly the kind of thing that makes "model X beat model Y" posts misleading. I'm leaving it in on purpose.

The fix was boring, as fixes usually are. The filter got the missing prefixes:

NOT_CHAT = ("embed", "tts", "whisper", "audio", "image", "moderation", "rerank",
            "bge-", "bge_", "e5-", "gte-", "minilm", "mpnet", "paraphrase",
            "flux", "sdxl", "stable-diffusion", "clip", "ocr")

def is_chat_model(model_id: str) -> bool:
    return not any(x in model_id.lower() for x in NOT_CHAT)

Everything here was built and run on one phone: Termux, Python and a Java app compiled on the device. If you're doing something similar, or want something like this built, I'm on GitHub and I take freelance work through alecuweb.com/hire.

── more in #ai-agents 4 stories · sorted by recency
── more on @claude 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/claude-vs-openrouter…] indexed:0 read:2min 2026-12-03 · —