Agentic Data Plane

rpk ai auth

Manage rpk ai authentication (login, logout, token, status).

Usage

rpk ai auth [flags]

Subcommands

Command Description

rpk ai auth login

Run the OAuth 2.0 device authorization grant against Redpanda Cloud, persist the resulting credentials, and prompt to select an environment whose AI Gateway URL becomes the active profile’s dataplane URL. Credentials are stored in the rpk ai credentials file with 0600 permissions, keyed by organization.

rpk ai auth logout

Delete stored credentials for the current organization (or --all for a full clean slate).

rpk ai auth status

Show the authentication state for the current environment.

rpk ai auth token

Print the current bearer access token to stdout (refreshes if expired).

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.