Skip to content

Commit f957db3

Browse files
committed
update
1 parent 240649f commit f957db3

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

docs/.vuepress/config/navConf.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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
{

docs/.vuepress/config/sidebarConf.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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",

docs/ai/tools/qwen-code.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+

0 commit comments

Comments
 (0)