Managing secrets
All secret commands are available underoz secret.
Create a secret
--value-file:
oz secret create flags:
| Flag | Short | Description |
|---|---|---|
--type | -t | Secret type: raw-value (default) or anthropic-api-key |
--description | -d | Optional description for this secret |
--value-file | -f | File to read the secret value from instead of stdin |
Create a typed Anthropic secret
For agents that use the Claude Code harness, Oz supports provider-specific secret creation that validates the credential format automatically.- Direct API key
- Bedrock API key
- Bedrock access key
List secrets
Update a secret
To rotate a secret’s value, useoz secret update. Oz will prompt for the new value interactively, or you can supply a file.
oz secret update flags:
| Flag | Short | Description |
|---|---|---|
--value | — | Prompt for a new secret value interactively |
--value-file | -f | File to read the new secret value from |
--description | -d | New description for the secret |
Delete a secret
How agents access secrets at runtime
When an agent run starts, Warp injects all secrets in the run’s scope as environment variables inside the agent container. The variable name matches the secret name you chose when creating the secret. For example, if you created a secret namedGITHUB_TOKEN:
Secret scoping
By default, secrets are created in your personal scope. Use--team to create a secret shared across your team, or --personal to explicitly create a private secret:
Security considerations
Are secret values ever shown in output?
Are secret values ever shown in output?
No.
oz secret list only returns secret names and descriptions. The oz secret update command prompts for the value interactively and does not echo it. Values are never included in run transcripts or logs.How are secrets stored?
How are secrets stored?
Secrets are encrypted at rest in Warp’s infrastructure. They are decrypted only at the moment they are injected into an agent container, and only for the duration of that run.
Can I use secrets with scheduled agents?
Can I use secrets with scheduled agents?
Yes. Secrets are injected into every run, whether triggered manually or by a schedule. As long as the secret exists in the right scope when the scheduled agent fires, it will be available.