---
title: rpk cloud login
latest-operator-version: v26.2.6
latest-console-tag: v3.14.0
latest-connect-version: 4.118.0
latest-redpanda-tag: v26.2.7
docname: rpk/rpk-cloud/rpk-cloud-login
page-component-name: agentic-data-plane
page-version: master
page-component-version: master
page-component-title: Agentic Data Plane
page-relative-src-path: rpk/rpk-cloud/rpk-cloud-login.adoc
page-edit-url: https://github.com/redpanda-data/adp-docs/edit/main/modules/reference/pages/rpk/rpk-cloud/rpk-cloud-login.adoc
description: Log in to Redpanda Cloud. Each run starts a new login, even if <code>rpk.yaml</code> already has a valid token.
page-git-created-date: "2026-05-11"
page-git-modified-date: "2026-10-06"
page-generated-sources:
  - include: streaming:reference:partial$rpk-cloud/rpk-cloud-login.adoc
    generator: rpk-docs
    version: null
    source: the rpk command help in redpanda-data/streaming-enterprise
page-generated-content: partial
---

# rpk cloud login

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [agentic-data-plane-full.txt](https://docs.redpanda.com/agentic-data-plane-full.txt)

<!-- Source: https://docs.redpanda.com/agentic-data-plane/reference/rpk/rpk-cloud/rpk-cloud-login.md -->

Log in to Redpanda Cloud.

Each run starts a new login, even if `rpk.yaml` already has a valid token. The command saves the new Redpanda Cloud API token, together with the client ID used to request it, to `rpk.yaml`.

You can log in with single sign-on (SSO) or with the client credentials of a Redpanda Cloud service account. After you log in, `rpk` prompts you to select a cloud cluster and creates or switches to a profile for it, unless you pass `--no-profile`.

## Usage

```bash
rpk cloud login [flags]
```

## SSO

With SSO, `rpk` opens your default web browser at the Redpanda Cloud sign-in page and prints the same URL in the terminal. After you authenticate, you can use the `rpk cloud` commands.

To keep `rpk` from opening the browser, for example on a remote machine, pass `--no-browser`. `rpk` then prints only the URL, which you open yourself.

## Client credentials

Client credentials are the client ID and client secret of a Redpanda Cloud service account. Create the service account on the Organization IAM page in the Redpanda Cloud UI, then pass its credentials to `rpk` in one of these ways:

-   The `client_id` and `client_secret` fields of a `cloud_auth` entry in `rpk.yaml`

-   The `RPK_CLOUD_CLIENT_ID` and `RPK_CLOUD_CLIENT_SECRET` environment variables

-   The `--client-id` and `--client-secret` flags


If you set more than one, flags take priority over environment variables, which take priority over `rpk.yaml`. If you set none of them, `rpk` logs in with SSO.

Credentials passed through environment variables or flags are not written to `rpk.yaml` unless you also pass `--save`. Without `--save`, `rpk` can’t refresh the token automatically when it expires. The authorization token and the client ID are always written.

## Flags

| Value | Type | Description |
| --- | --- | --- |
| `--client-id` | string | Client ID of the Redpanda Cloud service account. |
| `--client-secret` | string | Client secret of the Redpanda Cloud service account. |
| `--no-browser` | bool | Don’t open the browser for SSO. Print the sign-in URL instead. |
| `--no-profile` | bool | Skip creating or switching to an `rpk` profile for a cloud cluster after login, and the prompts that go with it. |
| `--save` | bool | Save a client ID and client secret passed through environment variables or flags to `rpk.yaml`, so `rpk` can refresh the token automatically. |

## 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. |