Files
deepseek-harness/packages/account
LegGasai 074889ed60 refactor(deepseek-auth): take each model route's id from the plugin that connects it
The service held a table of the two DeepSeek route ids, which are ids of
its consumers. connect() now takes the provider route its plugin
registers, and routeKind() answers the kind connected under that id, so
the service names no route.

A conversation recorded on deepseek-account or deepseek-official whose
route plugin is not mounted is ordered as any other route: the API key,
then the account sign-in. Before, such a conversation tried only the API
key. With both route plugins mounted the order is unchanged.
2026-11-16 17:03:46 +08:00
..

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.