{"slug": "auto-code-open-router", "title": "Auto Code – Open Router", "summary": "OpenRouter released Auto Code, a router built specifically for coding agents and harnesses that uses the same routing engine as the Auto Router and treats every request as part of an agent session. Auto Code selects models by coding-task pass rate, completion time, and cost per solved task, tracking edits, test results, and recurring errors across turns to keep a model while work is going well and to try more reasoning effort before switching when trouble persists. The router has no fixed price of its own — each request is billed at the price of the model that serves it — and can route to models with context windows of up to 2,000,000 tokens, accepting text, images, audio, PDFs, and video as input and returning text and images.", "body_md": "Auto Code is OpenRouter’s router built specifically for coding agents and harnesses. It uses the same routing engine as the Auto RouterOpens in new tab, with every request treated as part of an agent session and model choices guided by coding-task pass rate, completion time, and cost per solved task.\n\nIt follows edits, test results, and recurring errors across turns, keeping the model while work is going well and trying more reasoning effort before switching when trouble persists. Its default coding tier starts from stronger models and weighs failed code changes more heavily. Your model and provider restrictions still apply.\n\nExplore actual agent usage and how the router chooses models for new work.\n\nAPI\n\nDrop-in code to call this model. OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. The only thing that changes between models is the model slug below.\n\nAuto Code is OpenRouter’s router built specifically for coding agents and harnesses. It uses the same routing engine as the Auto Router, with every request treated as part of an agent session and model choices guided by coding-task pass rate, completion time, and cost per solved task.\n\nWhere is the Auto Code documentation?\n\nThe Auto Code documentation on OpenRouter includes the Auto Router guide. The quickstart covers API keys and your first request, and the API reference lists every parameter.\n\nHow much does Auto Code cost?\n\nAuto Code has no fixed price of its own. Each request is billed at the price of the model that serves it, so your cost depends on which model the request is routed to.\n\nWhat is the context length of Auto Code?\n\nAuto Code can route to models with context windows of up to 2,000,000 tokens. The context length available to a request is that of the model that serves it.\n\nWhat inputs and outputs does Auto Code support?\n\nAuto Code accepts text, images, audio, files such as PDFs, and video as input and returns text and images.", "url": "https://wpnews.pro/news/auto-code-open-router", "canonical_source": "https://openrouter.ai/openrouter/auto-code", "published_at": "2026-11-05 21:55:54+00:00", "updated_at": "2026-11-05 22:20:57.601928+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "large-language-models", "developer-tools"], "entities": ["OpenRouter", "Auto Code", "Auto Router"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/auto-code-open-router", "markdown": "https://wpnews.pro/news/auto-code-open-router.md", "text": "https://wpnews.pro/news/auto-code-open-router.txt", "jsonld": "https://wpnews.pro/news/auto-code-open-router.jsonld"}}