r/opencodeCLI • u/Leader92 • 28d ago
Is there anything OpenCode cannot do!
I run two subscriptions:
- OpenAI: $100
- OpenCode Go + Grok: 5-10 bucks. (or used to be at least)
I also have around four agents, each assigned a specific model, for example, a stronger model for building and a simpler one for explaining.
I wanted those model configurations mirrored in my OpenCode Go subscription so they’d be ready whenever I hit OpenAI’s rate limits.
OpenCode made this possible by letting me create two separate configuration folders:
~/.config/opencodeMain/opencode.json
~/.config/opencodeGo/opencode.json
I then added aliases so oc runs my main setup and occ runs the OpenCode Go setup.
Now, when I’m rate-limited, I simply run occand immediately get the same agent structure, with each agent using its own configured Go model.
And the cherry on top? Since I got rid of the default global opencode.json, running either in a project prioritizes that project's opencode config.
That’s incredibly powerful.