# 添加配置/订阅

#### 支持的协议

目前应用程序支持以下配置类型：

* **VLESS**
* **VMess**
* **Socks5**
* **Trojan**
* **Shadowsocks**
* **Hysteria2**

配置可以通过三种方式添加：

1. **手动添加**
2. **通过 URL 链接添加**
3. **添加订阅**

***

#### 1. 手动添加

要手动添加配置，请按以下步骤操作：

1. 点击主屏幕右上角的 **“+”** 按钮。
2. 选择 **“手动输入”** 选项。
3. 从列表中选择所需的协议。
4. 填写所有必填字段并输入相应的参数。
5. 点击窗口右上角的 **“完成”** 按钮以保存配置。

保存后，该配置将在主屏幕的 **“服务器列表”** 部分显示。

***

#### 2. 通过 URL 链接添加

应用程序支持通过 URL 链接添加配置。支持的链接格式包括：

* `vmess://`
* `vless://`
* `socks://`
* `trojan://`
* `ss://`
* `hysteria2://`
* `hy2://`

可以通过以下方式将链接传递给应用程序：

* 从剪贴板复制
* 扫描二维码
* 使用深度链接

***

#### 3. 添加订阅

应用程序支持两种类型的订阅：

* **加密订阅：**\
  链接以 `happ://crypto...` 开头。使用加密订阅时，服务器设置和订阅地址均为隐藏状态。
* **标准订阅：**\
  这是一个包含公开服务器配置的标准 Web URL。

订阅可以通过以下方式添加：

* 剪贴板
* 二维码
* 深度链接


---

# 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://www.happ.su/main/zh/faq/adding-configuration-subscription.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.
