The decision record and the upgrade guide described credentials that each DeepSeek model route published through ctx.llm.providerCredential(). The routes, the Search and Fetch APIs, and Messages search ask ctx.deepseekAuth instead, so both documents describe that service: who orders the two credential kinds, where each kind's deployment comes from, what a consumer declares, and which alternatives lost. Both take the name of the subject they cover. The upgrade guide adds the steps this change asks of a composition: mount @deepseek-ai/dsh-deepseek-auth beside any DeepSeek route or web provider, and take the key check from @deepseek-ai/dsh-credentials. Five older decision records and nine package READMEs still said that routes publish credentials, that consumers read keys themselves, or that a request credential carries a bare value. They state the current mechanism, and the model service README drops the source-map row of the key check that moved to dsh-credentials.
description, kind
| description | kind |
|---|---|
| Package map for the credential capability family: the credential-reference seam, the environment-and-file provider, the authorization flow registry, and how references keep secret values out of configuration. | package-group |
credentials/ — credentials and authorization
English | 中文
Summary
The credentials/ group lets configuration name secrets instead of embedding their values. Use credentials/ to store, look up, and remove credentials, credentials-local/ for private on-machine storage with environment fallbacks, and authorization/ when obtaining a credential requires asking a human. Rotated stored values apply to the next model request, and a stored value takes precedence over DEEPSEEK_API_KEY=… dsh. Configuration files contain only credential names; local secret values remain readable only by the same OS user.
Table of Contents
Packages
Three packages provide the credential feature: one stores, looks up, and removes secrets at runtime while configuration only names them; the second is the default on-machine store; the third lets plugins obtain credentials that have to be asked for. Their READMEs cover day-to-day use; the subsystem reference owns the exhaustive contracts.
| Package | Role | ctx key |
|---|---|---|
credentials/ |
Store, look up, and remove secrets at runtime while configuration only names them | ctx.credentials |
credentials-local/ |
The default on-machine store: a private YAML file that outranks environment fallbacks | registers ctx.credentials |
authorization/ |
Plugin-owned flows that obtain a credential by asking a human | ctx.authorization |
Related documentation
Start with the subsystem reference for the shared vocabulary, then the capability-seam table and the configuration surface of the local store.
- Credentials subsystem reference —
CredentialRefandCredentialKey, per-operation resolution, UI-safeCredentialInfo, authorization flows, and the generated Cordis surface. - Capability seams — the Service Definition / Service Provider / Consumer split this family follows.
- Generated configuration catalog — every accepted field of the local store.
Dev Note
Working context for maintainers — click to expand
None.