You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**IMPORTANT: OAuth tokens from CLI tools are product-restricted and cannot be used for general API calls.**
261
+
262
+
| Provider | Token Source | API Access |
263
+
|----------|--------------|------------|
264
+
|**Claude**|`~/.claude/.credentials.json` (from `claude auth login`) | ❌ **Restricted to Claude Code only** - cannot use for general API |
265
+
|**Qwen**|`~/.qwen/oauth_creds.json` (from Qwen CLI login) | ❌ **For Qwen Portal only** - DashScope API requires separate API key |
266
+
267
+
**What works:**
268
+
- HelixAgent successfully reads OAuth tokens from both credential files
269
+
- Tokens are valid and non-expired
270
+
271
+
**What doesn't work:**
272
+
- Using Claude OAuth tokens for general API requests returns: _"This credential is only authorized for use with Claude Code and cannot be used for other API requests."_
273
+
- Using Qwen OAuth tokens for DashScope API returns: _"invalid_api_key"_ (tokens are for `portal.qwen.ai`)
274
+
275
+
**Solution:**
276
+
-**Claude**: Get an API key from https://console.anthropic.com/
277
+
-**Qwen**: Get a DashScope API key from https://dashscope.aliyuncs.com/
0 commit comments