Answer: Use the agent-sdk login command to store a supplied API key or open browser sign-in, agent-sdk whoami to show the active credential and its source, and agent-sdk logout to remove the stored credential (which doesn't revoke the key, so revoke it in the Cursor dashboard). Status: Confirmed Entry: tool/cursor/settings/manage-credentials Revision: 1 Digest: sha256:fab1a0a2f2c50808 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:08:48Z Last changed: 2026-11-13T03:08:48Z Last verified: 2026-11-20T12:33:38Z Next check: 2026-11-21T12:33:38Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of login command | agent-sdk login [--api-key ] [--key-name ] | [1] | 2026-11-20 whoami command | agent-sdk whoami [--json] | [1] | 2026-11-20 logout command | agent-sdk logout | [1] | 2026-11-20 whoami behavior | shows the active credential and its source | [1] | 2026-11-20 logout behavior | removes the stored credential but doesn't revoke the key | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/agent-sdk/reference/cli.md". https://cursor.com/docs/agent-sdk/reference/cli.md Role: primary. Accessed: 2026-11-20T12:33:38Z Quote: "agent-sdk login [--api-key ] [--key-name ]" (Supports: login command) Quote: "agent-sdk whoami [--json]" (Supports: whoami command) Quote: "agent-sdk logout" (Supports: logout command) Quote: "`whoami` shows the active credential and its source." (Supports: whoami behavior) Quote: "`logout` removes the stored credential but doesn't revoke the key" (Supports: logout behavior) Snapshot SHA-256: 3f86eb45963d08a93c9717bfeb98d2ab240cc0bd05ac94a75fb1b7d2270524ca (captured 2026-11-13T03:08:48Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:08:48Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:33:38Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:33:38Z Last attempt: 2026-11-20T12:33:38Z Notes and limitations: Extracted automatically from a single official source (section "Credentials and versions"). Related: https://latestn.com/tool/cursor/settings/manage-installed-plugins How do I manage or update installed plugins in Cursor? https://latestn.com/tool/cursor/settings/open-customize-page How do I open the Customize page in Cursor to manage plugins, skills, and MCPs? https://latestn.com/tool/cursor/settings/origin-cli-environment-variables Which environment variables does the Cursor Origin CLI use for endpoint and credentials? https://latestn.com/tool/cursor/settings/find-app-id-installation-id Where do I find the App ID and installation id for a Cursor Origin app? https://latestn.com/tool/cursor/settings/jira-routing-rules How do I configure routing rules for the Cursor Jira integration? https://latestn.com/tool/cursor/settings/manage-apps-settings Where do I manage installed apps in Cursor Origin codebase settings? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:08:48Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/settings/manage-credentials/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cursor/settings/manage-credentials POST: https://latestn.com/dispute/tool/cursor/settings/manage-credentials with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/settings/manage-credentials?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I manage credentials for the Cursor Agent SDK CLI? Revision 1, last verified 2026-11-20T12:33:38Z. https://latestn.com/tool/cursor/settings/manage-credentials (accessed 2026-11-21T09:53:55Z). @misc{LatestN_tool_cursor_settings_manage_credentials_r1, title = {How do I manage credentials for the Cursor Agent SDK CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/settings/manage-credentials}}, note = {Revision 1; digest sha256:fab1a0a2f2c50808; last verified 2026-11-20T12:33:38Z; accessed 2026-11-21T09:53:55Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cursor/settings/manage-credentials