ModelScope 魔搭 · Global

How an agent gets a ModelScope 魔搭 · Global key through KeyKeeper, what to choose on modelscope.ai, and how KeyKeeper verifies it.

Template idmodelscope-global (also ModelScope International, ModelScope AI)
Fieldmodelscope-api-token → MODELSCOPE_API_TOKEN / MODELSCOPE_API_KEY · secret
Key looks likewhether it can be viewed again is unconfirmed
Created atmodelscope.ai
Verified by KeyKeepernot verified
Template checked2026-09-15

What the agent does

keykeeper providers show modelscope-global
keykeeper save --provider modelscope-global --from-clipboard --create --purpose "what this task does"
keykeeper run -c modelscope-global -- <your command>

--provider modelscope-global fills in the credential id and the field. The environment variable is the one ModelScope 魔搭's own tools read, so nothing has to be mapped.

What only you can do

登录 modelscope.ai
在 Global 站访问令牌页面创建 token
确认客户端 endpoint 指向 Global 站
Copy the key, then approve the save in KeyKeeper's window.

What to choose

中国站与 Global 站的账号、token 和内容目录独立;只授予当前 Hub/OpenAPI 操作所需的权限。

The agent is told the same thing. It opens the page for you and says what to pick; it never logs in, passes 2FA or pays on your behalf.

What KeyKeeper checks

  • Before writing: the value must look like a ModelScope 魔搭 · Global key (whether it can be viewed again is unconfirmed). A wrong paste is refused before anything is stored, and the agent is told why — without the value.
  • After saving: ModelScope 魔搭 · Global offers no read-only endpoint KeyKeeper can use, so the first real call is the test.

Endpoints

The key is a bearer token for these endpoints. keykeeper run sets only the variables above; point your client at the base URL yourself.

  • ModelScope Hub/OpenAPI — https://modelscope.ai/openapi/v1

Rotation and expiry

未确认统一有效期;以创建页面显示的实际日期为准,未知时不要猜测。 Rotate or revoke at modelscope.ai.