Models v2026.9.0 (CalVer) OpenCode v2.0.16 MIT

Model Switcher

Slash commands that switch provider and model mid-session, resolved against the live model catalog.

#models#providers#commands

Quick Answer & Overview

Model Switcher is an open-source (MIT) OpenCode V2 plugin by @JadMadi. It resolves: Mid-session model choice is manual: you need the exact provider and model id, and there is no quick view of what fits an intent such as free, cheap, fast, or vision.. Installed via opencode plugin add github:jadmadi/opencode-model-switcher, it operates locally with 0% telemetry.

Quick Install via OpenCode V2 Git Distribution
opencode plugin add github:jadmadi/opencode-model-switcher

Local manual setup:

Copy model-switcher.ts into ~/.config/opencode/plugins/ and restart the TUI.

The Problem It Solves

Mid-session model choice is manual: you need the exact provider and model id, and there is no quick view of what fits an intent such as free, cheap, fast, or vision.

Slash Commands

Slash commands registered by Model Switcher
Command Description & Usage
/model Show the current model and switch by reference or group.
/free Cycle models that cost nothing.
/cheap Cycle paid models, cheapest first.
/think Cycle reasoning models.
/vision Cycle models that accept images.
/long Cycle models with a 400k+ context window.
/newest Cycle the newest models.
/muse Cycle Muse models.
/glm Cycle GLM models.
/nvid Cycle NVIDIA models.

Design Guardrails & Limitations

The command set and pins come from ~/.config/opencode/model-switcher.json. No model ids are hard-coded.

Technical Specifications

Target Host
OpenCode V2 (CLI & TUI)
Tested Runtime
OpenCode v2.0.16 (builtUnder-2.0.16)
Artifact File
model-switcher.ts
Version Scheme
CalVer (YYYY.MM.MICRO) · Current: v2026.9.0
Default Install Path
~/.config/opencode/plugins/model-switcher.ts
License
MIT (Open Source)
Last Updated
2026-09-25

Frequently Asked Questions

What problem does Model Switcher solve?

Mid-session model choice is manual: you need the exact provider and model id, and there is no quick view of what fits an intent such as free, cheap, fast, or vision.

How do I install Model Switcher in OpenCode V2?

Run the terminal command: `opencode plugin add github:jadmadi/opencode-model-switcher`. The runtime clones the repository into `~/.config/opencode/plugins/model-switcher.ts` and activates it in your next session. Alternatively: Copy model-switcher.ts into ~/.config/opencode/plugins/ and restart the TUI.

What are the guardrails and limitations for Model Switcher?

The command set and pins come from ~/.config/opencode/model-switcher.json. No model ids are hard-coded.

What slash commands does Model Switcher provide?

/model (Show the current model and switch by reference or group.); /free (Cycle models that cost nothing.); /cheap (Cycle paid models, cheapest first.); /think (Cycle reasoning models.); /vision (Cycle models that accept images.); /long (Cycle models with a 400k+ context window.); /newest (Cycle the newest models.); /muse (Cycle Muse models.); /glm (Cycle GLM models.); /nvid (Cycle NVIDIA models.)