ModelScope 魔搭 · 魔搭社区 (中国)

How an agent gets a ModelScope 魔搭 · 魔搭社区 (中国) key through KeyKeeper, what to choose on modelscope.cn, and how KeyKeeper verifies it.

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

What the agent does

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

--provider modelscope-cn 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.cn
在访问令牌页面创建适合用途的 token
Copy the key, then approve the save in KeyKeeper's window.

What to choose

只下载公开或私有资产时使用 read 权限;仅在确实需要上传、部署或管理时选择 write 或更高权限。

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 魔搭 · 魔搭社区 (中国) 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 魔搭 · 魔搭社区 (中国) 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.cn/openapi/v1

Rotation and expiry

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