# Shadowrocket

Shadowrocket（iOS）把**全部**设备流量——包括蜂窝、自带网络栈的应用——都通过配置好的代理转发。iOS 上最灵活的代理客户端。

## 添加代理

1. 打开 Shadowrocket → 右上 **+**。
2. 类型：**HTTPS**（如端口启用 TLS）或 **HTTP**（明文）。
3. 填写：

### 住宅 / 移动（网关型）

| 字段 | 值                                     |
| -- | ------------------------------------- |
| 类型 | HTTP                                  |
| 主机 | `gate.helodata.io`                    |
| 端口 | `7777`                                |
| 用户 | `helo_s1a2b3c4d5e-type-res-region-us` |
| 密码 | 子账号密码                                 |

### ISP

| 字段 | 值                  |
| -- | ------------------ |
| 类型 | HTTP               |
| 主机 | `198.51.100.42`    |
| 端口 | `8000`             |
| 用户 | `helo_s1a2b3c4d5e` |
| 密码 | 子账号密码              |

4. **保存** → 点击代理条目测试（Shadowrocket 报告延迟和出口 IP）。
5. 顶部开关从「未连接」打开开始转发。

\[screenshot: Shadowrocket 代理添加表单]

## SOCKS5

类型选 **Socks5**，主机/端口/凭证同上。Shadowrocket 正确处理 SOCKS5 认证握手并代理 DNS。

## 规则——仅特定应用 / 域名走代理

**Rules** 标签下可以让部分流量走 helodata，其他直连。

示例：仅 `example.com` 走代理，其余直连：

```
DOMAIN-SUFFIX,example.com,helo-residential
FINAL,DIRECT
```

其中 `helo-residential` 是你添加的代理名称。

## 验证

连接后在 Safari 打开 `https://ipv4.icanhazip.com`，应看到 helodata 的 IP。

## 常见陷阱

* **首次启动需安装 VPN 描述文件** — 同意即可，Shadowrocket 用 iOS Network Extension 捕获流量。
* **耗电** — 系统级流量代理耗电高于 Wi-Fi 代理，不用时关闭。
* **部分 App 检测 VPN 类路由** — 银行、部分流媒体在 Network Extension 激活时拒运行，请用按应用规则放行它们。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.helodata.com/helodata-zh/ji-cheng-zhi-nan/yi-dong-duan/shadowrocket.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
