Skip to content

Conversation

@4h9fbZ
Copy link
Contributor

@4h9fbZ 4h9fbZ commented Jan 25, 2026

Adds a Qwen CLI provider extension with OAuth device flow support, matching the official Qwen CLI.

Changes:

  • Add custom-provider-qwen-cli extension (packages/coding-agent/examples/extensions/custom-provider-qwen-cli)
  • Add Qwen OAuth device flow with PKCE and refresh support
  • Register Qwen models (coder plus/flash + vision) with OpenAI-compatible API
  • Add thinkingFormat: "qwen" to core types (uses enable_thinking param)
  • Enable modifyModels hook for extension OAuth providers (documented in packages/coding-agent/docs/custom-provider.md but not implemented; enables dynamic baseUrl from OAuth credentials)
  • Register extension in example list + workspace

Models:

  • qwen3-coder-plus: 1M context, 65K output
  • qwen3-coder-flash: 1M context, 65K output
  • vision-model (qwen3-vl-plus): 262K context, 32K output, vision + thinking

Testing:

  • npm run check passes
  • ./test.sh passes
  • OAuth flow verified against official Qwen CLI source
  • API calls and thinking mode tested with live tokens

@badlogic
Copy link
Owner

badlogic commented Feb 1, 2026

Merged to main. Thanks.

@badlogic badlogic closed this Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants