The Secrets page is only visible to users with the Admin role. Non-admins are redirected to General Settings.
Prerequisites
Secrets are encrypted at rest using a key derived from thePHOENIX_SECRET environment variable. When PHOENIX_SECRET is not set, secrets are still stored but are encrypted with a deterministic fallback key that provides no real confidentiality. For production deployments, PHOENIX_SECRET must be set to ensure secrets are properly protected.
Managing Secrets in the UI
Creating a Secret
- Go to Settings → Secrets.
- Click New Secret.
- Enter a Key in environment-variable format (e.g.,
OPENAI_API_KEY). The key is automatically uppercased and spaces are replaced with underscores. - Enter the Value. Values are write-only — the raw value cannot be retrieved after saving.
- Click Save.
Replacing a Secret Value
To update the value for an existing key, click Replace next to the secret and enter the new value. The key name cannot be changed; create a new secret and delete the old one if you need to rename a key.Deleting a Secret
Click Delete next to the secret and confirm. Deleting a secret that is currently referenced by a custom AI provider or prompt configuration will cause those references to stop working.Filtering Secrets
When authentication is enabled, you can switch between All secrets and My secrets using the owner filter at the top of the table.Managing Secrets via the REST API
Administrators can also create, update, and delete secrets programmatically using thePUT /v1/secrets endpoint. A single request can upsert and delete multiple secrets atomically:
- Entries with a non-null
valueare created or updated. - Entries with
value: nullare deleted.
Example: Create or update secrets
Example: Delete a secret
Security Considerations
- Secret values are encrypted at rest using a key derived from
PHOENIX_SECRET. - Only Admin users can create, update, or delete secrets via the UI or the REST API.
- Values are write-only. Store a secure copy elsewhere before discarding the original value.
- Deleting or rotating
PHOENIX_SECRETwill invalidate all stored secrets.
Related
Custom AI Providers
Configure server-managed AI providers that can reference stored secrets
API Keys
Manage Phoenix API keys for authenticating requests

