This integration guide is compatible with macOS and Linux systems. Windows users should use WSL (Windows Subsystem for Linux).
Overview
Claude Code is a command-line AI assistant that helps with coding tasks. By integrating it with SiliconFlow, you can access powerful AI models for code generation, debugging, and analysis directly from your terminal.Prerequisites
- macOS or Linux operating system (or WSL on Windows)
- Terminal access with bash shell
- Valid SiliconFlow API key (Get your API key)
- Internet connection for downloading the setup script
Method 1: Automated Setup (Recommended)
Step 1: Run the Installation Script
Execute the automated setup script in your terminal:Step 2: Configure API Authentication
When prompted, enter your SiliconFlow API key:
Step 3: Select AI Model
Choose your preferred model using the arrow keys, or select Custom to specify your own model:
Step 4: Apply Configuration
Follow the on-screen instructions to finalize the setup:- Copy the provided command
- Restart your terminal session
- Run the copied command to apply the configuration

Step 5: Start Using Claude Code
Launch Claude Code with the following command:Method 2: Manual Configuration
For advanced users who prefer manual setup or need custom configurations:Environment Variables Setup
Configure the required environment variables in your shell profile (.bashrc, .zshrc, or .profile):