Files
bot/docs/providers/qwen.md
zeekay 4bdc9ee3e4 chore: rebrand openclaw → hanzo-bot for bridge merge
Comprehensive rename of all openclaw references to hanzo-bot equivalents:
- Package: openclaw → @hanzo/bot
- Binary: openclaw → hanzo-bot
- Types: OpenClaw* → Bot*
- Env vars: OPENCLAW_* → BOT_*
- Android: ai.openclaw.android → ai.hanzo.bot.android
- iOS/macOS: ai.openclaw.* → ai.hanzo.*
- Swift modules: OpenClaw* → Bot*
- Plugins: openclaw.plugin.json → bot.plugin.json
- Paths: .openclaw/ → .hanzo/bot/
- URLs: github.com/openclaw → github.com/hanzoai
2026-02-26 22:36:01 -08:00

1.4 KiB

summary, read_when, title
summary read_when title
Use Qwen OAuth (free tier) in Hanzo Bot
You want to use Qwen with Hanzo Bot
You want free-tier OAuth access to Qwen Coder
Qwen

Qwen

Qwen 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

hanzo-bot plugins enable qwen-portal-auth

Restart the Gateway after enabling.

Authenticate

hanzo-bot 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:

hanzo-bot models set qwen-portal/coder-model

Reuse Qwen Code CLI login

If you already logged in with the Qwen Code CLI, Hanzo Bot 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 auto-refresh; re-run the login command if refresh fails or access is revoked.
  • Default base URL: https://portal.qwen.ai/v1 (override with models.providers.qwen-portal.baseUrl if Qwen provides a different endpoint).
  • See Model providers for provider-wide rules.