File tree Expand file tree Collapse file tree 3 files changed +63
-0
lines changed Expand file tree Collapse file tree 3 files changed +63
-0
lines changed Original file line number Diff line number Diff line change @@ -170,6 +170,10 @@ module.exports = [
170170 text : "Deepseek" ,
171171 link : "/deepseek/" ,
172172 } ,
173+ {
174+ text : "工具" ,
175+ link : "/ai/tools/" ,
176+ }
173177 ] ,
174178 } ,
175179 {
Original file line number Diff line number Diff line change @@ -187,6 +187,15 @@ module.exports = {
187187 children : [ "" ] ,
188188 } ,
189189 ] ,
190+ "/ai/tools/" : [
191+ {
192+ title : "AI工具" ,
193+ collapsable : false ,
194+ children : [
195+ "qwen-code" ,
196+ ]
197+ }
198+ ] ,
190199 "/haskell/" : [
191200 {
192201 title : "HASKELL" ,
Original file line number Diff line number Diff line change 1+ ---
2+ title : " Qwen Code安装"
3+ date : 2025-07-23
4+ tags :
5+ - qwen
6+ - cli
7+ sitemap :
8+ exclude : false
9+ changefreq : hourly
10+ ---
11+
12+ ` Qwen Code ` 基于 ` Gemini Code ` 进行二次开发,但阿里进行了 ` prompt ` 和工具调用协议适配,使得 ` Qwen Code ` 可以最大程度激发 ` Qwen3-Coder ` 在 ` Agentic Coding ` 任务上的表现。
13+
14+ ## step1:安装Qwen Code
15+
16+ 确保已安装 ` Node.js 20 ` 及以上版本,可以通过以下命令安装:
17+
18+ ``` sh
19+ curl -qL https://www.npmjs.com/install.sh | sh
20+
21+ ```
22+
23+ ## step2:通过 npm 管理器安装 Qwen Code
24+
25+ 从 npm 包安装:
26+
27+ ``` sh
28+ npm install -g @qwen-code/qwen-code
29+ ```
30+
31+ 从源码安装:
32+
33+ ``` sh
34+ npm install -g @qwen-code/qwen-code
35+ qwen --version
36+ ```
37+
38+ ## step3:配置环境变量(使用 OpenAI SDK 调用 LLM)
39+
40+ ` Qwen Code ` 支持 ` OpenAI SDK ` 调用 ` LLM ` ,你可以导出以下环境变量,或者简单地将其放在 ` .envfile ` 中。
41+
42+ ``` sh
43+ export OPENAI_API_KEY=" your_api_key_here"
44+ export OPENAI_BASE_URL=" your_api_base_url_here"
45+ export OPENAI_MODEL=" your_api_model_here"
46+ ```
47+
48+ 除了 Qwen Code 之外,现在还可以将 Qwen3‑Coder 与 Claude Code 搭配使用。只需在阿里云百炼平台申请 API Key,并安装 Claude Code,即可开始畅享编码体验.
49+
50+
You can’t perform that action at this time.
0 commit comments