rpk ai llm-provider diff
Dry-run of apply for LLM providers. Prints, per manifest, whether apply would
create, update (and which fields), or leave the resource unchanged. Exits
non-zero when any change is pending, so CI can gate on no drift.
Every writable field is compared, including the ones a manifest omits: an omitted field is drift when live differs from what a create would have produced. What diff does not detect is a resource that exists live but is absent from the manifests (no prune).
A provider group file is an LLM provider with group_config and a members
list. Each member has a name (its member id), an explicit priority (lower is
tried first, unique in the group), one provider config such as
anthropic_config, and optionally model_overrides, first_token_timeout,
response_timeout and retries. A member’s secrets are references, as on a
provider (api_key_ref). Without a members key, apply leaves the group’s
members alone. An empty list (members: []) deletes them all, and a members
key with no list is an error. The gateway decides whether groups are
available.
For a group file, diff lists each member that apply would create (+), update (~) or delete (-), under the group’s own line.
| This command was introduced in ai version 0.2.28. |
Examples
This section provides examples of how to use rpk ai llm-provider diff.
claude-group.yaml
name: claude-group
enabled: true
group_config:
wire_format: GROUP_WIRE_FORMAT_ANTHROPIC_MESSAGES
models:
- claude-sonnet-4-5
provider_models:
- name: claude-sonnet-4-5
transcripts:
record_input_messages: true
record_output_messages: true
members:
- name: anthropic
priority: 10
anthropic_config:
api_key_ref: ANTHROPIC_API_KEY
- name: bedrock
priority: 20
retries: 1
model_overrides:
claude-sonnet-4-5: us.anthropic.claude-sonnet-4-5-20250929-v1:0
bedrock_config:
region: us-east-1
rpk ai llm-provider diff -f claude-group.yaml
rpk ai llm-provider apply -f claude-group.yaml
Flags
| Value | Type | Description |
|---|---|---|
|
strings |
manifest file, directory, or - for stdin ( |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |