feat: add minimax-api-key-cn option for China API endpoint#15191
Merged
steipete merged 2 commits intoopenclaw:mainfrom Feb 14, 2026
Merged
feat: add minimax-api-key-cn option for China API endpoint#15191steipete merged 2 commits intoopenclaw:mainfrom
steipete merged 2 commits intoopenclaw:mainfrom
Conversation
Contributor
Author
|
Thanks for the review! @greptile-apps This is an intentional design decision following the existing pattern used by Moonshot:
The same pattern applies here: Both options reuse the same provider id and auth profile, which means switching between global/CN endpoints will update the . This is consistent with the existing onboarding flow where users would typically choose one endpoint and stick with it. If isolation between endpoints is needed, users can configure separate profiles manually. The current approach keeps the implementation simple and consistent with the codebase patterns. |
b66fb72 to
84055de
Compare
0b60e75 to
7f5487f
Compare
- Add 'minimax-api-key-cn' auth choice for Chinese users - Reuse existing --minimax-api-key CLI option - Use MINIMAX_CN_API_BASE_URL (https://api.minimaxi.com/anthropic) - Similar to how moonshot supports moonshot-api-key-cn Tested: build ✅, check ✅, test ✅
Contributor
hamidzr
pushed a commit
to hamidzr/openclaw
that referenced
this pull request
Feb 14, 2026
openperf
pushed a commit
to openperf/moltbot
that referenced
this pull request
Feb 14, 2026
openperf
pushed a commit
to openperf/moltbot
that referenced
this pull request
Feb 14, 2026
BigUncle
pushed a commit
to BigUncle/openclaw
that referenced
this pull request
Feb 14, 2026
mverrilli
pushed a commit
to mverrilli/openclaw
that referenced
this pull request
Feb 14, 2026
GwonHyeok
pushed a commit
to learners-superpumped/openclaw
that referenced
this pull request
Feb 15, 2026
6 tasks
hughdidit
pushed a commit
to hughdidit/DAISy-Agency
that referenced
this pull request
Mar 1, 2026
(cherry picked from commit 0cfea46) # Conflicts: # .gitignore # CHANGELOG.md # src/commands/auth-choice-options.ts # src/commands/auth-choice.test.ts # src/commands/onboard-non-interactive.provider-auth.e2e.test.ts
hughdidit
pushed a commit
to hughdidit/DAISy-Agency
that referenced
this pull request
Mar 3, 2026
(cherry picked from commit 0cfea46) # Conflicts: # .gitignore # CHANGELOG.md # src/commands/auth-choice-options.e2e.test.ts # src/commands/auth-choice-options.ts # src/commands/auth-choice.e2e.test.ts # src/commands/onboard-non-interactive.provider-auth.e2e.test.ts
zooqueen
pushed a commit
to hanzoai/bot
that referenced
this pull request
Mar 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add 'minimax-api-key-cn' auth choice for Chinese users.
Tested pnpm : build ✅, check ✅, test ✅
Tested with my minimax key locally.
Greptile Overview
Greptile Summary
This PR adds a new onboarding auth choice,
minimax-api-key-cn, intended to configure MiniMax’s China Anthropic-compatible endpoint by reusing the existing--minimax-api-keycredential flow and plumbing a custom base URL through the MiniMax API provider config (applyMinimaxApiProviderConfig/applyMinimaxApiConfig).The change fits into the existing onboarding/auth-choice framework by extending the
AuthChoiceunion, updating the CLI help text, and adding a new branch inapplyAuthChoiceMiniMaxto set the profile + default model/provider config.Confidence Score: 3/5
minimaxprovider id andminimax:defaultauth profile, which will overwritemodels.providers.minimax.baseUrland the stored API key when toggling between global and CN flows. Fixing the isolation between endpoints would significantly reduce user-facing misconfiguration risk.Last reviewed commit: 68932a9
(5/5) You can turn off certain types of comments like style here!