OpenRouter Auto Code

A router that picks the model and reasoning level for coding on each request, depending on price, cache and provider health.

How to try it

  1. No code: open the OpenRouter chatroom and select Auto Router.
  2. In code, set `model: "openrouter/auto-code"` in a standard chat completions call with your OpenRouter key.
  3. To save money, add the setting `cost_tier: "low"` to the `auto-router` plugin, and use `allowed_models` to limit which models it can choose.
  4. Turn on router metadata to see why a particular model was chosen.

Price: no router fee; you pay the price of the model that responds

Official link

More new tools