### Install Dependencies and Package Source: https://github.com/dashscope/claude-code-config/blob/main/README.zh-CN.md Installs the necessary prerequisite packages ('claude-code' and 'claude-code-router') globally, followed by the global installation of the '@dashscope-js/claude-code-config' package from npm. Alternatively, it shows how to install from source. ```Bash # Install claude-code npm install -g @anthropic-ai/claude-code # Install claude-code-router npm install -g @musistudio/claude-code-router # Install from npm repository npm install -g @dashscope-js/claude-code-config # OR Install from source git clone https://github.com/dashscope/claude-code-config.git cd claude-code-config npm install npm install -g . ``` -------------------------------- ### Install DashScope Code Config from Source Source: https://github.com/dashscope/claude-code-config/blob/main/README.md Installs the package from its source code by cloning the repository, installing dependencies, and then installing the package globally. ```bash git clone https://github.com/dashscope/claude-code-config.git cd claude-code-config npm install npm install -g . ``` -------------------------------- ### Start Using Claude Code Source: https://github.com/dashscope/claude-code-config/blob/main/README.zh-CN.md Initiates the 'claude-code' command-line interface after the configuration is complete. This allows users to start interacting with the code generation or analysis features. ```Bash ccr code ``` -------------------------------- ### Start Using Claude Code Router Source: https://github.com/dashscope/claude-code-config/blob/main/README.md Initiates the Claude Code Router after the configuration has been successfully applied. ```bash ccr code ``` -------------------------------- ### Install Claude Code and Claude Code Router Source: https://github.com/dashscope/claude-code-config/blob/main/README.md Installs the necessary 'claude-code' and 'claude-code-router' packages globally using npm, which are prerequisites for using the DashScope configuration package. ```bash npm install -g @anthropic-ai/claude-code npm install -g @musistudio/claude-code-router ``` -------------------------------- ### Install DashScope Code Config from npm Source: https://github.com/dashscope/claude-code-config/blob/main/README.md Installs the '@dashscope-js/claude-code-config' package globally from the npm registry, providing the default configuration for DashScope support. ```bash npm install -g @dashscope-js/claude-code-config ``` -------------------------------- ### Run DashScope Configuration Command Source: https://github.com/dashscope/claude-code-config/blob/main/README.md Executes the command-line interface tool to set up the DashScope configuration for the Claude Code Router. ```bash ccr-dashscope ``` -------------------------------- ### Run DashScope Configuration Source: https://github.com/dashscope/claude-code-config/blob/main/README.zh-CN.md Executes the command to run the DashScope configuration utility. This command typically sets up default configurations and directories for the claude-code-router to use with DashScope. ```Bash ccr-dashscope ``` -------------------------------- ### Set DashScope API Key via Environment Variable Source: https://github.com/dashscope/claude-code-config/blob/main/README.md Configures the DashScope API key using an environment variable, which is the recommended method for setting up authentication for the package. ```bash export DASHSCOPE_API_KEY="your-api-key-here" ``` -------------------------------- ### Set DashScope API Key via Environment Variable Source: https://github.com/dashscope/claude-code-config/blob/main/README.zh-CN.md Configures the DashScope API key using an environment variable, which is the recommended method for setting up the package. This ensures the API key is available to the application without hardcoding. ```Bash export DASHSCOPE_API_KEY="your-api-key-here" ``` -------------------------------- ### Manually Configure API Key in config.json Source: https://github.com/dashscope/claude-code-config/blob/main/README.zh-CN.md Provides instructions for manually editing the `config.json` file to set the DashScope API key. This is an alternative method if the environment variable is not used before running `ccr-dashscope`. ```Bash # Navigate to the configuration directory cd ~/.claude-code-router # Edit the config.json file (using nano as an example) nano config.json # Replace the "api_key" field with your actual DashScope API Key ``` -------------------------------- ### Manually Edit Configuration File (Linux/macOS) Source: https://github.com/dashscope/claude-code-config/blob/main/README.md Provides instructions for manually editing the 'config.json' file using the 'nano' editor to configure the API key if not set via environment variables. ```bash cd ~/.claude-code-router nano config.json ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.