What is OpenRouter Auto Code?
Auto Code is OpenRouter's router for coding agents and harnesses. The docs page says the model id is openrouter/auto-code. It uses the same routing engine as the general Auto Router (openrouter/auto), with a policy aimed at coding work: it starts in a higher cost tier that includes stronger coding models, it weighs speed more heavily, and it penalizes failures more harshly so a repeated test failure changes the next pick sooner.
The general router is the one for mixed traffic. Auto Code is the one for a coding harness. The existing directory page for the gateway itself is OpenRouter. This page is only the coding router. It is listed in Open-Source AI Developer Stack next to the self-hosted routers 9Router and OmniRoute. Those two are software you run. Auto Code is a slug on OpenRouter.
Key Features
The docs describe five steps. Guardrails, zero data retention, model capabilities, provider restrictions, BYOK keys, and your allowed and excluded model lists narrow the pool. A decision model rates the turn. The policy weighs measured pass rate, speed, and cost per solved task, plus live prices and cache status. The request then uses the same provider routing a direct call to that model would. On the next turn, Auto Code prefers a change of reasoning effort over a model switch, so the prompt cache can stay warm, and it switches models when failure signals say the model is the problem.
allowed_models and excluded_models on the auto-router plugin are hard restrictions. If the lists leave no eligible model, the docs say the request fails with 404 and names the fields to change. Auto Code ignores that plugin's cost_tier and stays on its coding tier. To force a general tier, the docs say to set cost_tier to low, medium, or high on a jev-router plugin entry.
Send session_id, or the x-session-id header, so the turns of one agent session stay one conversation. Send X-OpenRouter-Metadata: enabled to read which model and effort were chosen.
The 6 November 2026 announcement, by Brian Thomas, is OpenRouter's own measurement. It says that across five coding benchmarks Auto Code scores in line with Claude Opus 5.5 while costing 74% less per task, and that the routing step in a live test was 0.65 seconds at p90 against 1.96 seconds for the previous router. Those figures are the vendor's. This page does not repeat them as an independent benchmark.
How to Access
Set model to openrouter/auto-code on https://openrouter.ai/api/v1/chat/completions. The docs say you pay the standard price of whichever model serves the request. Auto Code does not add a fee. There is no separate free tier for the router on that page. The OpenRouter profile is where the gateway's free model routes are described. A route Auto Code picks can still be a paid model.
The response model field tells you which model served that turn. Read it before you attribute a result to a single checkpoint.