Agent skill
opencode-config
Switch OpenCode AI model configurations between providers. Use when user says "switch to copilot", "cambiar a copilot", "switch to anthropic", "cambiar a anthropic", "switch to zen", "cambiar a zen", or asks to change AI model providers.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/opencode-config
SKILL.md
OpenCode Model Config Switching
Config location: ~/.config/opencode/oh-my-opencode.json
Templates tracked in .opencode-configs/:
| Config | Providers | Cost Profile |
|---|---|---|
anthropic-only.json |
Anthropic only (Opus/Sonnet/Haiku) | $$ |
anthropic-zen.json |
Anthropic (heavy) + Zen free models (light) | $ (needs Zen free tier) |
anthropic-openai.json |
Anthropic + OpenAI direct | $$$$ |
copilot-antigravity.json |
GitHub Copilot + Antigravity | $$$ |
Commands
Switch to Anthropic Only (recommended when other providers exhausted):
cp .opencode-configs/anthropic-only.json ~/.config/opencode/oh-my-opencode.json && echo "Switched to Anthropic Only. Restart OpenCode."
Switch to Anthropic + Zen Free (budget, needs Zen free tier):
cp .opencode-configs/anthropic-zen.json ~/.config/opencode/oh-my-opencode.json && echo "Switched to Anthropic + Zen Free. Restart OpenCode."
Switch to Copilot + Antigravity:
cp .opencode-configs/copilot-antigravity.json ~/.config/opencode/oh-my-opencode.json && echo "Switched to GitHub Copilot + Antigravity. Restart OpenCode."
Switch to Anthropic + OpenAI:
cp .opencode-configs/anthropic-openai.json ~/.config/opencode/oh-my-opencode.json && echo "Switched to Anthropic + OpenAI. Restart OpenCode."
Remind user to restart OpenCode after switching.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?