x

Smart routing layer for OpenCode

Less noise. Clearer flow.

Mux balances multiple API keys and models for you, so you stay focused on writing code.

$ curl -fsSL .../install | bash
0
requests routed
0
active users
0.97%
uptime
0ms
avg latency

Platforms

Keep the same flow everywhere

Use one routing logic from terminal to IDE.

Terminal

Manage keys and models with slash commands.

macOSLinuxWindows

Desktop

Track sessions while routing keeps running in the background.

Native appSession viewBuilt-in mux

Web

Connect from any browser and share sessions safely.

Any browserShareableRemote

IDE

Work directly from your editor while mux handles routing.

VS CodeCursorWindsurf

Playground

Add routing without changing your terminal flow

Mux handles key switching, fallback, and status tracking in the background.

  • Auto key switching
  • Model fallback
  • Live cost and status
mux
$

Routing

Live routing visibility

See the active key and model in one panel.

live1,842 req
request
claude-3.5-sonnet
sk-or-a1b2...
sk-or-c3d4...
sk-or-e5f6...
routing:sk-or-a1b2...toclaude-3.5-sonnet

Features

Clear, thin, and production-ready

Auto key switch

Automatically switches active keys when credits run low.

Model fallback

Moves to fallback models when your primary model is unavailable.

Live status

See key, model, and usage state in real time.

Thin config

No heavy config setup after installation.

Cost aware

Balances model selection with cost efficiency.

No downtime

Keeps requests moving instead of failing on a single key.

How it works

Setup in four steps

01

Install

Complete setup with one command.

02

Add keys

Use `/mux keys` to add your OpenRouter keys.

03

Set models

Choose primary and fallback models for routing.

04

Ship

Focus on coding while mux handles routing operations.

Keep your pace, not your limits.

Install mux and leave routing operations in the background.