Local gateway · macOS + Linux

One endpoint.
Your run keeps going.

Point a compatible configurable chat-completions client at one local URL. When a provider rate-limits, times out, or fails before output begins, ReRouted moves to the next route member — your endpoint and route stay the same.

Binds to 127.0.0.1 by default. No hosted control plane. No ReRouted account. No Dock icon.
your-editor → 127.0.0.1:4949/v1 live
POST /v1/chat/completions "model": coding, "stream": true
route “coding” · fallbacktry in order ↓
1 C
Claude Sonnet
anthropic · oauth1
idle
2 G
GPT Codex
chatgpt · oauth2
idle
3 O
OpenRouter backup
api-key · fallback
idle
client keeps one endpoint and route 0 reroutes
Speaks the API your tools already speak editors agents scripts terminal tools chat-completions clients
The idea, in three moves

You already changed your mind about providers five times this week.

Your editor doesn’t care which account still has quota. So stop making it care. Put the decision in one place — and let it recover on its own.

1

Connect once

Import supported credentials already stored on your machine, connect an OAuth account, or paste an API key. Accounts and keys live side by side.

2

Point compatible clients here

Each configurable chat-completions client gets the same base URL — 127.0.0.1:4949/v1 — and one rr-… key. Switch providers inside ReRouted, not in every client.

3

Route on purpose

Make a route like coding: try models in order, or rotate across them. On a 429, 5xx, or timeout, it advances before output begins.

What you actually get

The part you’ve wanted.

One URL for compatible clients

Reconfigure providers inside ReRouted, not across each editor, agent, and script that supports chat completions.

Fallbacks you control

Your preferred model goes first. Your escape hatches wait behind it. You set the order.

Accounts & keys, together

OAuth logins, imported CLI credentials, and API keys coexist — with automatic sibling-account fallback for OAuth providers.

Traffic you can see

Requests, failures, token counts, routes, and logs — in the menu-bar panel on macOS or the matching dashboard on Linux.

Local by default

The gateway binds to localhost until you deliberately expose it to your network. Credentials are stored locally and sent only to the upstream services you choose.

Native or headless

No Dock icon on macOS. No desktop required on Linux. The same control plane runs as a menu-bar panel or at /dashboard/.

What connects

Bring the accounts you already pay for.

Browser OAuth, auto-detected CLI logins, or plain API keys. Multiple OAuth accounts of the same provider coexist and fall through automatically.

ChatGPT / Codex
Browser OAuth · local credential import
oauth
Claude
Browser OAuth · local credential import
oauth
Antigravity
Browser OAuth · token-file detect
oauth
xAI / Grok
Browser OAuth
oauth
OpenRouter
API key
api key
NVIDIA NIM
API key
api key
Cloudflare Workers AI
Account ID · API key
api key
GLM Coding
API key
api key

…plus custom upstreams that expose the supported OpenAI-style chat-completions shape.

Notice: This provider's subscription or OAuth session is not officially licensed for proxy or router use. Using it this way may result in account restrictions or bans. Proceed at your own risk. ReRouted is independent and is not affiliated with or endorsed by upstream providers.

Mac or Linux · three minutes to useful

Run one test. Done.

  1. Install & launch

    Open the Apple Silicon DMG, or install the Linux tarball with npm and run rerouted.

  2. Connect an account

    Import local credentials, connect OAuth, or add a key.

  3. Point your client here

    Copy the endpoint and generated rr-… key from Home.

linux install
npm install --global https://github.com/gitcommit90/rerouted/releases/latest/download/ReRouted-linux-node.tgz rerouted # terminal setup + /dashboard/
smoke test
curl http://127.0.0.1:4949/v1/chat/completions \ -H "Authorization: Bearer rr-your-generated-key" \ -H "Content-Type: application/json" \ -d '{"model":"coding","messages":[{"role":"user","content":"Say hello."}]}'

Implements GET /v1/models and POST /v1/chat/completions, streaming included. A focused gateway — not a full clone of every OpenAI API.

Connect once. Route on purpose.
Stop babysitting provider failures.

The gateway you keep meaning to build — in your menu bar or one headless command.