1) Configure OpenCode
Install OpenCode from its official release, then use the Phaseo CLI to add a global provider, sync all compatible Phaseo models, and store a dedicated key in OpenCode’s credential store:Phaseo CLI: OpenCode API Key that expires after 90 days and has a $100 monthly spend limit (run phaseo opencode again to replace an expired key), preserves unrelated OpenCode settings and credentials, and supports --dry-run. It updates an existing global opencode.jsonc when present, otherwise it uses ~/.config/opencode/opencode.json.
Use --catalog default to configure only the selected model.
The CLI retains its own copy in the OS credential store and revokes the key when you run phaseo integrations remove opencode.
Manual configuration
Create or updateopencode.json in your project, or your global OpenCode config:
models object to match the Phaseo model ids you want in OpenCode.
2) Start OpenCode
Restart OpenCode after editing the config, then choose the Phaseo model from/models.
Remove only the Phaseo provider later with:
Verification
- Run a small prompt before using file-editing workflows.
- If a model is rejected, confirm the exact id with the Models endpoint.
- If authentication fails, rerun
phaseo opencodeand checkopencode auth list.