Agentic Data Plane

rpk ai egress-credential create

Create an Egress credential.

Choose the auth by setting flags from one group; the group you use selects it: static-key, api-key, basic. Setting flags from two groups is an error.

Usage

rpk ai egress-credential create NAME [flags]

Examples

This section provides examples of how to use rpk ai egress-credential create.

rpk ai egress-credential create my-egress-credential \
  --allowed-hosts ALLOWED_HOSTS \
  --static-key.key-secret-ref MCP_API_KEY

Flags

Value Type Description

--display-name

string

Display name.

--description

string

Description.

--tags

stringArray

Tags. (repeatable key=value; replaces the full map on update).

--static-key.key-secret-ref

string

Secret store reference for the API key. (required in its group).

--static-key.header-name

string

HTTP header name for the API key. Defaults to 'Authorization'.

--api-key.key-secret-ref

string

Secret store reference for the API key. (required in its group).

--api-key.name

string

Header name OR query-string parameter name to send the key under. (required in its group).

--api-key.location

string

Whether to send the API key as an HTTP header or a query parameter. (one of: header, query).

--basic.username

string

Username for HTTP Basic authentication. (required in its group).

--basic.password-secret-ref

string

Secret store reference for the Basic Auth password (or API token used as a password). (required in its group).

--allowed-hosts

strings

Required: 1 to 32 distinct entries, as EgressCredential.allowed_hosts describes, for example api.github.com or *.example.com. (repeatable; replaces the full list on update; required).

-f, --filename

string

manifest to create from (YAML or JSON; "-" for stdin); flags override file values.

--dry-run

bool

print the request that would be sent (with the computed update mask) and exit without calling the server.

Global flags

Value Type Description

--config

string

Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml.

-X, --config-opt

stringArray

Override rpk configuration settings; -X help for detail or -X list for terser detail.

--ignore-profile

bool

Ignore rpk.yaml and redpanda.yaml; use default settings.

--profile

string

rpk profile to use.

-v, --verbose

bool

Enable verbose logging.