rpk cloud: Authenticate & Manage Redpanda Cloud
rpk cloud is the command group that connects rpk to Redpanda Cloud. It handles authentication (SSO and client credentials), profile creation, cluster selection, resource-group management, BYOC agent provisioning, and the MCP server integration for AI agents.
The seven top-level subgroups are:
| Subcommand |
What it does |
rpk cloud login |
Authenticate to Redpanda Cloud (SSO or client credentials) |
rpk cloud logout |
Clear the stored auth token |
rpk cloud auth |
Manage named cloud authentications in rpk.yaml |
rpk cloud cluster |
Select a Cloud cluster (wires a profile to it) |
rpk cloud resource-group |
Create/list/delete resource groups (billing containers) |
rpk cloud byoc |
Install and run the BYOC agent plugin (Terraform) |
rpk cloud mcp |
Run or install the MCP server for AI agent integration |
Quickstart
# 1. Log in via SSO (opens browser automatically)
rpk cloud login
# 1b. Log in with client credentials (headless / CI)
rpk cloud login \
--client-id "abc123" \
--client-secret "secret456" \
--save # persist to rpk.yaml for token refresh
# 1c. Same, via environment variables (no flags needed)
export RPK_CLOUD_CLIENT_ID=abc123
export RPK_CLOUD_CLIENT_SECRET=secret456
rpk cloud login --no-profile # skip interactive cluster-select
# 2. Select a Cloud cluster — wires your rpk profile to it
rpk cloud cluster select # interactive prompt
rpk cloud cluster select my-cluster-name # by name
rpk cloud cluster select my-cluster-name --serverless-network public
# 3. Verify the profile is active and talk to the cluster
rpk topic list # uses the profile set by cluster select
# 4. Print the current bearer token (useful for API calls)
rpk cloud auth token
# 5. List all stored cloud authentications
rpk cloud auth list
# 6. Manage resource groups
rpk cloud resource-group list
rpk cloud resource-group create my-rg
rpk cloud resource-group delete my-rg --no-confirm
# 7. BYOC: install the plugin and apply for a cluster
rpk cloud byoc install --redpanda-id <cluster-id>
rpk cloud byoc aws apply --redpanda-id <cluster-id>
rpk cloud byoc gcp apply --redpanda-id <cluster-id>
rpk cloud byoc azure apply --redpanda-id <cluster-id>
# 8. MCP: install into Claude Code (so the AI can manage your cloud)
rpk cloud login --no-profile
rpk cloud mcp install --client claude-code
# 8b. MCP: run the stdio server directly (MCP client calls this)
rpk cloud mcp stdio
rpk cloud mcp stdio --allow-delete # also expose destructive RPCs
Authentication Model
Redpanda Cloud uses Auth0 under the hood. rpk cloud login runs either:
- SSO flow (OAuth device-authorization flow): opens your browser to the Redpanda Cloud login page (Auth0 device flow). The CLI polls for the device code to be authorized; once approved, Auth0 issues a bearer token that is stored in
rpk.yaml. When --no-browser is used, the URL and device code are printed to the terminal so you can complete the flow manually on another machine.
- Client credentials flow: exchanges a
client_id + client_secret for a bearer token without a browser. Client credentials are created in the Clients tab of the Users section in the Redpanda Cloud UI.
Token and client ID are always persisted to rpk.yaml. The client secret is only persisted when you pass --save.
Priority order for client credentials (highest to lowest):
client_id / client_secret fields in the active rpk cloud auth entry in rpk.yaml
RPK_CLOUD_CLIENT_ID / RPK_CLOUD_CLIENT_SECRET environment variables
--client-id / --client-secret flags
When no credentials are provided, rpk falls back to SSO.
Flags Available on rpk cloud login
| Flag |
Type |
Description |
--client-id |
string |
Client ID from Redpanda Cloud |
--client-secret |
string |
Client secret from Redpanda Cloud |
--no-browser |
bool |
Disable auto-opening the browser for SSO |
--save |
bool |
Persist client secret to rpk.yaml |
--no-profile |
bool |
Skip the automatic cloud-profile creation/prompt |
Cloud Auth Subcommands
rpk cloud auth stores multiple named authentications in rpk.yaml for users who have multiple Cloud organizations or want to switch between SSO and client-credential auth. Subcommands:
list (ls) — list all cloud auths (current is marked with *)
use <NAME> — switch the active cloud auth
delete <NAME> — remove a cloud auth from rpk.yaml
token — print the current bearer token to stdout
rpk cloud auth create, rpk cloud auth rename-to, and rpk cloud auth edit are deprecated/hidden no-ops; use rpk cloud login instead.
Cluster Select & Profile Wiring
rpk cloud cluster select [NAME] is equivalent to rpk profile create --from-cloud=NAME. It calls the Redpanda Cloud control-plane API, retrieves the cluster's data-plane URL, and writes the broker/admin/registry endpoints into the active rpk profile (default profile name: rpk-cloud). After this, plain rpk topic list (no flags) talks to the Cloud cluster.
For Serverless clusters that offer both public and private networking, use --serverless-network public|private to avoid an interactive prompt.
Resource Groups
Resource groups are organizational containers (the billing/account boundary) in Redpanda Cloud. The rpk cloud resource-group command (aliases: namespace, ns) lets you manage them:
rpk cloud resource-group create prod-rg staging-rg # create multiple
rpk cloud resource-group list
rpk cloud resource-group delete prod-rg --no-confirm # --no-confirm skips the interactive prompt
BYOC Agent Provisioning
For BYOC clusters, Redpanda runs an agent in your cloud account that provisions the full cluster via Terraform. The rpk cloud byoc plugin wraps that Terraform invocation:
- Create the cluster in the Redpanda Cloud UI → get a
--redpanda-id
rpk cloud byoc install --redpanda-id <id> — download the pinned plugin version
rpk cloud byoc <aws|gcp|azure> apply --redpanda-id <id> — run Terraform to create the agent
rpk cloud byoc <aws|gcp|azure> destroy --redpanda-id <id> — tear it down
rpk cloud byoc validate — validate credentials/prerequisites (uses latest plugin)
The plugin version is pinned to what the control plane specifies for your cluster. Set RPK_CLOUD_SKIP_VERSION_CHECK=1 to skip the version enforcement (development use only).
MCP Server for AI Agents
rpk cloud mcp runs an MCP (Model Context Protocol) server that exposes Redpanda Cloud management tools to AI assistants such as Claude Desktop and Claude Code.
Three subcommands:
| Subcommand |
Description |
stdio |
Run the MCP server on stdio (the transport an MCP client calls) |
install |
Write the MCP config entry into Claude Desktop or Claude Code (--client is required; accepted values: claude, claude-code) |
proxy |
Proxy MCP requests to a remote MCP server inside a cluster (--mcp-server-id required; one of --cluster-id or --serverless-cluster-id required) |
The stdio server exposes tools across the full Redpanda Cloud API surface:
- Control Plane: clusters, serverless clusters, networks, resource groups, regions, IAM (roles, role bindings, service accounts, users)
- Data Plane (per cluster): topics, ACLs, users, secrets, pipelines, quotas, transforms, AI agents, MCP servers, knowledge bases
- AI Gateway: gateways, models, guardrails, rate limits, spend limits, OAuth2 clients, SSO, and more
By default, delete operations are disabled. Pass --allow-delete to enable them.
Quick install to Claude Code:
rpk cloud login --no-profile # authenticate first
rpk cloud mcp install --client claude-code
# writes to ~/.claude.json
Quick install to Claude Desktop:
rpk cloud mcp install --client claude
# writes to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)
Enterprise Data Features on Cloud Clusters
Redpanda Cloud is a managed deployment of Redpanda Enterprise Edition — the license is supplied by the platform, so the enterprise differentiators are available without applying your own key. After rpk cloud cluster select wires a profile to the cluster, you drive these enterprise data-plane features with the normal rpk topic, rpk cluster config, and rpk cluster storage commands:
| Feature |
How to use it |
Key config / commands |
| Mountable Topics (Tiered Storage mount/unmount — migration & DR) |
rpk cluster storage commands route to the Cloud CloudStorageService |
list-mountable, mount [TOPIC] --to NS/NAME, unmount, list-mount --filter, status-mount <ID>, cancel-mount <ID>. Cloud allows only the kafka namespace |
| Iceberg Topics |
Enable on cluster, then set per-topic mode |
Cluster: iceberg_enabled, iceberg_default_catalog_namespace. Topic: redpanda.iceberg.mode (key_value/value_schema_id_prefix/value_schema_latest/disabled), redpanda.iceberg.delete, redpanda.iceberg.partition.spec, redpanda.iceberg.target.lag.ms, redpanda.iceberg.invalid.record.action (dlq_table/drop) |
| Cloud Topics |
Object-storage-native topic mode |
redpanda.cloud_topic.enabled, or redpanda.storage.mode = local/tiered/cloud/unset |
| Tiered Storage retention |
Per-topic Tiered Storage / local retention |
redpanda.remote.read, redpanda.remote.write, redpanda.remote.delete, initial.retention.local.target.bytes/.ms |
| RBAC / IAM |
Org roles/bindings + cluster roles/ACLs |
Control plane: RoleService, RoleBindingService, ServiceAccountService. Data plane: rpk security role, rpk security acl, rpk security user |
All of the above are Enterprise features (licensed by the Cloud platform). The MCP server (rpk cloud mcp) exposes the same CloudStorageService, TopicService, IAM RoleService/RoleBindingService, and data-plane SecurityService/ACLService RPCs to AI agents; delete RPCs require --allow-delete. See enterprise-data-features.md and rbac-and-iam.md.
Reference Directory
- login-and-auth.md:
rpk cloud login flags, SSO vs client-credentials flow, rpk cloud auth subcommands (list/use/delete/token), RPK_CLOUD_CLIENT_ID/SECRET env vars, and token storage in rpk.yaml.
- clusters-and-resourcegroups.md:
rpk cloud cluster select mechanics, how the profile is wired, --serverless-network flag, and full rpk cloud resource-group subcommand reference.
- byoc.md: BYOC plugin install/apply/destroy/validate lifecycle,
--redpanda-id, provider subcommands (aws/gcp/azure), RPK_CLOUD_SKIP_VERSION_CHECK, and how the plugin downloads and pins to the cluster's Terraform version.
- enterprise-data-features.md: Enterprise data-plane features driven against a Cloud cluster — Mountable Topics (
rpk cluster storage mount/unmount/list-mountable/list-mount/status-mount/cancel-mount, Cloud CloudStorageService, kafka-namespace restriction, migration IDs), Iceberg Topics (iceberg_enabled, redpanda.iceberg.mode/delete/partition.spec/target.lag.ms/invalid.record.action with values and defaults), Cloud Topics (cluster prerequisite cloud_topics_enabled=true, topic-level redpanda.cloud_topic.enabled, redpanda.storage.mode), and Tiered Storage topic-level retention (redpanda.remote.read/write/delete, initial.retention.local.target.*). All Enterprise features, licensed by the Cloud platform.
- rbac-and-iam.md: RBAC on Cloud — control-plane IAM (
OrganizationService, PermissionService, RoleService, RoleBindingService, ServiceAccountService, UserService, UserInviteService) vs data-plane security (SecurityService cluster roles, ACLService, UserService; rpk security role/acl/user), how RBAC relates to rpk cloud login / auth token, and the MCP --allow-delete requirement for delete RPCs. Enterprise feature.
Source: redpanda-data/skills — distributed by TomeVault.
1---2name: redpanda-data-skills-rpk-cloud3description: rpk cloud: Authenticate & Manage Redpanda Cloud4---56# rpk cloud: Authenticate & Manage Redpanda Cloud78`rpk cloud` is the command group that connects rpk to Redpanda Cloud. It handles authentication (SSO and client credentials), profile creation, cluster selection, resource-group management, BYOC agent provisioning, and the MCP server integration for AI agents.910The seven top-level subgroups are:1112| Subcommand | What it does |13|---|---|14| `rpk cloud login` | Authenticate to Redpanda Cloud (SSO or client credentials) |15| `rpk cloud logout` | Clear the stored auth token |16| `rpk cloud auth` | Manage named cloud authentications in rpk.yaml |17| `rpk cloud cluster` | Select a Cloud cluster (wires a profile to it) |18| `rpk cloud resource-group` | Create/list/delete resource groups (billing containers) |19| `rpk cloud byoc` | Install and run the BYOC agent plugin (Terraform) |20| `rpk cloud mcp` | Run or install the MCP server for AI agent integration |2122## Quickstart2324```bash25# 1. Log in via SSO (opens browser automatically)26rpk cloud login2728# 1b. Log in with client credentials (headless / CI)29rpk cloud login \30 --client-id "abc123" \31 --client-secret "secret456" \32 --save # persist to rpk.yaml for token refresh3334# 1c. Same, via environment variables (no flags needed)35export RPK_CLOUD_CLIENT_ID=abc12336export RPK_CLOUD_CLIENT_SECRET=secret45637rpk cloud login --no-profile # skip interactive cluster-select3839# 2. Select a Cloud cluster — wires your rpk profile to it40rpk cloud cluster select # interactive prompt41rpk cloud cluster select my-cluster-name # by name42rpk cloud cluster select my-cluster-name --serverless-network public4344# 3. Verify the profile is active and talk to the cluster45rpk topic list # uses the profile set by cluster select4647# 4. Print the current bearer token (useful for API calls)48rpk cloud auth token4950# 5. List all stored cloud authentications51rpk cloud auth list5253# 6. Manage resource groups54rpk cloud resource-group list55rpk cloud resource-group create my-rg56rpk cloud resource-group delete my-rg --no-confirm5758# 7. BYOC: install the plugin and apply for a cluster59rpk cloud byoc install --redpanda-id <cluster-id>60rpk cloud byoc aws apply --redpanda-id <cluster-id>61rpk cloud byoc gcp apply --redpanda-id <cluster-id>62rpk cloud byoc azure apply --redpanda-id <cluster-id>6364# 8. MCP: install into Claude Code (so the AI can manage your cloud)65rpk cloud login --no-profile66rpk cloud mcp install --client claude-code6768# 8b. MCP: run the stdio server directly (MCP client calls this)69rpk cloud mcp stdio70rpk cloud mcp stdio --allow-delete # also expose destructive RPCs71```7273## Authentication Model7475Redpanda Cloud uses **Auth0** under the hood. `rpk cloud login` runs either:7677- **SSO flow (OAuth device-authorization flow)**: opens your browser to the Redpanda Cloud login page (Auth0 device flow). The CLI polls for the device code to be authorized; once approved, Auth0 issues a bearer token that is stored in `rpk.yaml`. When `--no-browser` is used, the URL and device code are printed to the terminal so you can complete the flow manually on another machine.78- **Client credentials flow**: exchanges a `client_id` + `client_secret` for a bearer token without a browser. Client credentials are created in the **Clients** tab of the Users section in the Redpanda Cloud UI.7980Token and client ID are always persisted to `rpk.yaml`. The client secret is only persisted when you pass `--save`.8182Priority order for client credentials (highest to lowest):83841. `client_id` / `client_secret` fields in the active `rpk cloud auth` entry in `rpk.yaml`852. `RPK_CLOUD_CLIENT_ID` / `RPK_CLOUD_CLIENT_SECRET` environment variables863. `--client-id` / `--client-secret` flags8788When no credentials are provided, rpk falls back to SSO.8990## Flags Available on `rpk cloud login`9192| Flag | Type | Description |93|---|---|---|94| `--client-id` | string | Client ID from Redpanda Cloud |95| `--client-secret` | string | Client secret from Redpanda Cloud |96| `--no-browser` | bool | Disable auto-opening the browser for SSO |97| `--save` | bool | Persist client secret to rpk.yaml |98| `--no-profile` | bool | Skip the automatic cloud-profile creation/prompt |99100## Cloud Auth Subcommands101102`rpk cloud auth` stores multiple named authentications in `rpk.yaml` for users who have multiple Cloud organizations or want to switch between SSO and client-credential auth. Subcommands:103104- `list` (`ls`) — list all cloud auths (current is marked with `*`)105- `use <NAME>` — switch the active cloud auth106- `delete <NAME>` — remove a cloud auth from rpk.yaml107- `token` — print the current bearer token to stdout108109> `rpk cloud auth create`, `rpk cloud auth rename-to`, and `rpk cloud auth edit` are deprecated/hidden no-ops; use `rpk cloud login` instead.110111## Cluster Select & Profile Wiring112113`rpk cloud cluster select [NAME]` is equivalent to `rpk profile create --from-cloud=NAME`. It calls the Redpanda Cloud control-plane API, retrieves the cluster's data-plane URL, and writes the broker/admin/registry endpoints into the active rpk profile (default profile name: `rpk-cloud`). After this, plain `rpk topic list` (no flags) talks to the Cloud cluster.114115For Serverless clusters that offer both public and private networking, use `--serverless-network public|private` to avoid an interactive prompt.116117## Resource Groups118119Resource groups are organizational containers (the billing/account boundary) in Redpanda Cloud. The `rpk cloud resource-group` command (aliases: `namespace`, `ns`) lets you manage them:120121```bash122rpk cloud resource-group create prod-rg staging-rg # create multiple123rpk cloud resource-group list124rpk cloud resource-group delete prod-rg --no-confirm # --no-confirm skips the interactive prompt125```126127## BYOC Agent Provisioning128129For BYOC clusters, Redpanda runs an agent in your cloud account that provisions the full cluster via Terraform. The `rpk cloud byoc` plugin wraps that Terraform invocation:1301311. Create the cluster in the Redpanda Cloud UI → get a `--redpanda-id`1322. `rpk cloud byoc install --redpanda-id <id>` — download the pinned plugin version1333. `rpk cloud byoc <aws|gcp|azure> apply --redpanda-id <id>` — run Terraform to create the agent1344. `rpk cloud byoc <aws|gcp|azure> destroy --redpanda-id <id>` — tear it down1355. `rpk cloud byoc validate` — validate credentials/prerequisites (uses latest plugin)136137The plugin version is pinned to what the control plane specifies for your cluster. Set `RPK_CLOUD_SKIP_VERSION_CHECK=1` to skip the version enforcement (development use only).138139## MCP Server for AI Agents140141`rpk cloud mcp` runs an MCP (Model Context Protocol) server that exposes Redpanda Cloud management tools to AI assistants such as Claude Desktop and Claude Code.142143Three subcommands:144145| Subcommand | Description |146|---|---|147| `stdio` | Run the MCP server on stdio (the transport an MCP client calls) |148| `install` | Write the MCP config entry into Claude Desktop or Claude Code (`--client` is required; accepted values: `claude`, `claude-code`) |149| `proxy` | Proxy MCP requests to a remote MCP server inside a cluster (`--mcp-server-id` required; one of `--cluster-id` or `--serverless-cluster-id` required) |150151The `stdio` server exposes tools across the full Redpanda Cloud API surface:152- Control Plane: clusters, serverless clusters, networks, resource groups, regions, IAM (roles, role bindings, service accounts, users)153- Data Plane (per cluster): topics, ACLs, users, secrets, pipelines, quotas, transforms, AI agents, MCP servers, knowledge bases154- AI Gateway: gateways, models, guardrails, rate limits, spend limits, OAuth2 clients, SSO, and more155156By default, **delete operations are disabled**. Pass `--allow-delete` to enable them.157158Quick install to Claude Code:159160```bash161rpk cloud login --no-profile # authenticate first162rpk cloud mcp install --client claude-code163# writes to ~/.claude.json164```165166Quick install to Claude Desktop:167168```bash169rpk cloud mcp install --client claude170# writes to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)171```172173## Enterprise Data Features on Cloud Clusters174175Redpanda Cloud is a managed deployment of **Redpanda Enterprise Edition** — the license is supplied by the platform, so the enterprise differentiators are available without applying your own key. After `rpk cloud cluster select` wires a profile to the cluster, you drive these enterprise data-plane features with the normal `rpk topic`, `rpk cluster config`, and `rpk cluster storage` commands:176177| Feature | How to use it | Key config / commands |178|---|---|---|179| **Mountable Topics** (Tiered Storage mount/unmount — migration & DR) | `rpk cluster storage` commands route to the Cloud `CloudStorageService` | `list-mountable`, `mount [TOPIC] --to NS/NAME`, `unmount`, `list-mount --filter`, `status-mount <ID>`, `cancel-mount <ID>`. Cloud allows only the `kafka` namespace |180| **Iceberg Topics** | Enable on cluster, then set per-topic mode | Cluster: `iceberg_enabled`, `iceberg_default_catalog_namespace`. Topic: `redpanda.iceberg.mode` (`key_value`/`value_schema_id_prefix`/`value_schema_latest`/`disabled`), `redpanda.iceberg.delete`, `redpanda.iceberg.partition.spec`, `redpanda.iceberg.target.lag.ms`, `redpanda.iceberg.invalid.record.action` (`dlq_table`/`drop`) |181| **Cloud Topics** | Object-storage-native topic mode | `redpanda.cloud_topic.enabled`, or `redpanda.storage.mode` = `local`/`tiered`/`cloud`/`unset` |182| **Tiered Storage retention** | Per-topic Tiered Storage / local retention | `redpanda.remote.read`, `redpanda.remote.write`, `redpanda.remote.delete`, `initial.retention.local.target.bytes`/`.ms` |183| **RBAC / IAM** | Org roles/bindings + cluster roles/ACLs | Control plane: `RoleService`, `RoleBindingService`, `ServiceAccountService`. Data plane: `rpk security role`, `rpk security acl`, `rpk security user` |184185All of the above are **Enterprise** features (licensed by the Cloud platform). The MCP server (`rpk cloud mcp`) exposes the same `CloudStorageService`, `TopicService`, IAM `RoleService`/`RoleBindingService`, and data-plane `SecurityService`/`ACLService` RPCs to AI agents; delete RPCs require `--allow-delete`. See [enterprise-data-features.md](references/enterprise-data-features.md) and [rbac-and-iam.md](references/rbac-and-iam.md).186187## Reference Directory188189- [login-and-auth.md](references/login-and-auth.md): `rpk cloud login` flags, SSO vs client-credentials flow, `rpk cloud auth` subcommands (list/use/delete/token), RPK_CLOUD_CLIENT_ID/SECRET env vars, and token storage in rpk.yaml.190- [clusters-and-resourcegroups.md](references/clusters-and-resourcegroups.md): `rpk cloud cluster select` mechanics, how the profile is wired, `--serverless-network` flag, and full `rpk cloud resource-group` subcommand reference.191- [byoc.md](references/byoc.md): BYOC plugin install/apply/destroy/validate lifecycle, `--redpanda-id`, provider subcommands (aws/gcp/azure), `RPK_CLOUD_SKIP_VERSION_CHECK`, and how the plugin downloads and pins to the cluster's Terraform version.192- [enterprise-data-features.md](references/enterprise-data-features.md): Enterprise data-plane features driven against a Cloud cluster — Mountable Topics (`rpk cluster storage mount/unmount/list-mountable/list-mount/status-mount/cancel-mount`, Cloud `CloudStorageService`, kafka-namespace restriction, migration IDs), Iceberg Topics (`iceberg_enabled`, `redpanda.iceberg.mode/delete/partition.spec/target.lag.ms/invalid.record.action` with values and defaults), Cloud Topics (cluster prerequisite `cloud_topics_enabled=true`, topic-level `redpanda.cloud_topic.enabled`, `redpanda.storage.mode`), and Tiered Storage topic-level retention (`redpanda.remote.read/write/delete`, `initial.retention.local.target.*`). All Enterprise features, licensed by the Cloud platform.193- [rbac-and-iam.md](references/rbac-and-iam.md): RBAC on Cloud — control-plane IAM (`OrganizationService`, `PermissionService`, `RoleService`, `RoleBindingService`, `ServiceAccountService`, `UserService`, `UserInviteService`) vs data-plane security (`SecurityService` cluster roles, `ACLService`, `UserService`; `rpk security role/acl/user`), how RBAC relates to `rpk cloud login` / `auth token`, and the MCP `--allow-delete` requirement for delete RPCs. Enterprise feature.194195---196> Source: [redpanda-data/skills](https://github.com/redpanda-data/skills) — distributed by [TomeVault](https://tomevault.io).197<!-- tomevault:4.0:skill_md:2026-06-15 -->