feat(wizard): add CommonStack as a unified API gateway provider#523
Merged
lsdefine merged 1 commit intoMay 29, 2026
Merged
Conversation
CommonStack (https://commonstack.ai) is an OAI-compatible gateway aggregating Claude, GPT, Gemini, DeepSeek, MiniMax, Zhipu, xAI, Moonshot, Qwen and Xiaomi models behind a single key. Adds it to the configure_mykey wizard as a native_oai entry, placed alongside other multi-provider relays (openrouter, crs, gmi). The wizard's existing probe_models() flow fetches the live /v1/models list at config time; model_choices keeps the same 2-item fallback shape as openrouter. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
|
Thanks for the PR! I don't think we'll merge this one though. CommonStack has the same shape as our existing Going to close this for now. Thanks again! |
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.
Summary
Adds CommonStack as a selectable LLM provider in
assets/configure_mykey.py. CommonStack is an OAI/Anthropic-compatibleunified gateway that aggregates flagship models from OpenAI, Anthropic,
Google, DeepSeek, MiniMax, Zhipu, xAI, Moonshot, Qwen and Xiaomi behind
a single key — same shape as the existing
openrouterentry.Details
LLM_PROVIDERS, betweenopenrouterandcrs.type: native_oai,apibase: https://api.commonstack.ai/v1,api_mode: chat_completions. Standard Bearer auth — no quirks.model_choiceskept to 2 flagship ids mirroringopenrouter's shape,since
probe_models()fetches the live/v1/modelslist at config time(returns ~55 ids currently).
model_choicesis only consulted by_fallback_model()on probe failure.modelisanthropic/claude-opus-4-7, matching the project'spattern of defaulting to the flagship Claude.
Test plan
from configure_mykey import LLM_PROVIDERSimports cleanly.cc_relay → openrouter → commonstack → crs → gmi.probe_models()against live/v1/modelsreturns 55 ids.configure_llm(commonstack)with mocked stdin confirmsthe live list (alphabetical, starts with
anthropic/claude-haiku-4-5)populates the picker, not the 2-item fallback.