Terminal UI for querying any OpenRouter model.
Query GPT-4o, Claude 3.5, Mistral, Llama, Gemini, and 200+ more — all from your terminal. Switch models mid-conversation, track costs per message, and get streaming markdown responses.
pip install switchboard-tui
switchboard
- 200+ models — every OpenRouter model in a searchable browser
- Streaming markdown — responses render as they arrive
- Switch models live —
Ctrl+Kto search and swap mid-conversation - Cost tracking — tokens used and estimated USD per message
- System prompt editor —
Ctrl+Sto set or change the system prompt - Free model highlights — free-tier models are clearly marked
pip install switchboard-tuiRequires Python 3.11+ and an OpenRouter API key.
export OPENROUTER_API_KEY=sk-or-...
switchboardOr pass a model directly:
switchboard --model openai/gpt-4o
switchboard --model anthropic/claude-3-5-sonnet --system "You are a senior Go engineer."| Shortcut | Action |
|---|---|
Ctrl+K |
Search and switch model |
Ctrl+N |
New conversation |
Ctrl+C |
Copy last response |
Ctrl+S |
Edit system prompt |
Ctrl+Q |
Quit |
Create ~/.config/switchboard/config.toml:
api_key = "sk-or-..."
[chat]
default_model = "anthropic/claude-3-5-haiku"
default_system_prompt = "You are a helpful assistant."
temperature = 0.7
max_tokens = 4096
[appearance]
theme = "dark"
show_cost = truedocker run -it --rm -e OPENROUTER_API_KEY=sk-or-... ghcr.io/suryanandx/switchboardApache 2.0 — see LICENSE.
Built by Suryanand Sunil · @Suryanandx · work@suryanand.com