{"slug": "claude-vs-openrouter-auto-routing-on-the-same-agent-task-run-from-my-android", "title": "Claude vs OpenRouter auto-routing on the same agent task, run from my Android phone", "summary": "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.", "body_md": "Last week I wrote about [AXON, the AI agent I built entirely on my Android phone](https://dev.to/alecu382/i-built-an-ai-agent-that-runs-entirely-on-my-android-phone-termux-python-3hf1). 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.\n\nThis is **one real run each, not a benchmark.** Treat it as a field note.\n\nAXON has several \"engines\" behind the same gateway (a small Python server in Termux). Two of them:\n\n`openrouter/auto`. On this request the router picked `google/gemini-4-neon`\nSame phone (Samsung A54, Android 16), same gateway, same tools (shell, files, phone control through Accessibility, web search), same system instructions.\n\nThe task, typed in Romanian in the app:\n\n\"Check the app's capabilities and, if needed, propose improvements.\"\n\nIt'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.\n\n|  | Claude (Claude Code CLI) | OpenRouter auto → Gemini 4 Neon | \n|---|---|---|\n| Wall-clock time | ~1 min 50 s | ~4 min 35 s | \n| Cost | ~$0.52 | ~$0.61 | \n| Tool calls / action receipts | 5 | 50 | \n| Prompt size at the end | n/a | ~77k tokens | \n| Changed anything? | No | No | \n\nThe time is measured from when the job was created to when it finished, from the gateway's own job journal.\n\nEarlier 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.\n\n**Claude** worked fast and broadly:\n\n`bge-m3`, an embedding model` termux-battery-status` hanging during the test.\n**Gemini via OpenRouter** worked slower and deeper:\n\n`NOT_CHAT` in `direct_providers.py`) didn't know embedding-model prefixes like `bge-`, `e5-` and `minilm`.\nThe 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.\n\nThis is exactly the kind of thing that makes \"model X beat model Y\" posts misleading. I'm leaving it in on purpose.\n\nThe fix was boring, as fixes usually are. The filter got the missing prefixes:\n\n```\n# models that can't hold a conversation (embeddings, TTS, image, rerankers...)\nNOT_CHAT = (\"embed\", \"tts\", \"whisper\", \"audio\", \"image\", \"moderation\", \"rerank\",\n            \"bge-\", \"bge_\", \"e5-\", \"gte-\", \"minilm\", \"mpnet\", \"paraphrase\",\n            \"flux\", \"sdxl\", \"stable-diffusion\", \"clip\", \"ocr\")\n\ndef is_chat_model(model_id: str) -> bool:\n    return not any(x in model_id.lower() for x in NOT_CHAT)\n```\n\n*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](https://github.com/Alecu382) and I take freelance work through [alecuweb.com/hire](https://alecuweb.com/hire/).*", "url": "https://wpnews.pro/news/claude-vs-openrouter-auto-routing-on-the-same-agent-task-run-from-my-android", "canonical_source": "https://dev.to/alecu382/claude-vs-openrouter-auto-routing-on-the-same-agent-task-run-from-my-android-phone-4mmo", "published_at": "2026-12-03 12:37:17+00:00", "updated_at": "2026-12-03 12:46:53.606032+00:00", "lang": "en", "topics": ["ai-agents", "large-language-models", "ai-tools"], "entities": ["Claude", "OpenRouter", "google/gemini-4-neon", "Anthropic", "Google", "Termux", "Samsung A54", "AXON"], "also_reported_by": [], "takeaway": "In a single phone-hosted agent run, Claude Code CLI completed the task in ~1 min 50 s with 5 tool calls versus ~4 min 35 s and 50 tool calls for OpenRouter's auto-routed Gemini 4 Neon, at similar cost (~$0.52 vs ~$0.61).", "recommendation": {"advice": "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.", "playbook": "llm-cost", "playbook_url": "https://wpnews.pro/playbooks/llm-cost"}, "alternates": {"html": "https://wpnews.pro/news/claude-vs-openrouter-auto-routing-on-the-same-agent-task-run-from-my-android", "markdown": "https://wpnews.pro/news/claude-vs-openrouter-auto-routing-on-the-same-agent-task-run-from-my-android.md", "text": "https://wpnews.pro/news/claude-vs-openrouter-auto-routing-on-the-same-agent-task-run-from-my-android.txt", "jsonld": "https://wpnews.pro/news/claude-vs-openrouter-auto-routing-on-the-same-agent-task-run-from-my-android.jsonld"}}