Submit a toolSubmit

Cursor Cloud Agent can’t see your secrets. Add them, match the account, then start a new agent

Secrets inject only when a Cloud Agent starts. Add them in the Cloud Agents dashboard, use the right account, and start a new agent—don’t retry the old run. Short answer: 5 steps. 1) Confirm it is a missing secret, not a failed install; 2) Add the secret on the correct account and repository scope; 3) Pick the right secret type for how the value is used; 4) Start a new agent after adding or changing secrets; 5) If installs still fail, separate build-time credentials.

Last updated: · This page is the decision checklist; the tools list for “Fix Cursor Cloud Agent secrets not available” is a separate URL.

The problem: Secrets inject only when a Cloud Agent starts. Add them in the Cloud Agents dashboard, use the right account, and start a new agent—don’t retry the old run.

How do I add secrets, match the account, and start a new agent when a Cursor Cloud Agent can’t see them?

  1. Confirm it is a missing secret, not a failed install

    If the agent can’t read `OPENAI_API_KEY`, `DATABASE_URL`, or a registry token, check whether the variable was added under Cloud Agents secrets. Cursor’s troubleshooting says secrets must be added in the Cloud Agents dashboard and are workspace/team-scoped. Docs: https://cursor.com/docs/cloud-agent

  2. Add the secret on the correct account and repository scope

    Open https://cursor.com/dashboard/cloud-agents (or your team’s Cloud Agents settings) and add the name/value there. Use the same Cursor account/team that owns the agent. If the Secrets tab is missing, you likely lack permission. Prefer the Secrets UI over baking `.env.local` into a snapshot.

  3. Pick the right secret type for how the value is used

    Environment Variable: visible to the agent (flags, public URLs). Runtime Secret: still an env var for processes, but redacted as `[REDACTED]` in tool results, chat, and commits—use for API keys you don’t want echoed. Build Secret: available only during Docker build via a secret mount, not in the running agent. Docs: https://cursor.com/docs/cloud-agent/security-network

  4. Start a new agent after adding or changing secrets

    Secrets are injected when an agent starts. An already-running agent will not see new secrets. Cursor staff note there is no in-place restart button—starting a new agent is the fix. After it boots, confirm the env name exists in the terminal (Runtime Secrets still appear as env vars to you; their values stay redacted in the transcript).

  5. If installs still fail, separate build-time credentials

    Private npm/PyPI tokens needed only at image build time should be Build Secrets mounted in the Dockerfile (`RUN --mount=type=secret,...`), not Runtime Secrets you expect in the live shell. For cloud IAM, prefer short-lived OIDC from the VM over long-lived keys in Secrets. Security overview: https://cursor.com/docs/cloud-agent/security

Which tools are best to fix Cursor Cloud Agent secrets not available?

Cloud Agents docs (secrets troubleshooting)

Official note: secrets inject at start; add them in the dashboard and start a new agent.

Secrets & Network

Environment Variable vs Runtime Secret vs Build Secret.

Cloud Agent security overview

How secrets are encrypted and injected as env vars; OIDC guidance.

Cloud Agents dashboard

Where to add secrets and manage Cloud Agent environments.

All tools for “Fix Cursor Cloud Agent secrets not available” →

Related fixes

See also AI tools launched today on the daily board.