Installation
OpenCode loads server and TUI plugins from separate files. Add the same exact version to both locations.
Server configuration
Section titled “Server configuration”Add the package to ~/.config/opencode/opencode.json:
{ "$schema": "https://opencode.ai/config.json", "plugin": ["opencode-subagent-models@0.2.3"]}TUI configuration
Section titled “TUI configuration”Add the package to ~/.config/opencode/tui.json:
{ "$schema": "https://opencode.ai/tui.json", "plugin": ["opencode-subagent-models@0.2.3"]}Close every OpenCode process and start it again. OpenCode installs the pinned npm package during startup.
Verify
Section titled “Verify”- Open the command palette with
Ctrl+P. - Search for Global subagent model.
- Confirm that Session subagent model also appears.
- Open a conversation before using the session command.
If the commands are missing, continue to Troubleshooting.