gitwtfhub

wtf is rerouted?

gitcommit90/rerouted — explained in plain English

Analysis updated 2026-05-18

4JavaScriptAudience · developerComplexity · 3/5LicenseSetup · moderate

TL;DR

A local router that lets AI coding tools automatically fall back between multiple accounts and providers when one hits a limit.

Mindmap

mindmap
  root((ReRouted))
    What it does
      Local AI router
      One endpoint
      Automatic fallback
    Tech stack
      JavaScript
      Node.js
      Electron menu bar
    Use cases
      Fallback on quota limit
      Combine multiple accounts
      Point tools at localhost
    Audience
      Developers
      AI power users
    Notes
      MIT license
      Local first, no cloud

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Automatically fall back to a backup AI account when your primary one hits a rate limit.

REASON 2

Point multiple coding tools and agents at one local endpoint instead of managing separate API keys.

REASON 3

Combine OAuth accounts and API key providers into a single named route like coding or fast.

REASON 4

Run a local AI gateway that keeps working even when one upstream provider is down.

What's in the stack?

JavaScriptNode.jsElectronOpenAI APIAnthropic API

How it stacks up

gitcommit90/reroutedamirmahdavi2023/d1-adminanil-matcha/open-poe-ai
Stars444
LanguageJavaScriptJavaScriptJavaScript
Last pushed2026-06-25
MaintenanceActive
Setup difficultymoderateeasymoderate
Complexity3/52/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 30min

Requires macOS 12+ on Apple Silicon or Node.js 22.13+ on Linux, plus at least one connected AI account or API key.

Free to use, modify, and distribute, including commercially, as long as you keep the original copyright notice.

Wtf does this do

ReRouted is a local AI router for macOS and Linux that sits between your coding tools and the AI providers you use, such as ChatGPT, Claude, or OpenRouter. Instead of hard-coding a specific account or provider into every editor, script, or agent you use, you point them all at one local address, and ReRouted decides which underlying account and model actually handles each request. The core problem it solves is what happens when an AI account runs out of quota, a provider has an outage, or you simply want to swap models. Normally you would have to go into each tool's settings and change the API key or endpoint. With ReRouted, you define a named route, for example one called coding, that lists a preferred model first, a second account as backup, and a third provider as a last resort. When the first option hits a rate limit, times out, or fails in a way that can be retried, ReRouted automatically moves to the next one in the list, without your editor or script noticing anything changed. ReRouted can connect OAuth based accounts like ChatGPT, Claude, and xAI, as well as API key based services like OpenRouter, NVIDIA NIM, and Cloudflare. It can also import credentials that are already stored on your machine instead of making you re-enter them. Everything runs locally: on macOS it lives in the menu bar alongside a status panel, and on Linux it runs as a headless process with a web dashboard for setup and monitoring. Routes can either try providers strictly in order or rotate which one goes first on each request while still falling back if needed. The project speaks the same request formats used by OpenAI and Anthropic clients, so tools built for either of those APIs can talk to ReRouted without modification. It is released under the MIT license and is not affiliated with any of the AI providers it connects to. The README notes that using some subscription based accounts this way may violate that provider's own terms, so it is worth reading their policies first.

Yoink these prompts

Prompt 1
Help me set up ReRouted on macOS and connect my Claude and ChatGPT accounts.
Prompt 2
Explain how ReRouted's fallback routing works when a provider rate limits me.
Prompt 3
Walk me through creating a named route called coding with a backup provider.
Prompt 4
Show me how to point Claude Code at my local ReRouted gateway.
Prompt 5
Help me run ReRouted as a persistent systemd service on Linux.

Frequently asked questions

wtf is rerouted?

A local router that lets AI coding tools automatically fall back between multiple accounts and providers when one hits a limit.

What language is rerouted written in?

Mainly JavaScript. The stack also includes JavaScript, Node.js, Electron.

What license does rerouted use?

Free to use, modify, and distribute, including commercially, as long as you keep the original copyright notice.

How hard is rerouted to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is rerouted for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.