Tool Integration
OpenCode Configuration
OpenCode is better suited to the command-line and TUI format, and you can use CC-Switch to switch between different model providers in a unified way.
| 资源 | 地址 |
|---|---|
| OpenCode project | https://github.com/opencode-ai/opencode |
| CC-Switch | /docs/tools/cc-switch |
| APIshop Console | https://apishop.ai/console/overview |
核心能力
- Suitable for terminal workflows and scripted invocation
- You can use CC-Switch to switch providers in one place.
- Convenient for viewing available models in `/models`
步骤 1
Install OpenCode
- - First, complete the Node.js environment setup.
- - Install and launch the `opencode` TUI.
步骤 2
Configure CC-Switch
- - Point OpenCode's Provider to CC-Switch.
- - Let CC-Switch handle forwarding requests to APIshop.
步骤 3
Fill in APIshop information
- - Enter the APIshop Key in the provider.
- - Ensure the Base URL and authentication fields are correct.
步骤 4
Sync model list
- - Refresh `/models` in OpenCode.
- - Check whether the model can be read and invoked properly.
注意事项
- - OpenCode requires a stable Node.js environment.
- - If the model list is empty, first check the connectivity between CC-Switch and APIshop.