switchllm
- 16CLIs detected
- 3operating systems
- 6static binaries
- 0runtimes to install
- 1command to undo
[x]Claude Code v2.1.0~/.claude/settings.json[x]OpenAI Codex CLI v0.48.0~/.codex/config.toml[ ]Gemini CLI v0.11.0plug in[x]OpenCode v1.2.7~/.config/opencode/opencode.json[x]Aider v0.86.2~/.aider.conf.yml[ ]Block Goose v1.13.0plug in[x]Crush v0.95.0~/.config/crush/crush.json[ ]Qwen Code v0.5.4plug in[ ]GitHub Copilot CLI v1.6.0plug in[ ]Cursor CLI v0.8.3plug inspace toggles · enter confirms · b opens switchllm backYour CLIs, your LLM. One command.
switchllm finds every AI coding CLI on your machine, points them at your own OpenAI-compatible or Anthropic endpoint, and backs up everything it touches.
OpenAI or Anthropic: probed, not guessed
A preview of every change before it is written
Timestamped backups of every file it touches
Verified through each real CLI before it finishes
Install on macOS and Linux
curl -fsSL https://switchllm.human01.xyz/install.sh | bash
How it works
Five stages from the first scan to the final smoke test. Nothing is written before you see it, and every run leaves a restore point behind.
Detect
It scans your machine and lists every AI coding CLI it finds, installed or not.
Point
Paste your base URL and API key. Ghost text shows the shape; it disappears once you start.
Probe
A few one-token requests tell switchllm whether your endpoint speaks OpenAI or Anthropic.
Patch
- env.OPENAI_BASE_URL = "https://api.openai.com/v1"
+ env.ANTHROPIC_BASE_URL = "https://…"
+ env.ANTHROPIC_AUTH_TOKEN = "sk-…"
backup → ~/.switchllm/backups/20261125-094107/opencode.jsonEach CLI gets its native config (settings.json, config.toml) after a preview you approve.
Verify
switchllm runs a one-line prompt through every configured CLI. Green before it says done.
The CLIs it knows
detected is on your machine. plug in is a CLI switchllm can install for you.
One settings entry points Claude at your endpoint. Permissions and MCP servers are left as they are.
config.toml gains a model provider block with your base URL and key.
switchllm installs it through your package manager, then points it at your endpoint.
switchllm writes a custom provider block (base URL, key, model) and leaves your themes, MCP servers and permissions exactly as they were.
The aider config gets model and api-base lines. Nothing else is rewritten.
goose config gets a provider block once the binary is on your PATH.
crush.json takes a custom provider with your base URL and model name.
Installed by switchllm, then configured in settings.json like the rest.
There is no config file to patch. switchllm writes environment variables instead.
cursor-agent reads its endpoint from the environment. switchllm sets it for your user.
Nothing is destroyed.
100%
reversible, switch back to any backed-up version
0
config files overwritten without a preview you approved
6
static binaries: windows, macOS, linux × amd64, arm64
16
CLIs known by name, by version and by config file
5s
endpoint probe timeout; nothing ever hangs or waits
1
one command to undo everything switchllm ever wrote
Three platforms,
one line each.
The command
curl -fsSL https://switchllm.human01.xyz/install.sh | bash
What it does
Downloads the right binary for your machine, verifies its SHA-256 checksum, and starts the wizard.
Requires
Nothing. One static binary, no runtime.
The command
curl -fsSL https://switchllm.human01.xyz/install.sh | bash
What it does
Downloads the right binary for your machine, verifies its SHA-256 checksum, and starts the wizard.
Requires
Nothing. One static binary, no runtime.
The command
irm https://switchllm.human01.xyz/install.ps1 | iex
What it does
Downloads the right binary for your machine, verifies its SHA-256 checksum, and starts the wizard.
Requires
Nothing. One static binary, no runtime.
16 CLIs in total. Six more: Amp, Droid, Amazon Q, Kilo Code, Warp, Cline.
Questions
-
Only the config files you approve. Each change is previewed as a diff, backed up with a timestamp, then written atomically. Nothing else is touched.
-
Yes. Every run is a restore point. Pick any earlier version in the TUI and switch back: files, environment variables and all.
-
Anything that speaks the OpenAI-compatible API or Anthropic Messages. switchllm probes your endpoint and writes the right shape for each CLI.
-
It stays on your machine, in your CLI's own config or your user environment. The tool never sends it anywhere but your endpoint.
-
Natively. No WSL, no Git Bash. There is a PowerShell one-liner and a static binary for every platform.
-
Yes, it is open source. It configures CLIs to use whatever endpoint you point it at.
One command. Everything plugged in.
It downloads one static binary, verifies its checksum and starts the wizard. One more command switches everything back.
curl -fsSL https://switchllm.human01.xyz/install.sh | bash