Discord Download

AutoRouter for OpenCode

Turn OpenCode on in the AutoRouter Mac app and pick AutoRouter in OpenCode’s model picker. Each turn goes to the model that fits it, on the AI subscriptions you already pay for first. No API keys.

AutoRouter in OpenCode What you get once OpenCode is turned on.
Pick it AutoRouter, under the AutoRouter provider in /models. It starts as OpenCode’s default model.
Plans The Claude, ChatGPT, Grok and Gemini plans you connect in AutoRouter, used first
Models AutoRouter, which picks a model for each turn, plus AutoRouter’s other models to choose yourself. Images attach as they do today.
Rules Your plain-English rules decide a turn first
Cost per turn Every turn shows its model, what it cost and why
Your providers OpenCode’s own providers, sign-ins and models keep working beside AutoRouter
Works in The OpenCode CLI (1.x and 2.x) and OpenCode Desktop, on macOS 14 or later

Last checked November 19, 2026, with OpenCode 1.19.5, 2.3.0 and OpenCode Desktop 2.2.7. See every supported app.

Set up OpenCode

Four steps on your Mac. The app writes OpenCode’s config, so there is nothing to paste.

In AutoRouter

  1. Install the Mac app Download AutoRouter, signed and notarized by Apple. Sign in or create a free account, then connect your plans.
  2. Turn on OpenCode Click Enable on OpenCode’s row, in setup or in Settings, under Apps.

In OpenCode

  1. Pick AutoRouter Start a new session, run /models and choose AutoRouter. Or start with opencode -m autorouter/autorouter.
  2. Keep building OpenCode 2.x picks up the change on its own. Restart OpenCode 1.x or OpenCode Desktop once.

What changes in OpenCode

One provider in OpenCode’s config. Turning OpenCode off in AutoRouter takes it out again.

One provider, nothing else

AutoRouter adds an autorouter provider to ~/.config/opencode/opencode.json and lists AutoRouter first among its models. The rest of the file stays yours. A config kept in a dotfiles folder is written through its link.

No key in your config

The provider names a key file that only your Mac account can read, so a config you share or commit holds no secret.

Your default comes back

The first time, AutoRouter becomes OpenCode’s default model and remembers the one it replaced. A default you pick later stays yours. Turning OpenCode off, signing out or uninstalling puts your old default back.

Limits

  • Mac only, macOS 14 or later.
  • An opencode.json with comments can’t be edited safely, so AutoRouter leaves it alone and Settings says why.
  • It sometimes misjudges how hard a task is. Rate the pick, or choose a model yourself.

Questions

What people ask about AutoRouter in OpenCode.

Does AutoRouter work with OpenCode?

Yes. Turn OpenCode on in the AutoRouter Mac app and choose AutoRouter in /models. It works in the OpenCode CLI, 1.x and 2.x, and in OpenCode Desktop, on macOS 14 or later.

How do I pick AutoRouter in OpenCode?

Run /models and choose AutoRouter under the AutoRouter provider, or start OpenCode with -m autorouter/autorouter. AutoRouter is also OpenCode’s default model after you turn it on. Choosing another model sends turns straight to it.

Which plans can I use in OpenCode?

The plans you connect in AutoRouter: Claude, ChatGPT, Grok and Gemini. Free connects two subscriptions and Pro connects any number. Models no plan covers run on credits, and no subscription is needed to start.

Do my other OpenCode providers still work?

Yes. AutoRouter adds one provider. OpenCode’s own providers, sign-ins and models work as before, and only AutoRouter’s models go through AutoRouter.

What does AutoRouter change in my config?

It adds an autorouter provider to opencode.json and makes AutoRouter the default model the first time. Turning OpenCode off removes the provider and puts your old default back.

Do I need to restart OpenCode?

Not on OpenCode 2.x, which reloads its config when it changes. OpenCode 1.x and OpenCode Desktop read it when they start, so restart them once.

Does it work on Windows or Linux?

Not yet. AutoRouter is a Mac app for macOS 14 or later.

What does it cost?

Routing across your plans is free. Paid models bill at the provider’s price plus 10%. See pricing.

Pick AutoRouter in OpenCode

Install the Mac app, turn OpenCode on and keep building.

Download AutoRouter for Mac