Files
deepseek-harness/packages/account

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.