openrouter のファビコン

Auto Code

openrouter/auto-code

Auto 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.

It 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.

ライブルーティング

エージェントの実際の使用状況と、ルーターが新しいタスクに使うモデルを選択する仕組みを確認できます。

API

このモデルを呼び出すために、そのまま使えるコードです。OpenRouter の API は OpenAI 互換のため、ほとんどの SDK はベース URL を変更するだけで動作します。モデル間で変わるのは、下記のモデルスラッグだけです。

現在、EU 域内ルーティングでは利用できません。 リージョン内ルーティングのドキュメント

ドキュメント

OpenRouter で Auto Code を使った開発に役立つガイド、クックブック、ブログ記事、ツールです。

よくある質問