ModelSwap ModelSwap User Manual English中文
☰ Chapters

9. Agent Configuration & Model Switching

Agent configuration page

ModelSwap adapts 10 agents: Claude Code, ChatGPT (Codex), Kimi Code, WorkBuddy, Hermes, OpenCode, OpenClaw, ZCode, Grok, MiMo Code. Find them in the Agent configuration area of the Quick Start page: a row of agent tabs up top, with site cards for the selected agent below.

9.1 Two kinds of agents

9.2 Switch a model

  1. Click an agent tab (agents not detected on your machine show a grey dot; tabs can be drag-sorted)
  2. Click a site card to expand its model list
  3. Click a model chip to switch (the current model is highlighted and not clickable)

ModelSwap writes the config files (settings.json, config.toml, …) correctly on its own — no manual editing needed.

Surgical writes: ModelSwap only touches the fields it owns — your own hooks, statusLine, MCP settings are preserved as-is. Every switch takes a config snapshot first (see chapter 12) and rolls back automatically if the write fails.

9.3 Add a site

  1. Click + Add site at the right of the section title
  2. The dialog lists all ready providers (platforms already configured and authenticated per chapter 7); search and check the ones you want
  3. Pick models: search by name/ID, multi-select (non-coding models carry a "non-coding" tag to prevent mismatches); hit Refresh to pull the platform's latest model list on the spot
  4. Click Save models — ModelSwap validates routing and auth, then writes the agent config

Add site: check the ready providers

9.4 View / edit config files

Click View config (the file icon) at the top right of the section:

Config file viewer: sensitive values masked by default

9.5 Manage sites

9.6 Switch from the CLI

modelswap provider switch            # interactive switch (agent optional)
modelswap provider use <provider> --agent codex --model <model-id>   # non-interactive, script/CI friendly
modelswap provider current           # current config of all agents

9.7 Notes