Discord Download

AutoRouter for Codex

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

AutoRouter in Codex What you get once Codex is turned on.
Pick it AutoRouter, in the model menu under the message box, or with /model in the CLI. It starts as Codex’s default model.
Plans Your ChatGPT plan through Codex’s own sign-in, and 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, Claude models included, to choose yourself
Rules Your plain-English rules decide a turn first
Cost per turn Every turn shows its model, what it cost and why
Web search Live web search, for every model
Works in The Codex app and the Codex CLI, on macOS 14 or later

Last updated November 20, 2026. See every supported app, or every coding agent in the terminal.

Set up Codex

Four steps on your Mac. The app writes Codex’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 Codex Click Enable on Codex’s row, in setup or in Settings, under Apps.

In Codex

  1. Restart Codex once AutoRouter asks when Codex needs a restart to load the new provider.
  2. Pick AutoRouter Start a new chat and choose AutoRouter from the model menu under the message box. In the CLI, run /model, or start with codex -m autorouter.

What changes in Codex

A marked block in Codex’s config. Turning Codex off in AutoRouter takes it out again.

One block in config.toml

AutoRouter writes its settings between marked lines in ~/.codex/config.toml, or the folder CODEX_HOME names: Codex’s own OpenAI provider pointed at api.autorouter.com, a model list with AutoRouter first, and live web search. It saves a copy of the file first, and the rest stays yours.

One profile for app and CLI

The Codex app and the Codex CLI read the same profile, so turning Codex on covers both. The address carries a credential tied to this Mac, which AutoRouter renews on its own and revokes when you sign out.

Your default comes back

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

Limits

  • Mac only, macOS 14 or later.
  • A task compacted while AutoRouter was on can’t be resumed in Codex after AutoRouter is removed.
  • It sometimes misjudges how hard a task is. Rate the pick, or choose a model yourself.

Questions

What people ask about AutoRouter in Codex.

Does AutoRouter work with Codex?

Yes. Turn Codex on in the AutoRouter Mac app and choose AutoRouter in Codex’s model menu. It works in the Codex app and the Codex CLI, on macOS 14 or later.

How do I pick AutoRouter in Codex?

In the app, start a new chat and choose AutoRouter from the model menu under the message box. In the CLI, run /model or start with codex -m autorouter. Choosing another model sends turns straight to it.

Which plans can I use in Codex?

OpenAI models run on your ChatGPT plan. You can also connect Claude, ChatGPT, Grok and Gemini plans in AutoRouter. Free connects two subscriptions and Pro connects any number. Models no plan covers run on credits, and no subscription is needed to start.

Can I use Claude models in Codex?

Yes. Connect your Claude plan in AutoRouter and pick a Claude model in Codex’s model menu, or let AutoRouter pick. How to use Claude in Codex and GPT in Claude Code walks through it.

What does AutoRouter change in config.toml?

It points Codex’s provider at api.autorouter.com, adds its model list and turns on live web search, after saving a copy of the file. Turning Codex off in AutoRouter’s settings switches it back. Codex model providers and config.toml, explained covers the keys involved.

Do I need to restart Codex?

Once, after you turn Codex on, so it loads the new provider. AutoRouter asks when it’s needed. Model list changes after that need no restart.

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 Codex

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

Download AutoRouter for Mac