rpk ai secret
Manage the secrets that LLM providers, MCP servers, OAuth clients, and agents reference by ID, for example with --openai-config.api-key-ref. Secret values are write-only: no command prints a stored value.
Pass the value with --value-file (use - for stdin) rather than --value, which leaves it in your shell history.
Commands take either the bare ID, such as OPENAI_API_KEY, or the resource name, such as secrets/OPENAI_API_KEY.
| This command was introduced in ai version 0.2.92. |
Subcommands
| Command | Description |
|---|---|
Create a secret. Resources reference the secret by its ID, for example |
|
Delete a secret. The store does not check references: resources that still name this secret (LLM providers, MCP servers, OAuth clients, agents) fail at runtime once it is gone. |
|
Get a secret’s metadata (tags and audit fields; never the value). |
|
List secrets. |
|
Update a secret. Only the values you pass change. |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |