--- description: "Account screens use authenticated Remote commands and a snapshot stream. The controller exposes login state without returning tokens or PKCE secrets." kind: "package-reference" --- # @deepseek-ai/dsh-api-account-controller English | [中文](README.zh.md) ## Summary Account screens use authenticated Remote commands and a snapshot stream. The controller exposes login state without returning tokens or PKCE secrets. ## Table of Contents - [Use this package](#use-this-package) - [Model Experience](#model-experience) - [Known Limitations and Deferred Work](#known-limitations-and-deferred-work) ## Use this package The account namespace exposes getState, getProfile / getBalance, startSignIn, cancelSignIn, signOut, and watch. watch emits an initial complete state and subsequent complete states; disconnecting stops observation, not the login attempt. Cancellation names the attempt ID so a stale screen cannot cancel a newer login. ## Understand the implementation The controller forwards operations to the account service and maintains no independent account state; no invariant companion is published. ## Further Exploration The [credentials subsystem](../../../docs/subsystems/credentials.md) owns storage APIs; the [architecture](../../../docs/architecture.md) explains application composition. ## Model Experience None, as account credentials affect HTTP authentication and never enter model prompts, Session logs, or tool results. #### KV Cache effect No model request prefix changes. ## Known Limitations and Deferred Work - A disconnected UI can recover account state through watch, but cannot resume an attempt after the Host exits. Credentials and request-token resolution are not Remote operations. ### Dev Note The [desktop login decision](../../../.agents/notes/implemented/architecture/2026-09-14-deepseek-account-login.md) records cancellation and storage ownership.