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 asanthropic api-key) to create a typed secret with the correct structure.
--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: -tstring
Path to a file whose contents become the secret value. If not provided, the value is read from standard input.Short form:
-fstring
Optional description for the secret.Short form:
-dboolean
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:
-fstring
Optional description.Short form:
-doz 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:
-fstring
New description for the secret. If omitted, the description is not changed.Short form:
-dExamples
oz secret delete
Deletes a secret from the managed store.Arguments
Flags
boolean
Delete without asking for confirmation.