oz secret command group provides full CRUD operations on secrets. Secrets can be scoped to a personal account or a team.
Synopsis
Subcommands
| Subcommand | Description |
|---|---|
create [name] | Create a new secret |
update <name> | Update an existing secret’s value or description |
delete <name> | Delete a secret |
list | List all secrets |
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)
Name of the secret to create (positional argument).
Secret type. Accepted values:
raw-value, anthropic-api-key.Short form: -tPath to a file whose contents become the secret value. If not provided, the value is read from standard input.Short form:
-fOptional description for the secret.Short form:
-dCreate the secret at the team level, making it available to teammates. Mutually exclusive with
--personal.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.Name of the secret (positional argument).
Path to a file containing the API key.Short form:
-fOptional description.Short form:
-doz secret create anthropic bedrock-api-key
Creates a secret for an Anthropic API key accessed via Amazon Bedrock.Bedrock API key. If not provided, the CLI prompts interactively.
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.AWS access key ID. If not provided, the CLI prompts interactively.
AWS secret access key. If not provided, the CLI prompts interactively.
AWS session token. If not provided, the CLI prompts interactively.
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
| Argument | Description |
|---|---|
name | Name of the secret to update |
Flags
Prompt for a new value for the secret interactively.
Path to a file whose contents become the new secret value.Short form:
-fNew 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
| Argument | Description |
|---|---|
name | Name of the secret to delete |
Flags
Delete without asking for confirmation.