Skip to main content

Overview

Account secrets store API keys and other credentials for agent sandboxes. After you save a secret, agents can read it as process.env.SECRET_NAME. The Developer API can add a secret, update it, list keys, and delete it. Values are write-only. List, create, and update responses return metadata only — never the secret value. Secrets are account-scoped, not workspace-scoped. Every personal-agent run for the Account API key owner receives the same secrets.

Add a secret

Name rules:
  • Uppercase letters, digits, and underscores only
  • Must start with a letter or underscore
  • At most 255 characters
  • At most 50 secrets per account
  • Value at most 8 KB
  • Some platform environment names are reserved (PATH, OPENAI_API_KEY, and similar)

List secret keys

This endpoint is not paginated. The listing never includes value.

Update a secret

The path uses the secret name, not the id. The name cannot be changed. Send at least one of value or description.

Delete a secret

Errors

See also the OpenAPI operations under Secrets.