AutoRouter Windows alpha

AutoRouter brings your coding accounts into Codex, with automatic task routing and no paid model API fallback.

One place to work. An eligible account for each task.

How routing works

Ask AutoRouter to handle a task in Codex. Cloudflare Clef identifies its category and complexity; local rules select an enabled account with the required access.

C4 context: Codex, the local AutoRouter policy and agent, and separately metered Cloudflare Clef.
Your task stays coordinated in Codex. Classification runs on Cloudflare; the chosen agent uses its provider.

Routes can vary by task and complexity. Unavailable accounts are skipped before launch. Once a job starts, an error or exhausted allowance stops it rather than retrying another provider.

Your accounts, connected locally

Sign in with each provider’s own CLI. AutoRouter uses that access; it does not turn a free account into a paid subscription.

Every provider starts disabled. Confirm included access and turn off paid overages or top-ups before enabling an account. Availability and limits are set by the provider.

Set up in Codex

You’ll need Windows, PowerShell, Node.js 22.18+, pnpm, Codex with MCP support and an authenticated Cloudflare CLI. Install only the provider CLIs you intend to use.

Three setup blocks: prepare tools and sign in, configure the workspace and eligible accounts, then connect MCP and try a first task.
PowerShell
git clone https://github.com/sansynx/autorouter.git
Set-Location autorouter
pnpm install --frozen-lockfile

The repository is currently private. Cloning requires authorized GitHub access.

After connecting, select AutoRouter from Plugins and ask it to check status. Then try a read-only task. Read the full setup instructions for billing confirmations and troubleshooting.

Know the boundaries

AutoRouter is a local MCP integration. It runs when Codex calls its tools and does not add models to Codex’s native model picker.

Search AutoRouter