> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pipecat.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# pipecat cloud secrets

> pipecat cloud secrets manages secret sets for agent deployments: create, update, list, and delete sensitive configuration.

The `secrets` command group helps you manage sensitive information for your agent deployments. You can create and manage secret sets (key-value pairs) and image pull secrets (for private Docker registries).

## list

List secret sets and image pull secrets for active namespace / organization.
Each row includes a
[readiness status](https://docs.pipecat.ai/pipecat-cloud/fundamentals/secrets.md#provisioning-and-readiness)
(`ready`, `pending`, or `failed`).

If provided with a valid secret set name, will show the keys of that set
alongside its status (values are hidden).

**Usage:**

```shell theme={null}
pipecat cloud secrets list [ARGS] [OPTIONS]
```

**Arguments:**

**name** `string`

Name of the secret set list keys for. Must be a valid string identifier.

**Options:**

**--sets / -s** `boolean` (default: true)

Has no effect: the list always includes image pull secrets, and there is no
`--no-sets`.

**--organization / -o** `string`

Organization to list secrets for. If not provided, uses the current
organization from your configuration.

**--region / -r** `string`

Filter secrets by region. Only secrets in the specified region will be shown.
If not provided, secrets from all regions are listed.

## set

Create or update a secret set with the given name and key-value pairs. Secrets can be passed directly as key value pairs or loaded from a file.

**Usage:**

```shell theme={null}
pipecat cloud secrets set [ARGS] [OPTIONS]
```

**Arguments:**

**name** `string` *required*

Name of the secret set to create or modify. Letters, numbers, hyphens, and
underscores, starting and ending with a letter or number.

**secrets** `string`

List of secret key-value pairs e.g. `KEY1=value1 KEY2="value with spaces"`,
one pair per argument. Can't be combined with `--file`.

See [this note](https://docs.pipecat.ai/pipecat-cloud/fundamentals/secrets.md#special-characters) on using special
characters in secret values.

Example:

```shell theme={null}
pipecat cloud secrets set my-secrets API_KEY=123 API_KEY_2="value with spaces"
```

**Options:**

**--file / -f** `string`

Relative path to a file with a list of secret key-value pairs. Each line in
the file should be in the format `KEY=value`.

Example:

```shell theme={null}
pipecat cloud secrets set my-secrets --file .env
```

**--skip / -s** `boolean` (default: false)

Skip confirmations and proceed with the operation.

**--organization / -o** `string`

Organization to create/update the secret set in. If not provided, uses the
current organization from your configuration.

**--region / -r** `string`

Region where the secret set will be stored. If not specified, uses your
organization's default region (typically `us-west`). Secrets must be in the
same region as the agents that use them.

**Example:**

Create a secret set in a specific region:

```shell theme={null}
pipecat cloud secrets set my-secrets API_KEY=abc123 --region eu-central
```

## unset

Removes a specific secret key from a secret set.

**Usage:**

```shell theme={null}
pipecat cloud secrets unset [ARGS] [OPTIONS]
```

**Arguments:**

**name** `string` *required*

Name of the secret set to remove the secret from.

**secret\_key** `string` *required*

The key of the secret to remove from the set.

Example:

```shell theme={null}
pipecat cloud secrets unset my-secret-set SOME_KEY
```

**Options:**

**--skip / -s** `boolean` (default: false)

Skip confirmations and proceed with the operation.

**--organization / -o** `string`

Organization containing the secret set. If not provided, uses the current
organization from your configuration.

## delete

Deletes an entire secret set.

**Usage:**

```shell theme={null}
pipecat cloud secrets delete [ARGS] [OPTIONS]
```

**Arguments:**

**name** `string` *required*

Name of the secret set to delete. This action is irreversible.

**Options:**

**--skip / -s** `boolean` (default: false)

Skip confirmations and proceed with the operation.

**--organization / -o** `string`

Organization containing the secret set. If not provided, uses the current
organization from your configuration.

## image-pull-secret

Creates or updates credentials for pulling images from private Docker registries.

This command accepts image repository credentials as `username:password`,
base64-encodes them, and securely stores them. These credentials are used with
the [deploy](https://docs.pipecat.ai/api-reference/cli/cloud/deploy.md) command when pulling images from private repositories. If
a secret with the same name already exists, its credentials will be updated in
place. If you don't provide credentials directly, the command will prompt you for
input.

**Usage:**

```shell theme={null}
pipecat cloud secrets image-pull-secret [ARGS] [OPTIONS]
```

**Arguments:**

**name** `string` *required*

Name of the credentials set to create or modify. Must be a valid string
identifier.

**host** `string` *required*

Host address of the image repository e.g. `https://index.docker.io/v1/`.

**credentials** `string` (default: prompts for input)

Credentials for the image repository in the form of `username:password`.

Will prompt you for the value if not provided.

Example:

```shell theme={null}
pipecat cloud secrets image-pull-secret my-registry-creds https://index.docker.io/v1/ my-username:my-password
```

**Options:**

**--encode / -e** `boolean` (default: true)

Encode the credentials in base64 format. Always on: there is no `--no-encode`.

**--skip / -s** `boolean` (default: false)

Skip the confirmation prompt shown when the image pull secret already exists.
Required in CI — without it an update reaches a prompt with no terminal and
exits 2.

**--organization / -o** `string`

Organization to create the image pull secret in. If not provided, uses the
current organization from your configuration.

**--region / -r** `string`

Region where the image pull secret will be stored. If not specified, uses your
organization's default region (typically `us-west`). Image pull secrets must
be in the same region as the agents that use them.

**Examples:**

Create an image pull secret in a specific region:

```shell theme={null}
pipecat cloud secrets image-pull-secret my-registry-creds https://index.docker.io/v1/ --region eu-central
```

## reference

> [!NOTE]
>
> Available in `pipecatcloud` 1.2.0 or later, for
> organizations with self-hosted regions enabled. See
> [Pipecat Enterprise](https://docs.pipecat.ai/pipecat-cloud/enterprise/overview.md).

Reference an existing Kubernetes Secret in your self-hosted region's workloads namespace as a secret set. The Secret's name becomes the secret set name, and agents use it exactly as they use managed sets. The Secret stays in your cluster: Pipecat Cloud records only its name, region, type, and readiness — never its keys or values — and you keep managing its contents with your own tooling. See [Pipecat Enterprise Secrets](https://docs.pipecat.ai/pipecat-cloud/enterprise/secrets.md).

The Secret must already exist; the command verifies this against your region before recording the reference. A `docker-registry` Secret is registered as an image pull secret automatically.

**Usage:**

```shell theme={null}
pipecat cloud secrets reference [NAME] --region [REGION]
```

**Arguments:**

**name** `string` *required*

Name of the Kubernetes Secret in your workloads namespace. Becomes the secret
set name, which must be unique across your organization's managed and
referenced sets.

**Options:**

**--region / -r** `string` *required*

The self-hosted region containing the Secret. Required; Daily-hosted regions
are rejected.

**--organization / -o** `string`

Organization to create the reference in. If not provided, uses the current
organization from your configuration.

**Examples:**

```shell theme={null}
# Create the Secret in your cluster, then reference it
kubectl -n pipecat-agents create secret generic my-agent-secrets --from-literal=OPENAI_API_KEY=...
pipecat cloud secrets reference my-agent-secrets --region pce-acme-us-east
```

To remove a reference, use [`delete`](#delete); the Secret in your cluster is untouched. Referenced sets cannot be modified with `set` or `unset`.

***

> [card] [More about secrets](https://docs.pipecat.ai/pipecat-cloud/fundamentals/secrets.md)
>
> Learn more about managing application secrets


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.