#10266: feat(provider/modelscope): support modelscope provider
docs
cli
commands
agents
stale
Cluster:
Provider Support Enhancements
# Description
This PR primarily adds support for the ModelScope API. Users can use community-supported models by providing a ModelScope API key.
# For API-Key
To obtain the ModelScope API-key, please refer to [this link](https://modelscope.cn/docs/model-service/API-Inference/intro).
Please bind your [Alibaba Cloud account](https://modelscope.cn/docs/accounts/aliyun-binding-and-authorization) before use.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
- Adds a new `modelscope` provider (OpenAI-compatible) with a default model and base URL, plus implicit provider injection when a ModelScope key is available.
- Extends the onboarding/auth-choice flows (interactive + non-interactive) to accept/store `MODELSCOPE_API_KEY` and configure default model/provider settings.
- Updates provider usage plumbing and docs to surface ModelScope as a supported provider.
<h3>Confidence Score: 2/5</h3>
- This PR is not safe to merge as-is due to auth wiring bugs that will break ModelScope usage in common paths.
- Two issues appear to be definite functional bugs: implicit provider injection uses the env var name instead of its value, and the interactive onboarding path ignores the new `--modelscope-api-key` flag, causing prompting/misconfiguration. The rest of the changes are largely additive and consistent with existing patterns.
- src/agents/models-config.providers.ts, src/commands/auth-choice.apply.api-providers.ts
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#8783: feat(provider/volcengine): support volcengine provider
by ShanyouYu-Sean · 2026-02-04
77.3%
#7113: feat(providers): add CommonStack provider support
by flhoildy · 2026-02-02
77.1%
#14393: feat: add standalone DeepSeek provider support
by osoulmate · 2026-02-12
76.4%
#12503: feat: add DeepSeek provider suppor
by MackDing · 2026-02-09
75.9%
#20965: feat: Add comprehensive model configuration and discovery for various…
by rodeok · 2026-02-19
75.2%
#3792: add ShengSuanYun (胜算云) as a model provider
by shengsuan · 2026-01-29
75.1%
#7272: Models: add SiliconFlow provider
by qychen2001 · 2026-02-02
75.0%
#7570: fix: allow models from providers with auth profiles configured
by DonSqualo · 2026-02-03
74.6%
#9109: Models: add Orq provider
by Baukebrenninkmeijer · 2026-02-04
74.5%
#14475: feat: Add native Azure OpenAI support
by dzianisv · 2026-02-12
74.2%