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

# Switch Proxy

> Switch proxy settings on the Android device using ADB

The Switch Proxy command (Command Type: 3) switches proxy settings on the Android device using ADB.

## Command Type

**Command Type ID:** 3

## Parameters

| Parameter    | Type   | Description                                           | Required |
| ------------ | ------ | ----------------------------------------------------- | -------- |
| **host**     | string | Hostname or IP address of the proxy server            | Yes      |
| **port**     | string | Port number for the proxy server                      | Yes      |
| **protocol** | string | Protocol to use for the proxy (e.g., `http`, `https`) | Yes      |
| **auth**     | object | Authentication credentials for the proxy server       | No       |
| **link**     | Link   | Optional link for further proxy configuration         | No       |

### Link Object

| Field            | Type            | Description                                   | Required |
| ---------------- | --------------- | --------------------------------------------- | -------- |
| **targetId**     | string          | The identifier for the target of the link     | Yes      |
| **isValidation** | boolean         | Whether the LINK target uses validation       | Yes      |
| **countries**    | Array of string | The countries for the LINK target (ISO codes) | Yes      |

## Usage Examples

### Set HTTP Proxy

```json theme={null}
{
  "command": "switch-proxy",
  "params": {
    "host": "proxy.example.com",
    "port": "8080",
    "protocol": "http"
  }
}
```

### Set Proxy with Authentication

```json theme={null}
{
  "command": "switch-proxy",
  "params": {
    "host": "proxy.example.com",
    "port": "8080",
    "protocol": "http",
    "auth": {
      "username": "user",
      "password": "%{PROXY_PASSWORD}"
    }
  }
}
```

## Related Commands

* [Switch Timezone](/stream/commands/android/switch-timezone) - Switch device timezone
