Skip to content

feat(auth): implement Alibaba Cloud Standard API Key support#2668

Merged
pomelo-nwu merged 4 commits intoQwenLM:mainfrom
JohnKeating1997:feat/optimize-auth-intro
Mar 27, 2026
Merged

feat(auth): implement Alibaba Cloud Standard API Key support#2668
pomelo-nwu merged 4 commits intoQwenLM:mainfrom
JohnKeating1997:feat/optimize-auth-intro

Conversation

@JohnKeating1997
Copy link
Copy Markdown
Contributor

@JohnKeating1997 JohnKeating1997 commented Mar 25, 2026

TLDR

  • Adds a dedicated Alibaba Cloud Standard API Key setup path inside /auth under the API Key level, while keeping the top-level menu as Qwen OAuth / Alibaba Cloud Coding Plan / API Key.
  • Lets users choose region-specific DashScope compatible endpoints, input API key, and then input model ID in one guided flow.
  • Persists credentials to env.DASHSCOPE_API_KEY and writes/updates modelProviders.openai + model.name, reducing manual settings edits for standard DashScope users.

Screenshots / Video Demo

1 2 3 4

Dive Deeper

Reviewer Test Plan

  1. Checkout this branch and run:
    • npm install
    • npm run build --workspace=packages/cli
    • npm start
  2. In CLI, run /auth and verify top-level menu has:
    • Qwen OAuth
    • Alibaba Cloud Coding Plan
    • API Key
  3. Select API Key and verify second-level menu:
    • Alibaba Cloud Standard API Key
    • Custom API Key
  4. Select Alibaba Cloud Standard API Key and verify region list and endpoint text for each option.
  5. Complete Standard flow:
    • input API key
    • input model ID (e.g. qwen3.5-plus)
  6. Verify settings persistence:
    • env.DASHSCOPE_API_KEY is set
    • modelProviders.openai contains the selected model/baseUrl/envKey
    • security.auth.selectedType is openai
    • model.name matches entered model ID
  7. Re-open /auth and verify behavior still navigates correctly and Esc back navigation works across nested steps.

Testing Matrix

🍏 🪟 🐧
npm run
npx
Docker
Podman - -
Seatbelt - -

Linked issues / bugs

Resolves #2664

@pomelo-nwu
Copy link
Copy Markdown
Collaborator

@JohnKeating1997 Thanks for your contribution!

@JohnKeating1997 JohnKeating1997 force-pushed the feat/optimize-auth-intro branch from 2987ff0 to 28dbf66 Compare March 25, 2026 15:27
…API authentication

- Updated AuthDialog to handle multiple model IDs, allowing users to input and submit a comma-separated list.
- Adjusted related functions to process and validate multiple model IDs.
- Enhanced user feedback messages to reflect the changes in model ID handling.
@pomelo-nwu pomelo-nwu self-assigned this Mar 27, 2026
…I Key in AuthDialog

- Changed all instances of "Alibaba Cloud Standard API Key" to "Alibaba Cloud ModelStudio Standard API Key" in AuthDialog and related tests.
- Added documentation links for ModelStudio Standard API Key based on region selection.
- Enhanced user feedback messages to reflect the new API key terminology.
Copy link
Copy Markdown
Collaborator

@pomelo-nwu pomelo-nwu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pomelo-nwu pomelo-nwu merged commit 4bacdea into QwenLM:main Mar 27, 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.

Add Alibaba Cloud Standard API Key Option within API Key Flow

2 participants