
Qwen Code 是一款基于 Gemini CLI 开发的,专为 Qwen3-Coder 模型设计的命令行人工智能工作流工具,具有更强大的解析器支持和工具支持功能。
安装
环境准备:
需要 node20 及以上版本。
查看当前 node 版本
node -v
安装 node:
curl -qL https://www.npmjs.com/install.sh | sh
安装Qwen Code,注意,这里的cmd需要 以管理员身份运行
npm install -g @qwen-code/qwen-code

检查是否安装成功:
qwen --version

启动Qwen Code
qwen
配置
启动后可以在命令行中配置


也可以配置环境变量:
# If you are in mainland China, use the following URL:
# https://dashscope.aliyuncs.com/compatible-mode/v1
# If you are not in mainland China, use the following URL:
# https://dashscope-intl.aliyuncs.com/compatible-mode/v1
export OPENAI_API_KEY="your_api_key_here"
export OPENAI_BASE_URL="your_api_base_url_here"
export OPENAI_MODEL="your_api_model_here"
Windows 电脑只需按照 key 配置环境变量即可

配置后即刻体验

觉得写得还行?来都来了,不如关注一下?😉
公众号【攻城狮重楼】持续输出Java硬核干货,偶尔也聊聊程序员的“人间真实”。
关注不迷路,升职加薪(可能)靠得住!


526

被折叠的 条评论
为什么被折叠?



