tdx providers#

Manage provider credentials.

Manage the credentials the gateway uses to call providers.

Every command also takes the global flags and reads the environment variables that the command reference lists once.

Commands#

CommandDescriptionType
tdx providers keysManage provider credential bindings.Group
tdx providers keys listList provider credential binding names.Read
tdx providers keys setSet a provider credential from a file or stdin.Write
tdx providers keys removeRemove a provider credential binding.Write

tdx providers keys#

Manage provider credential bindings.

List, set and remove the gateway's provider bindings by name. Provider credentials stay hidden.

tdx providers keys list#

List provider credential binding names.

Reads

Read binding names, sources and public provider settings. Lists every value the compiled catalogue binds, as the init wizard asks for them: each provider's key, a companion its signing profile requires (an AWS access key id), a Bedrock API key it accepts instead, and each setting, set or not; each can be set by name with providers keys set. Credential values stay hidden. See Masked read output.

Shell
# GET /control/keys
tdx providers keys list [flags]

Output fields (inside data)

FieldTypeDescription
bindingspublic-binding[]Binding names, source kinds, what the catalogue binds each as (key, companion, bearer-token or slot) and optional public setting with label and value.

tdx providers keys set#

Set a provider credential from a file or stdin.

Writes

Read the credential from a protected owner-only file, bounded redirected stdin, or an explicitly named environment variable. Each credential is limited to 8192 UTF-8 bytes. A credential holds no whitespace unless it is one JSON object, such as a service-account key, which may hold whitespace inside but none around it. When using --setting or --field-env, the gateway validates the catalogue configuration and saves all supplied fields together. Only public settings can be supplied literally. Dry-run reads no credential inputs or profiles, sends no request and creates nothing; its requested preview is not authoritative. See Checked request values and Masked write output.

Shell
# PUT /control/keys/:name
tdx providers keys set --name <string> [flags]

Required flags

FlagTypeDefaultDescription
--namestringCredential binding environment-variable name.

Optional flags

FlagTypeDefaultDescription
--value-filepathRead a credential only from this file.
--value-stdinbooleanfalseRead a credential from standard input.
--value-envstringRead a credential from this explicitly named environment variable; never a literal value.
--settingstringSet a public provider setting as BINDING=VALUE. Repeat for multiple settings. Repeatable.
--field-envstringRead a companion credential as BINDING=VARIABLE from the named environment variable. Repeat for multiple companions. Repeatable.

Constraints

  • Exactly one of --value-file, --value-stdin, --value-env

Output fields (inside data)

FieldTypeDescription
bindingbinding-outcomePublic binding name and set status only.
previewwrite-preview|nullRequested change, unchecked by the gateway; null after execution.

Examples

Save a Bedrock API key and its region together:

Shell
tdx providers keys set --name AWS_BEDROCK_API_KEY --value-env BEDROCK_KEY --setting AWS_BEDROCK_REGION=us-west-2

tdx providers keys remove#

Remove a provider credential binding.

Writes

Remove a stored binding by name. Ambient gateway environment credentials may still resolve; removal does not revoke a provider credential. Dry-run reads no secret files or profiles, makes no request and creates nothing; the gateway has not checked the preview. See Checked request values and Masked write output.

Shell
# DELETE /control/keys/:name
tdx providers keys remove --name <string> [flags]

Required flags

FlagTypeDefaultDescription
--namestringCredential binding environment-variable name.

Output fields (inside data)

FieldTypeDescription
removedstringRemoved binding name, not a credential.
previewwrite-preview|nullRequested change, unchecked by the gateway; null after execution.