Skip to main content
OpenCode is one of the most powerful open-source AI coding agents available today. This guide walks you through integrating SiliconFlow APIs with OpenCode to leverage high-performance models in your development workflow.

Step 1: Install OpenCode

Install OpenCode by running the following command in your terminal:
*Note: This guide demonstrates CLI-based setup for quick integration. OpenCode also offers multiple installation options including desktop app, IDE extensions and platform integrations to fit different workflows:
  • 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
Visit OpenCode’s official download page for more details.

Step 2: Launch OpenCode

Runopencodein your terminal to launch OpenCode:

Step 3: Configure SiliconFlow

  • Connect to SiliconFlow: Enter /connect in the OpenCode to open the API provider selection page
  • Select SiliconFlow: Choose SiliconFlow from the available providers
  • Add API Key: Get your SiliconFlow API key and paste it when prompted
  • Select Models: Run /models to access powerful models including:
    • deepseek-ai/DeepSeek-V3.2
    • moonshotai/Kimi-K2-Thinking
    • MiniMaxAI/MiniMax-M2.1
    • zai-org/GLM-4.7
    • And more
You’re all set! Start coding with AI-powered assistance by asking OpenCode to help with your development tasks with SoTA models.

OpenCode Command Shortcut

Below is a quick reference of commonly used OpenCode commands and agents to help you navigate: For more details, please refer to the official OpenCode documentation.