Skip to main content
Clients & tools

Claude Code

Anthropic's terminal AI coding assistant

Claude Code is a command-line AI coding assistant developed by Anthropic. Connect it to Qwen Cloud via Token Plan (Team Edition), Coding Plan, or pay-as-you-go billing.

Install Claude Code

  • macOS
  • Windows
  1. Install or update Node.js (v18.0 or later).
  2. Run the following command in the terminal to install Claude Code.
npm install -g @anthropic-ai/claude-code
  1. Run the following command to verify the installation. If a version number is displayed, the installation is successful.
claude --version

Skip login verification

Edit or create ~/.claude.json (Windows path: C:\Users\<username>\.claude.json), and set hasCompletedOnboarding to true to skip the official Anthropic login verification.
{
  "hasCompletedOnboarding": true
}

Configure access credentials

Create ~/.claude/settings.json (Windows path: C:\Users\<username>\.claude\settings.json), and add the corresponding configuration based on your selected plan.

Token Plan (Team Edition)

Replace YOUR_API_KEY with the Token Plan (Team Edition) dedicated API Key. For available models, see supported models for Token Plan (Team Edition).
{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY",
    "ANTHROPIC_BASE_URL": "https://token-plan.ap-southeast-1.maas.aliyuncs.com/apps/anthropic",
    "ANTHROPIC_MODEL": "qwen3.6-plus",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "qwen3.6-plus",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "qwen3.6-plus",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "qwen3.6-plus",
    "CLAUDE_CODE_SUBAGENT_MODEL": "qwen3.6-plus"
  }
}

Coding Plan

Replace YOUR_API_KEY with the Coding Plan dedicated API Key. For available models, see supported models for Coding Plan.
{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY",
    "ANTHROPIC_BASE_URL": "https://coding-intl.dashscope.aliyuncs.com/apps/anthropic",
    "ANTHROPIC_MODEL": "qwen3.6-plus",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "qwen3.6-flash",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "qwen3.6-plus",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "qwen3.6-plus",
    "CLAUDE_CODE_SUBAGENT_MODEL": "qwen3.6-plus"
  }
}

Pay-as-you-go

Replace YOUR_API_KEY with your Qwen Cloud API Key. For available models, see Anthropic API compatible.
{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY",
    "ANTHROPIC_BASE_URL": "https://dashscope-intl.aliyuncs.com/apps/anthropic",
    "ANTHROPIC_MODEL": "qwen3.6-plus",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "qwen3.6-flash",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "qwen3.6-plus",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "qwen3.6-plus",
    "CLAUDE_CODE_SUBAGENT_MODEL": "qwen3.6-plus"
  }
}

Verify configuration

After saving the configuration, open a new terminal window and run the following command to verify whether the connection is successful:
claude "Hello"
If the model returns a normal response, the configuration is successful. Run claude to enter interactive mode, which supports multi-turn conversations, file editing, and command execution. For details, see the Claude Code official documentation.

Claude Code IDE plugins

After completing the CLI configuration above, you can install the Claude Code plugin in your IDE, which directly reuses the configuration in settings.json.

VS Code

  1. Search for Claude Code for VS Code in the extension marketplace and install it.
  2. Restart VS Code and click the icon in the upper-right corner to open Claude Code.
  3. Type / in the dialog box, select General config, and set the model in Selected Model.

JetBrains

  1. Search for Claude Code in the extension marketplace and install it.
  2. Restart the IDE and click the icon in the upper-right corner to start using it.

FAQ

Error codes

If you encounter errors during configuration, refer to the FAQ documentation for the corresponding billing plan:

After starting Claude Code, the interface displays "Unable to connect to Anthropic services"

This error indicates that Claude Code is attempting to connect to the official Anthropic service instead of the Qwen Cloud server, usually because the environment variables are not configured correctly or have not taken effect. Follow these steps to troubleshoot:
  1. Check the configuration: After starting Claude Code, run the /status command and verify that the values of ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN correctly point to the Qwen Cloud address. If the output is empty or points to a non-Qwen Cloud address, check whether the settings.json configuration is correct.
  2. Verify hasCompletedOnboarding: Check that hasCompletedOnboarding is set to true in the ~/.claude.json file. Otherwise, Claude Code will attempt to connect to the official Anthropic service for login verification at startup.
  3. Reopen the terminal: After modifying the configuration file, open a new terminal window and run the claude command for the configuration to take effect.