Answer: Secrets can be set as Environment Variables, Runtime Secrets, or Build Secrets. Environment Variables are best for non-sensitive configuration the agent can view, Runtime Secrets for sensitive credentials that should not be exposed to the agent, and Build Secrets for private package registries or build-time credentials not exposed to the running agent. Status: Confirmed Entry: tool/cursor/permissions-and-security/cloud-agent-secret-types Revision: 1 Digest: sha256:b5e68858203aaf36 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:10:05Z Last changed: 2026-11-13T03:10:05Z Last verified: 2026-11-20T12:36:42Z Next check: 2026-11-21T12:36:42Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Secret types | Environment Variables, Runtime Secrets, or Build Secrets | [1] | 2026-11-20 Environment Variable use | non-sensitive configuration that is helpful for the agent to view | [1] | 2026-11-20 Runtime Secret use | sensitive credentials that should not be exposed to the agent | [1] | 2026-11-20 Runtime Secret placeholder | [REDACTED] | [1] | 2026-11-20 Build Secret use | private package registries or build-time credentials that should not be exposed to the agent | [1] | 2026-11-20 Former name of Runtime Secrets | Redacted Secrets | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/cloud-agent/security-network.md". https://cursor.com/docs/cloud-agent/security-network.md Role: primary. Accessed: 2026-11-20T12:36:42Z Quote: "Secrets can be set as Environment Variables, Runtime Secrets, or Build Secrets." (Supports: Secret types) Quote: "These are best used for non-sensitive configuration that is helpful for the agent to view, such as flags or public URLs." (Supports: Environment Variable use) Quote: "These are best used for sensitive credentials that should not be exposed to the agent and should never be committed to the repository." (Supports: Runtime Secret use) Quote: "replaced with the placeholder string `[REDACTED]`" (Supports: Runtime Secret placeholder) Quote: "These are best used for private package registries or build-time credentials that should not be exposed to the agent." (Supports: Build Secret use) Quote: "Previously, Runtime Secrets were called Redacted Secrets." (Supports: Former name of Runtime Secrets) Snapshot SHA-256: e3da6cc3669d194f059af49567e700450372e2a34889154a4a6bc74de25e9d1a (captured 2026-11-13T03:10:05Z) 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:10:05Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:36:42Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:36:42Z Last attempt: 2026-11-20T12:36:42Z Notes and limitations: Extracted automatically from a single official source (section "Secret protection"). Related: https://latestn.com/tool/cursor/permissions-and-security/cloud-agent-secrets-and-network-access How do I give a Cursor Cloud Agent access to secrets and network URLs it needs? https://latestn.com/tool/cursor/permissions-and-security/cloud-agent-secrets-env-vars How do I add secrets and environment variables to a Cursor cloud agent? https://latestn.com/tool/cursor/permissions-and-security/cloud-agents-api-authentication How do I authenticate requests to the Cursor Cloud Agents API? https://latestn.com/tool/cursor/permissions-and-security/cloud-agent-network-access How do I configure network access for Cursor Cloud Agents? https://latestn.com/tool/cursor/permissions-and-security/cloud-agent-repo-access-scope Can Cursor Cloud Agents access repositories the developer can't? https://latestn.com/tool/cursor/permissions-and-security/cloud-agent-secret-access Can Cursor Cloud Agents read secrets and credentials? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:10:05Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/permissions-and-security/cloud-agent-secret-types/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/permissions-and-security/cloud-agent-secret-types POST: https://latestn.com/dispute/tool/cursor/permissions-and-security/cloud-agent-secret-types with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/permissions-and-security/cloud-agent-secret-types?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What are the different secret types in Cursor Cloud Agents and when should I use each? Revision 1, last verified 2026-11-20T12:36:42Z. https://latestn.com/tool/cursor/permissions-and-security/cloud-agent-secret-types (accessed 2026-11-21T10:01:49Z). @misc{LatestN_tool_cursor_permissions_and_security_cloud_agent_secret_types_r1, title = {What are the different secret types in Cursor Cloud Agents and when should I use each?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/permissions-and-security/cloud-agent-secret-types}}, note = {Revision 1; digest sha256:b5e68858203aaf36; last verified 2026-11-20T12:36:42Z; accessed 2026-11-21T10:01:49Z} } 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/permissions-and-security/cloud-agent-secret-types