oz0 provider set

Add or change a provider record.

For: Operators and developers looking up a command.

Add or change a provider record. An existing record the tenant sees is the starting point, or --preset names a shipped one (see provider list --presets); flags change single fields. Without --shared the record is the tenant's own, and replaces a shared record of the same ID for that tenant only; --shared changes the record every tenant sees, which only cluster admins may. The key itself is a tenant secret: set it with oz0 secret set <NAME>.

Usage

oz0 provider set <id> [flags]

Flags

FlagTypeDefaultDescription
--access-key-secretstringthe tenant secret with SigV4's access key ID; --key-secret holds the secret access key
--audiencestringthe JWT bearer assertion's audience (the token URL when empty)
--auth-headerstringthe header its key goes in, such as Authorization or X-Api-Key
--auth-kindstringhow calls are signed: header (a key in --auth-header, the default), oauth2_client_credentials, oauth2_jwt_bearer, sigv4 or federated (no stored key)
--auth-prefixstringwhat comes before the key in that header, such as "Bearer "
--aws-regionstringthe region SigV4 signs for, such as eu-north-1
--aws-rolestringwith --cloud aws: the IAM role's ARN the calling agent assumes (with --aws-region and --aws-service)
--aws-servicestringthe service SigV4 signs for, such as bedrock
--base-urlstringwhat a call's path, such as v1/chat/completions, is appended to
--cachestringits prompt cache's facts as JSON, such as '{"style":"none"}' or '{"short_seconds":300,"min_tokens":2048}'; empty takes its format's defaults
--chargesstringwhat it charges besides tokens, as JSON, such as '{"tools":{"web_search":{"usd":0.02}},"tiers":{"service_tier":{"priority":1.8}}}'; each fact replaces the shipped one of that name; empty takes the shipped ones
--client-authstringhow the client secret is sent to the token URL: post (the default) or basic
--client-idstringthe OAuth2 client (client credentials), or a bare PEM key's issuer (JWT bearer)
--cloudstringwith --auth-kind federated: aws, gcp or entra, the cloud that trusts the tenant's issuer
--descriptionstringwhat it is, for people
--disabledboolkeep the record, but route nothing to it
--entra-directorystringwith --cloud entra: the directory (tenant ID or domain) of the app registration (--client-id)
--formatstringswire formats it speaks, its default first: anthropic-messages, openai-chat, openai-responses, google-generate-content
--gcp-service-accountstringwith --cloud gcp: a service account the federated token impersonates
--gcp-workload-providerstringwith --cloud gcp: the workload identity pool provider, //iam.googleapis.com/projects/<number>/locations/global/workloadIdentityPools/<pool>/providers/<provider>
--internalboola tenant's record may reach private addresses, such as a server next to the edge (cluster admins)
--key-secretstringthe tenant secret that holds its key, bound to the provider's host or token URL's host unless it is a built-in provider's key (oz0 secret set NAME --host HOST)
--model-instringwhere calls name the model: body or path
--presetstringstart from a shipped preset, such as openrouter or mistral
--price-providerstringits ID in genai-prices, when that differs
--price-sourcestringgenai-prices, reported (its own usage.cost) or none
--provider-statestringown says this provider account, and each pool member's, serves this tenant alone, so calls may name what it stores: prior responses, files, caches (cluster admins, a tenant's own record; empty takes it back)
--regionstringwhere it processes data, such as eu, eu-north or us
--retains-databoolit keeps prompts or answers after a call; required for a new record without --preset
--scopestringwhat an OAuth2 token is for, such as https://ai.azure.com/.default
--session-token-secretstringthe tenant secret with a SigV4 session token, for temporary credentials
--sharedboolthe record every tenant sees (cluster admins)
--tenantstringdefaulttenant whose own record it is
--token-urlstringwhere the OAuth2 kinds get tokens; the edge calls it (an outbound connection)
--translatorstringthe record is a translation gateway you run as a process of its own, which makes its calls lossy: agentgateway or agent-router (empty for none)

Inherited flags

FlagTypeDefaultDescription
--contextstring$OZ0_CONTEXT or <config dir>/orchestrator-zero/context.jsonCLI context file written by server init
--log-levelstringinfolog level: debug, info, warn or error

See all oz0 commands and the global flags.

On this page
Copyright © 2026