Skip to main content
Warp’s managed secret store lets you upload sensitive credentials — such as API keys, database passwords, or cloud provider access keys — and have them injected automatically into your cloud agent containers at runtime. The oz secret command group provides full CRUD operations on secrets. Secrets can be scoped to a personal account or a team.

Synopsis

Subcommands


oz secret create

Creates a new secret. You can create a generic raw-value secret, or use a provider-specific subcommand (such as anthropic api-key) to create a typed secret with the correct structure.
If you do not pass a value via --value-file, the CLI reads the secret value from standard input.

Flags (generic create)

string
Name of the secret to create (positional argument).
string
default:"raw-value"
Secret type. Accepted values: raw-value, anthropic-api-key.Short form: -t
string
Path to a file whose contents become the secret value. If not provided, the value is read from standard input.Short form: -f
string
Optional description for the secret.Short form: -d
boolean
Create the secret at the team level, making it available to teammates. Mutually exclusive with --personal.
boolean
Create the secret as private to your account (default). Mutually exclusive with --team.

Provider-specific subcommands

oz secret create anthropic api-key

Creates a secret that holds a direct Anthropic API key, with the correct type metadata for use by Claude harness agent runs.
string
Name of the secret (positional argument).
string
Path to a file containing the API key.Short form: -f
string
Optional description.Short form: -d

oz secret create anthropic bedrock-api-key

Creates a secret for an Anthropic API key accessed via Amazon Bedrock.
string
Bedrock API key. If not provided, the CLI prompts interactively.
string
AWS region for the Bedrock endpoint. If not provided, the CLI prompts interactively.

oz secret create anthropic bedrock-access-key

Creates a secret for Anthropic Bedrock authentication using AWS access keys.
string
AWS access key ID. If not provided, the CLI prompts interactively.
string
AWS secret access key. If not provided, the CLI prompts interactively.
string
AWS session token. If not provided, the CLI prompts interactively.
string
AWS region for the Bedrock endpoint. If not provided, the CLI prompts interactively.

Examples


oz secret update

Updates an existing secret. You can update the value, the description, or both. Renaming or moving secrets is not supported.

Arguments

Flags

boolean
Prompt for a new value for the secret interactively.
string
Path to a file whose contents become the new secret value.Short form: -f
string
New description for the secret. If omitted, the description is not changed.Short form: -d

Examples


oz secret delete

Deletes a secret from the managed store.

Arguments

Flags

boolean
Delete without asking for confirmation.

Examples


oz secret list

Lists all secrets in the managed store. Secret values are never shown — only names and metadata.

Examples