Skip to content

Commit 0aa99cd

Browse files
committed
feat: add Qwen Code CLI provider documentation and sidebar entry
1 parent d1faedf commit 0aa99cd

File tree

4 files changed

+87
-10
lines changed

4 files changed

+87
-10
lines changed

docs/providers/qwen-code.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
sidebar_label: Qwen Code CLI
3+
description: Access Qwen3 Coder models through OAuth authentication. 1M context windows with automatic token refresh.
4+
keywords:
5+
- qwen code
6+
- qwen cli
7+
- qwen3 coder
8+
- roo code
9+
- api provider
10+
- oauth
11+
- alibaba
12+
- dashscope
13+
image: /img/social-share.jpg
14+
---
15+
16+
# Qwen Code CLI Provider
17+
18+
Access Alibaba's Qwen3 Coder models through OAuth authentication with automatic token refresh. Features massive 1M token context windows optimized for large codebases.
19+
20+
:::info Setup Required
21+
1. **Install Qwen Client**: Download from the official website
22+
2. **Authenticate**: Run the client and sign in to create OAuth credentials
23+
3. **Configure in Roo Code**: Select "Qwen Code CLI API" as your provider
24+
- Default path `~/.qwen/oauth_creds.json` works automatically
25+
- Or specify a custom credentials path if needed
26+
:::
27+
28+
**Website:** [https://chat.qwen.ai](https://chat.qwen.ai)
29+
30+
---
31+
32+
## Supported Models
33+
34+
Both models offer 1M context windows and 65K max output tokens (currently free):
35+
36+
- **qwen3-coder-plus** (Default) - High-performance coding model
37+
- **qwen3-coder-flash** - Speed-optimized variant
38+
39+
---
40+
41+
## Configuration
42+
43+
### OAuth Credentials Path
44+
- **Default**: `~/.qwen/oauth_creds.json`
45+
- **Custom paths supported**: Both absolute and `~/` prefixed paths
46+
- Created automatically when you authenticate with the Qwen client
47+
48+
---
49+
50+
## Key Features
51+
52+
- **OAuth 2.0**: Secure authentication with automatic token refresh
53+
- **1M Context**: Handle entire codebases in a single conversation
54+
- **Auto-refresh**: Tokens refresh transparently with 30-second buffer
55+
- **Free Tier**: 2,000 requests/day and 60 requests/minute with no token limits, available during a promotional period.
56+
- **Reasoning Support**: Full support for thinking blocks
57+
58+
---
59+
60+
## Common Issues
61+
62+
**"Cannot find credentials file"**
63+
- Ensure you've authenticated with the Qwen client
64+
- Check file exists at `~/.qwen/oauth_creds.json`
65+
66+
**"Token refresh failed"**
67+
- Check network connectivity
68+
- Re-authenticate with the Qwen client
69+
70+
**"401 Unauthorized"**
71+
- Provider should auto-refresh (check logs)
72+
- If persistent, delete credentials and re-authenticate

docs/update-notes/v3.26.0.mdx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,15 @@ The /init command helps LLMs understand your project's unique patterns and conve
4040

4141
## Qwen Code CLI API Support
4242

43-
We've integrated Qwen Code CLI API with OAuth authentication ([#7380](https://github.com/RooCodeInc/Roo-Code/pull/7380)):
43+
We've integrated with the Qwen Code CLI tool, allowing Roo Code to leverage its free access tier for Alibaba's Qwen3 Coder models ([#7380](https://github.com/RooCodeInc/Roo-Code/pull/7380)):
4444

45-
- **OAuth Authentication**: Secure authentication flow for accessing Qwen's code generation models
46-
- **Full API Integration**: Complete support for Qwen's advanced code generation capabilities
47-
- **CLI Accessibility**: Use Qwen models directly through the command-line interface
45+
- **Free Inference**: Piggybacks off the Qwen Code CLI's generous free tier (2,000 requests/day and 60 requests/minute with no token limits) via OAuth, available during a promotional period.
46+
- **1M Context Windows**: Handle entire codebases in a single conversation.
47+
- **Seamless Setup**: Works automatically if you've already authenticated the Qwen Code CLI tool.
4848

49-
This integration brings Qwen's code generation models to Roo Code users.
49+
This integration provides free access to the Qwen3 Coder models by using the local authentication from the Qwen Code CLI.
50+
51+
> **📚 Documentation**: See [Qwen Code CLI Provider](/providers/qwen-code) for setup and configuration.
5052
5153
## Provider Updates
5254

docs/update-notes/v3.26.mdx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,15 @@ The /init command helps LLMs understand your project's unique patterns and conve
4444

4545
### Qwen Code CLI API Support
4646

47-
We've integrated Qwen Code CLI API with OAuth authentication ([#7380](https://github.com/RooCodeInc/Roo-Code/pull/7380)):
47+
We've integrated with the Qwen Code CLI tool, allowing Roo Code to leverage its free access tier for Alibaba's Qwen3 Coder models ([#7380](https://github.com/RooCodeInc/Roo-Code/pull/7380)):
4848

49-
- **OAuth Authentication**: Secure authentication flow for accessing Qwen's code generation models
50-
- **Full API Integration**: Complete support for Qwen's advanced code generation capabilities
51-
- **CLI Accessibility**: Use Qwen models directly through the command-line interface
49+
- **Free Inference**: Piggybacks off the Qwen Code CLI's generous free tier (2,000 requests/day and 60 requests/minute with no token limits) via OAuth, available during a promotional period.
50+
- **1M Context Windows**: Handle entire codebases in a single conversation.
51+
- **Seamless Setup**: Works automatically if you've already authenticated the Qwen Code CLI tool.
5252

53-
This integration brings Qwen's code generation models to Roo Code users.
53+
This integration provides free access to the Qwen3 Coder models by using the local authentication from the Qwen Code CLI.
54+
55+
> **📚 Documentation**: See [Qwen Code CLI Provider](/providers/qwen-code) for setup and configuration.
5456
5557
### Provider Updates
5658

sidebars.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ const sidebars: SidebarsConfig = {
177177
'providers/openai',
178178
'providers/openai-compatible',
179179
'providers/openrouter',
180+
'providers/qwen-code',
180181
'providers/requesty',
181182
'providers/roo-code-cloud',
182183
'providers/sambanova',

0 commit comments

Comments
 (0)