diff --git a/docs/concepts/model-providers.md b/docs/concepts/model-providers.md index 3de8f236b..94b995225 100644 --- a/docs/concepts/model-providers.md +++ b/docs/concepts/model-providers.md @@ -183,6 +183,22 @@ Kimi Code uses a dedicated endpoint and key (separate from Moonshot): } ``` +### Qwen Portal OAuth (free tier) + +Qwen Portal provides OAuth access to Qwen Coder + Vision via a device-code flow. +Enable the bundled plugin, then log in: + +```bash +clawdbot plugins enable qwen-portal-auth +clawdbot models auth login --provider qwen-portal --set-default +``` + +Model refs: +- `qwen-portal/coder-model` +- `qwen-portal/vision-model` + +See [/providers/qwen](/providers/qwen) for setup details and notes. + ### Synthetic Synthetic provides Anthropic-compatible models behind the `synthetic` provider: diff --git a/docs/plugin.md b/docs/plugin.md index 78132db99..dd34852cb 100644 --- a/docs/plugin.md +++ b/docs/plugin.md @@ -43,6 +43,7 @@ See [Voice Call](/plugins/voice-call) for a concrete example plugin. - [Microsoft Teams](/channels/msteams) — `@clawdbot/msteams` - Google Antigravity OAuth (provider auth) — bundled as `google-antigravity-auth` (disabled by default) - Gemini CLI OAuth (provider auth) — bundled as `google-gemini-cli-auth` (disabled by default) +- Qwen Portal OAuth (provider auth) — bundled as `qwen-portal-auth` (disabled by default) - Copilot Proxy (provider auth) — bundled as `copilot-proxy` (disabled by default) Clawdbot plugins are **TypeScript modules** loaded at runtime via jiti. They can diff --git a/docs/providers/index.md b/docs/providers/index.md index 45aa4149c..655a94279 100644 --- a/docs/providers/index.md +++ b/docs/providers/index.md @@ -26,7 +26,7 @@ Looking for chat channel docs (WhatsApp/Telegram/Discord/Slack/etc.)? See [Chann - [OpenAI (API + Codex)](/providers/openai) - [Anthropic (API + Claude Code CLI)](/providers/anthropic) -- [Github Copilot](/providers/github-copilot) +- [Qwen Portal (OAuth)](/providers/qwen) - [OpenRouter](/providers/openrouter) - [Vercel AI Gateway](/providers/vercel-ai-gateway) - [Moonshot AI (Kimi + Kimi Code)](/providers/moonshot) diff --git a/docs/providers/qwen.md b/docs/providers/qwen.md new file mode 100644 index 000000000..e86c4caa5 --- /dev/null +++ b/docs/providers/qwen.md @@ -0,0 +1,51 @@ +--- +summary: "Use Qwen Portal OAuth (free tier) in Clawdbot" +read_when: + - You want to use Qwen Portal with Clawdbot + - You want free-tier OAuth access to Qwen Coder +--- +# Qwen Portal + +Qwen Portal provides a free-tier OAuth flow for Qwen Coder and Qwen Vision models +(2,000 requests/day, subject to Qwen rate limits). + +## Enable the plugin + +```bash +clawdbot plugins enable qwen-portal-auth +``` + +Restart the Gateway after enabling. + +## Authenticate + +```bash +clawdbot models auth login --provider qwen-portal --set-default +``` + +This runs the Qwen device-code OAuth flow and writes a provider entry to your +`models.json` (plus a `qwen` alias for quick switching). + +## Model IDs + +- `qwen-portal/coder-model` +- `qwen-portal/vision-model` + +Switch models with: + +```bash +clawdbot models set qwen-portal/coder-model +``` + +## Reuse Qwen Code CLI login + +If you already logged in with the Qwen Code CLI, Clawdbot will sync credentials +from `~/.qwen/oauth_creds.json` when it loads the auth store. You still need a +`models.providers.qwen-portal` entry (use the login command above to create one). + +## Notes + +- Tokens expire periodically; re-run the login command when requests fail. +- Default base URL: `https://portal.qwen.ai/v1` (override with + `models.providers.qwen-portal.baseUrl` if Qwen provides a different endpoint). +- See [Model providers](/concepts/model-providers) for provider-wide rules.