Files
deepseek-harness/packages/account/README.md
T
LegGasai b9a6163266 feat(deepseek-auth): add DeepSeek request authentication
DeepSeek APIs accept the API key, the account sign-in, or both, and gain account authentication one API at a time. `ctx.deepseekAuth` gives every consumer one operation: the consumer names the kinds its API accepts and the billing its settings choose, and the service orders the kinds, binds each to the deployment its credential belongs to, and releases the request headers of the first kind that has a credential.

Model route plugins connect the deployment their settings name. Without a connection the API key is `DEEPSEEK_API_KEY` at the official API and the account sign-in goes to the deployment `DEEPSEEK_BASE_URL` names. The service depends on the credential store and, optionally, the account service, and on no consumer. Nothing consumes it yet.
2026-11-15 15:34:26 +08:00

2.6 KiB

description, kind
description kind
Package map for the DeepSeek account family: browser sign-in, the stored account grant, and the request authentication that chooses between the account sign-in and the API key for every DeepSeek API request. package-group

account/ — DeepSeek account

English | 中文

Summary

The account/ group signs the user in to DeepSeek through the system browser and keeps the account grant in the local credential store that credentials/ owns. Host consumers never read the token: ctx.deepseekAuth asks ctx.deepseekAccount for the credential of one request destination and hands the DeepSeek model routes and web providers its request headers, an invalidation for an HTTP 401, and a signal that aborts at sign-out. The same service releases the API key for consumers the key bills. Clients receive account state through the account Remote namespace without credentials.

Table of Contents


Packages

Two packages provide the account feature and DeepSeek request authentication; their READMEs cover day-to-day use, and the subsystem reference owns the exhaustive contracts.

Package Role ctx key
deepseek-account/ Browser sign-in, the stored grant, Platform profile, balance, and notification reads, and Host-only request credentials for allowed destinations ctx.deepseekAccount
deepseek-auth/ Request authentication for every DeepSeek API consumer: orders the API key and the account sign-in by billing, binds each to its deployment, and releases request headers ctx.deepseekAuth

Start with the subsystem reference for the account contracts, then the credential store the grant lives in.

Dev Note

Working context for maintainers — click to expand

None.