switch-config

Switch OpenCode model configurations by updating ~/.config/opencode/opencode.json.

1|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/khairulariffinka/codexen --skill switch-config
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: switch-config
Source: https://github.com/khairulariffinka/codexen/tree/main/core/skills/switch-config
Command: npx skills add https://github.com/khairulariffinka/codexen --skill switch-config

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams quickly switch between OpenCode model configurations to balance cost, speed, and quality across tasks.

Core Features & Use Cases

  • Manage multiple configuration presets (Free, Budget, Quality, Optimized)
  • Create or replace the file at ~/.config/opencode/opencode.json to apply the selected config
  • Restart OpenCode to apply changes and ensure settings take effect

Quick Start

Select a configuration option when prompted to switch, then restart OpenCode to apply changes.

Frequently Asked Questions about switch-config

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I switch OpenCode model configurations to balance cost and quality?

You can switch OpenCode model configurations by selecting a preset like Free, Budget, Quality, or Optimized. The skill writes your choice to ~/.config/opencode/opencode.json, applying the selected cost and performance settings after restarting OpenCode.

How do I change OpenCode settings for large projects without increasing API costs?

To manage costs on large projects, switch your OpenCode configuration to the Budget or Free preset. This updates ~/.config/opencode/opencode.json with cost-optimized model settings, requiring an OpenCode restart to take effect.

What OpenCode configuration presets are available for daily coding versus cost-sensitive work?

OpenCode configuration presets include Free, Budget, Quality, and Optimized. These presets target daily coding, large projects, and cost-sensitive work by adjusting model settings in the opencode.json file to balance speed, quality, and expense.

Why are my OpenCode model settings not updating after switching configurations?

OpenCode model settings require a restart to take effect. The skill creates or replaces ~/.config/opencode/opencode.json with your selected preset, but you must manually restart OpenCode for the new configuration to load.

Can I use OpenCode configuration presets to optimize performance for specific coding tasks?

Yes, you can optimize performance by switching to the Quality or Optimized preset for demanding tasks. The skill updates your opencode.json file to apply the selected model configuration, balancing cost and speed after an OpenCode restart.

Do I need to manually edit opencode.json to change my model configuration?

No, you do not need to manually edit opencode.json. The skill automatically writes or updates the file at ~/.config/opencode/opencode.json with your chosen preset, then instructs you to restart OpenCode to apply the changes.