rpk ai agent create
Create an agent
Flags
| Value | Type | Description |
|---|---|---|
|
string |
longer description of the agent’s purpose. |
|
string |
display name. |
|
- |
help for create. |
|
string |
name of the LLM provider resource the agent uses. |
|
int32 |
maximum agent loop iterations per invocation. |
|
strings |
MCP server resource name the agent may call (repeatable). |
|
string |
model the agent runs (e.g. claude-sonnet-4-6). |
|
- |
register a metadata-only self-managed agent (the platform won’t run it). |
|
string |
path to a JSON/YAML ManagedAgentSpec; enables subagents/agent_card that scalar flags can’t express (mutually exclusive with --self-managed and the spec flags). |
|
string |
system prompt for the agent. |
|
stringToString |
metadata tag key=value (repeatable) (default []). |
|
string |
output format: table|wide|json|yaml|markdown (env: RPAI_FORMAT) (default "table"). |
|
- |
disable colored output (env: NO_COLOR). |
|
string |
path to rpai config (env: RPAI_CONFIG) (default "/var/lib/redpanda/.rpai/config"). |
|
string |
override the selected environment’s AI Gateway URL for this invocation. |
|
string |
rpai profile name (env: RPAI_PROFILE). |
|
- |
verbose debug logging to stderr (env: RPAI_VERBOSE). |
|
string |
static bearer token override (ambient RPAI_TOKEN is ignored under rpk ai). |