Proxy rule lists for Surge (iOS/macOS) and Clash Verge Rev (Windows). Both clients share the same .list rule files under surge/.
English · 中文
| File | Description |
|---|---|
blocked.list | Domains requiring proxy access (social media, AI services, etc.) |
unblock.list | Domestic domains routed directly |
openai.list | OpenAI / ChatGPT domains |
claude.list | Anthropic Claude domains |
google.list | Google services |
netflix.list | Netflix streaming |
telegram.list | Telegram messaging |
git clone https://github.com/turinglambdaai/proxy-rules.git
cd proxy-rulesReference the rule sets in your [Rule] section:
[Rule]
RULE-SET,https://raw.githubusercontent.com/turinglambdaai/proxy-rules/main/surge/openai.list,Proxy
RULE-SET,https://raw.githubusercontent.com/turinglambdaai/proxy-rules/main/surge/google.list,Proxy
RULE-SET,https://raw.githubusercontent.com/turinglambdaai/proxy-rules/main/surge/blocked.list,Proxy
RULE-SET,https://raw.githubusercontent.com/turinglambdaai/proxy-rules/main/surge/unblock.list,DIRECTPaste the contents of scripts/clash-verge.js into Subscription > Global Extend Script. It automatically groups proxy nodes by region and configures rule-providers pointing to this repository's surge/*.list files.
Generate a full Surge configuration from a subscription URL using scripts/sub.rkt (Racket):
Create
scripts/.envwith your subscription URL:SURGE_SUB_URL=https://your-subscription-urlCreate
scripts/surge-template.confwith your static Surge sections (General, Rule, Host, Rewrite, MITM, etc.), using{{PROXY_SECTION}}as a placeholder for proxy nodes.Run the converter:
racket scripts/sub.rkt
This outputs a complete Surge config to
surge/surge.conf.
proxy-rules/
├── surge/ # Rule files (manually maintained)
│ ├── blocked.list # Proxy-required domains
│ ├── unblock.list # Direct-connect domestic domains
│ ├── openai.list # OpenAI / ChatGPT
│ ├── claude.list # Anthropic Claude
│ ├── google.list # Google services
│ ├── netflix.list # Netflix
│ └── telegram.list # Telegram
└── scripts/
├── clash-verge.js # Clash Verge Rev global extend script
└── sub.rkt # Subscription-to-Surge config converter (Racket)
Edit the .list files under surge/ directly. After committing, Surge and Clash Verge will pull the updated rules on their next refresh cycle.
- Surge or Clash Verge Rev as the proxy client
- Racket (optional, only needed for subscription conversion with
sub.rkt)
Licensed under the MIT License.