Step 1: Install OpenCode
Install OpenCode by running the following command in your terminal:- Terminal CLI: Install via curl, npm, Homebrew, or system package managers
- Desktop app (Beta): Available for macOS, Windows, and Linux
- IDE extensions: Integrates with VS Code, Cursor, Zed, Windsurf, and VSCodium
- Platform integrations: Connect with GitHub and GitLab
Step 2: Launch OpenCode
Runopencodein your terminal to launch OpenCode:
Step 3: Configure SiliconFlow
- Connect to SiliconFlow: Enter
/connectin the OpenCode to open the API provider selection page - Select SiliconFlow: Choose
SiliconFlowfrom the available providers - Add API Key: Get your SiliconFlow API key and paste it when prompted
- Select Models: Run
/modelsto access powerful models including:deepseek-ai/DeepSeek-V3.2moonshotai/Kimi-K2-ThinkingMiniMaxAI/MiniMax-M2.1zai-org/GLM-4.7- And more
OpenCode Command Shortcut
Below is a quick reference of commonly used OpenCode commands and agents to help you navigate:| Command | Action | Description |
|---|---|---|
| /models | Switch Models | Access the list of available models and switch between them to suit specific tasks. |
| /new | New Session | Clear the current context and return to the main interface to start a new task session。 |
| /compact | Compress Context | Compress conversation history to reduce token usage while preserving key context. |
| /init | Built-in commands | Create or update AGENTS.md file. Learn more. |
| /undo | Undo Previous Message | Undo the last message in the conversation. Tip: Any file changes made will also be reverted. |
| /share | Create public links | Allows you to create public links to your OpenCode conversations, so you can collaborate with teammates or get help from others. NOTE: Shared conversations are publicly accessible to anyone with the link. |
| /exit | exit the app | Safely close the agent and return to your standard terminal. |