# Switch Region

Our Sandbox supports multi-region switching. You can select the appropriate region based on your actual needs. The currently supported regions are listed below:

| Region  | Description              | Domain                          |
| ------- | ------------------------ | ------------------------------- |
| cn-wlcb | North China (Ulanqab)    | cn-wlcb.sandbox.ucloudai.com    |
| us-ca   | United States (Los Angeles) | us-ca.sandbox.ucloudai.com   |

By default, the `cn-wlcb` region is used. The following describes how to switch to other regions.

> ⚠️ Note: Sandbox instances and template data are isolated across regions and are not shared. Your custom templates must be built separately in each region.

## Switch Region via SDK

You can switch regions by setting the `AGENTBOX_REGION` environment variable. (Requires SDK version >= `1.2.0`)

```bash
export AGENTBOX_REGION=xxx
```

For example, if you want to deploy the sandbox in North America, set the environment variable to `us-ca`.

## Switch Region via CLI

Run the following command to switch regions with one click. (Requires CLI version >= `1.0.3`)

```bash
ucloud-sandbox-cli region
```

The CLI will prompt you to select a region. Once selected, it will take effect globally.
