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

# Regions

> Deploy agents to geographic regions for optimal performance and compliance

Pipecat Cloud supports deploying agents to geographic regions, allowing you to reduce latency for your users and meet data residency requirements.

## Available Regions

You can view all available regions using the CLI:

```bash theme={null}
pipecat cloud regions list
```

Or via the [REST API](/api-reference/pipecat-cloud/rest-reference/endpoint/regions-list).

Available regions include:

* **us-west**: US West (Oregon)
* **us-east**: US East (Virginia)
* **eu-central**: Europe (Frankfurt)
* **ap-south**: Asia Pacific (Mumbai)

## Regional Requirements

When deploying agents and managing secrets, keep these requirements in mind:

* **Agent names are globally unique**: Each agent must have a unique name across all regions
* **Secret sets are region-specific (with globally unique names)**: Create a separate secret set in each region where you deploy agents
* **Image pull secrets are region-specific**: Create separate image pull secrets in each region if using private registries
* **Secrets must match agent regions**: An agent can only use secrets and image pull secrets from the same region

## Regional WebSocket Endpoints

When connecting to Pipecat Cloud via WebSocket for telephony services, you can specify a region to reduce latency and ensure your traffic stays within a geographic area.

### Default Endpoint

By default, WebSocket connections use the us-west:

```
wss://api.pipecat.daily.co/ws/{service}
```

Where `{service}` is one of:

* `twilio` - For Twilio WebSocket connections
* `telnyx` - For Telnyx WebSocket connections
* `plivo` - For Plivo WebSocket connections
* `exotel` - For Exotel WebSocket connections

### Regional Endpoints

To connect to a specific region, use the regional endpoint format:

```
wss://{region}.api.pipecat.daily.co/ws/{service}
```

**Example:**

Connect to Twilio in Europe:

```
wss://eu-central.api.pipecat.daily.co/ws/twilio
```

<Note>
  Regional WebSocket endpoints route to agents deployed in that region. Make
  sure your agent is deployed in the same region as the WebSocket endpoint
  you're connecting to.
</Note>

## Setting a Default Region

You can specify a default region for your organization via the [REST API](/api-reference/pipecat-cloud/rest-reference/endpoint/properties-update) or the [CLI](/api-reference/cli/cloud/organizations#default-region). If you don't specify a region, resources are created in your organization's default region.

## Deploying an Agent to a Region

This walkthrough will guide you through deploying an agent to a specific region.

### Step 1: Create a Secret Set

Create a secret set in your target region with the environment variables your agent needs.

```bash theme={null}
pipecat cloud secrets set my-agent-secrets \
  OPENAI_API_KEY=sk-xxx \
  DEEPGRAM_API_KEY=xxx \
  --region us-east
```

<Tip>
  Learn more about managing secrets in the
  [Secrets](/pipecat-cloud/fundamentals/secrets) guide.
</Tip>

### Step 2: Create a Deployment Configuration

Create a `pcc-deploy.toml` file in your project directory:

```toml theme={null}
agent_name = "my-agent"
region = "us-east"
secret_set = "my-agent-secrets"
agent_profile = "agent-1x"

[scaling]
min_agents = 1
max_agents = 10
```

<Tip>
  See the [deploy command
  reference](/api-reference/cli/cloud/deploy#configuration-file-pcc-deploytoml) for all
  available configuration options.
</Tip>

### Step 3: Deploy Your Agent

Deploy your agent using the configuration file:

```bash theme={null}
pipecat cloud deploy
```

The CLI will read your `pcc-deploy.toml` file and deploy the agent to the specified region. Once the deployment is ready, you can start sessions with your agent.

## Deploying to Multiple Regions

To serve users globally, repeat the steps above for each target region. Use region-specific naming for agents, secrets, and image pull secrets (e.g., `my-agent-us-east`, `my-agent-secrets-us-east`).

Your application determines which regional agent to connect users to based on their location, preferences, or latency requirements.

## Learn More

* [Deployments](/pipecat-cloud/fundamentals/deploy) - Comprehensive deployment guide
* [Secrets](/pipecat-cloud/fundamentals/secrets) - Managing secrets and credentials
