Claude code对接阿里百炼qwen模型

以WIN11为例,打开power shell,输入winget install Anthropic.ClaudeCode回车进行安装Claude code:

等待安装完毕然后关闭powershell。

然后下载Git,直达下载:Git,下载运行安装一路下一步就行。

重新运行powershell依次运行这几行命令:

$env:ANTHROPIC_BASE_URL = “https://dashscope.aliyuncs.com/apps/anthropic”
$env:ANTHROPIC_AUTH_TOKEN = “你的KEY”
$env:ANTHROPIC_API_KEY = “”
$env:ANTHROPIC_MODEL=”qwen3.6-plus”

然后再运行claude回车。选择yes,信任此目录。

Comments

No comments yet. Why don’t you start the discussion?

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注