# Surge 使用手册

## Surge 使用手册

- [简介](https://surge.mitsea.com/readme.md)
- [总览](https://surge.mitsea.com/overview.md)
- [组件](https://surge.mitsea.com/overview/components.md)
- [配置文件](https://surge.mitsea.com/overview/configuration.md)
- [代理规则](https://surge.mitsea.com/rule.md)
- [域名规则](https://surge.mitsea.com/rule/domain-based.md)
- [IP 地址规则](https://surge.mitsea.com/rule/ip-based.md)
- [HTTP 规则](https://surge.mitsea.com/rule/http.md)
- [进程规则](https://surge.mitsea.com/rule/process.md)
- [逻辑规则](https://surge.mitsea.com/rule/logical-rule.md)
- [子网表达式与规则](https://surge.mitsea.com/rule/subnet.md)
- [杂项规则](https://surge.mitsea.com/rule/misc-rule.md)
- [规则集](https://surge.mitsea.com/rule/ruleset.md)
- [最终规则](https://surge.mitsea.com/rule/final.md)
- [代理策略](https://surge.mitsea.com/policy.md)
- [内置策略](https://surge.mitsea.com/policy/built-in.md)
- [REJECT 策略](https://surge.mitsea.com/policy/reject.md)
- [代理策略](https://surge.mitsea.com/policy/proxy.md)
- [WireGuard](https://surge.mitsea.com/policy/wireguard.md)
- [SSH](https://surge.mitsea.com/policy/ssh.md)
- [通用策略参数](https://surge.mitsea.com/policy/parameters.md)
- [外部代理程序](https://surge.mitsea.com/policy/external-proxy.md)
- [策略组](https://surge.mitsea.com/policy-group.md)
- [手动选择组](https://surge.mitsea.com/policy-group/select.md)
- [自动测试组](https://surge.mitsea.com/policy-group/url-test.md)
- [可用性测试组](https://surge.mitsea.com/policy-group/fallback.md)
- [子网组](https://surge.mitsea.com/policy-group/subnet.md)
- [负载均衡组](https://surge.mitsea.com/policy-group/load-balance.md)
- [引入策略群组](https://surge.mitsea.com/policy-group/policy-including.md)
- [通用参数](https://surge.mitsea.com/policy-group/common-parameters.md)
- [DNS](https://surge.mitsea.com/dns.md)
- [DNS 服务器](https://surge.mitsea.com/dns/dns-override.md)
- [本地 DNS 映射](https://surge.mitsea.com/dns/local-dns-mapping.md)
- [加密 DNS](https://surge.mitsea.com/dns/doh.md)
- [HTTP 处理](https://surge.mitsea.com/http-processing.md)
- [HTTPS 解密](https://surge.mitsea.com/http-processing/mitm.md)
- [URL 重写](https://surge.mitsea.com/http-processing/url-rewrite.md)
- [请求头重写](https://surge.mitsea.com/http-processing/header-rewrite.md)
- [请求体重写](https://surge.mitsea.com/http-processing/body-rewrite.md)
- [Mock (本地映射)](https://surge.mitsea.com/http-processing/mock.md)
- [脚本](https://surge.mitsea.com/scripting.md)
- [基础](https://surge.mitsea.com/scripting/common.md)
- [HTTP 请求](https://surge.mitsea.com/scripting/http-request.md)
- [HTTP 响应](https://surge.mitsea.com/scripting/http-response.md)
- [规则](https://surge.mitsea.com/scripting/rule.md)
- [事件](https://surge.mitsea.com/scripting/event.md)
- [DNS](https://surge.mitsea.com/scripting/dns.md)
- [计划任务](https://surge.mitsea.com/scripting/cron.md)
- [其他](https://surge.mitsea.com/others.md)
- [杂项选项](https://surge.mitsea.com/others/misc-options.md)
- [托管配置](https://surge.mitsea.com/others/managed-profile.md)
- [增强模式](https://surge.mitsea.com/others/enhanced-mode.md)
- [子网设置](https://surge.mitsea.com/others/subnet-settings.md)
- [Host List 参数类型](https://surge.mitsea.com/others/host-list.md)
- [URL Scheme](https://surge.mitsea.com/others/url-scheme.md)
- [模块](https://surge.mitsea.com/others/module.md)
- [HTTP API](https://surge.mitsea.com/others/http-api.md)
- [信息面板](https://surge.mitsea.com/others/panel.md)
- [端口转发](https://surge.mitsea.com/others/port-forwarding.md)
- [Surge Mac CLI](https://surge.mitsea.com/others/cli.md)
- [更新日志](https://surge.mitsea.com/release-note.md)
- [Surge Mac](https://surge.mitsea.com/release-note/surge-mac.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information, you can query the documentation dynamically by asking a question.
Perform an HTTP GET request on a page URL with the `ask` query parameter:
```
GET https://surge.mitsea.com/readme.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.
