From a9843c3a7889f745fcf1d8a2c70a0a1ec75752ae Mon Sep 17 00:00:00 2001 From: zopiya Date: Sun, 26 Oct 2025 14:40:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0Clash=E8=A7=84?= =?UTF-8?q?=E5=88=99=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加proxy.txt、direct.txt、dev.txt和ai.txt四个规则配置文件 分别用于代理规则、直连规则、开发工具规则和AI服务规则 --- ai.txt | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ dev.txt | 51 ++++++++++++++++++++++++++++++++++++++++++ direct.txt | 17 ++++++++++++++ proxy.txt | 10 +++++++++ 4 files changed, 143 insertions(+) create mode 100644 ai.txt create mode 100644 dev.txt create mode 100644 direct.txt create mode 100644 proxy.txt diff --git a/ai.txt b/ai.txt new file mode 100644 index 0000000..8192e72 --- /dev/null +++ b/ai.txt @@ -0,0 +1,65 @@ +# AI Services Rules +# Format: Clash Rule Provider (domain behavior) +# Update: 2025-10-26 + +payload: + # OpenAI + - DOMAIN-SUFFIX,openai.com + - DOMAIN-SUFFIX,chatgpt.com + - DOMAIN-SUFFIX,oaistatic.com + - DOMAIN-SUFFIX,oaiusercontent.com + - DOMAIN-SUFFIX,openaiapi-site.azureedge.net + - DOMAIN-SUFFIX,openaicom.imgix.net + - DOMAIN,chat.openai.com.cdn.cloudflare.net + - DOMAIN,openai-api.arkoselabs.com + - DOMAIN,openaicom-api-bdcpf8c6d2e9atf6.z01.azurefd.net + - DOMAIN,openaicomproductionae4b.blob.core.windows.net + - DOMAIN,production-openaicom-storage.azureedge.net + - DOMAIN-KEYWORD,openai + + # Anthropic (Claude) + - DOMAIN-SUFFIX,anthropic.com + - DOMAIN-SUFFIX,claude.ai + - DOMAIN-KEYWORD,anthropic + - DOMAIN-KEYWORD,claude + + # Google AI + - DOMAIN-SUFFIX,gemini.google.com + - DOMAIN,generativelanguage.googleapis.com + - DOMAIN-SUFFIX,bard.google.com + + # Microsoft AI + - DOMAIN-SUFFIX,bing.com + - DOMAIN-SUFFIX,copilot.microsoft.com + + # Other AI Services + - DOMAIN-SUFFIX,openrouter.ai + - DOMAIN-SUFFIX,perplexity.ai + - DOMAIN-SUFFIX,character.ai + - DOMAIN-SUFFIX,poe.com + - DOMAIN-SUFFIX,midjourney.com + - DOMAIN-SUFFIX,stability.ai + + # AI Infrastructure + - DOMAIN-SUFFIX,chatgpt.livekit.cloud + - DOMAIN-SUFFIX,host.livekit.cloud + - DOMAIN-SUFFIX,turn.livekit.cloud + - DOMAIN-SUFFIX,algolia.net + - DOMAIN-SUFFIX,auth0.com + - DOMAIN-SUFFIX,client-api.arkoselabs.com + - DOMAIN-SUFFIX,events.statsigapi.net + - DOMAIN-SUFFIX,featuregates.org + - DOMAIN-SUFFIX,identrust.com + - DOMAIN-SUFFIX,intercom.io + - DOMAIN-SUFFIX,intercomcdn.com + - DOMAIN-SUFFIX,launchdarkly.com + - DOMAIN-SUFFIX,observeit.net + - DOMAIN-SUFFIX,segment.io + - DOMAIN-SUFFIX,sentry.io + - DOMAIN,api.statsig.com + - DOMAIN,browser-intake-datadoghq.com + - DOMAIN,static.cloudflareinsights.com + + # AI IP Ranges + - IP-CIDR,24.199.123.28/32,no-resolve + - IP-CIDR,64.23.132.171/32,no-resolve \ No newline at end of file diff --git a/dev.txt b/dev.txt new file mode 100644 index 0000000..a2c5b30 --- /dev/null +++ b/dev.txt @@ -0,0 +1,51 @@ +# Development Tools Rules +# Format: Clash Rule Provider (domain behavior) +# Update: 2025-10-26 + +payload: + # Git & Version Control + - DOMAIN-SUFFIX,github.com + - DOMAIN-SUFFIX,githubusercontent.com + - DOMAIN-SUFFIX,github.io + - DOMAIN-SUFFIX,githubassets.com + - DOMAIN-SUFFIX,gitlab.com + - DOMAIN-SUFFIX,gitee.com + - DOMAIN-SUFFIX,bitbucket.org + + # Package Managers + - DOMAIN-SUFFIX,npmjs.org + - DOMAIN-SUFFIX,npmjs.com + - DOMAIN-SUFFIX,yarnpkg.com + - DOMAIN-SUFFIX,pypi.org + - DOMAIN-SUFFIX,pythonhosted.org + - DOMAIN-SUFFIX,rubygems.org + - DOMAIN-SUFFIX,packagist.org + - DOMAIN-SUFFIX,crates.io + - DOMAIN-SUFFIX,maven.org + - DOMAIN-SUFFIX,gradle.org + + # Container & Cloud + - DOMAIN-SUFFIX,docker.com + - DOMAIN-SUFFIX,docker.io + - DOMAIN-SUFFIX,dockerhub.com + - DOMAIN-SUFFIX,gcr.io + - DOMAIN-SUFFIX,k8s.io + - DOMAIN-SUFFIX,kubernetes.io + + # CDN & Hosting + - DOMAIN-SUFFIX,jsdelivr.net + - DOMAIN-SUFFIX,unpkg.com + - DOMAIN-SUFFIX,cdnjs.com + - DOMAIN-SUFFIX,cloudflare.com + + # Documentation & Community + - DOMAIN-SUFFIX,stackoverflow.com + - DOMAIN-SUFFIX,stackexchange.com + - DOMAIN-SUFFIX,readthedocs.io + - DOMAIN-SUFFIX,readthedocs.org + + # Development Platforms + - DOMAIN-SUFFIX,vercel.com + - DOMAIN-SUFFIX,netlify.com + - DOMAIN-SUFFIX,heroku.com + - DOMAIN-SUFFIX,railway.app \ No newline at end of file diff --git a/direct.txt b/direct.txt new file mode 100644 index 0000000..ae50cd9 --- /dev/null +++ b/direct.txt @@ -0,0 +1,17 @@ +# Custom Direct Rules +# Format: Clash Rule Provider (domain behavior) +# Update: 2025-10-26 +# Usage: 添加希望直连的域名(不走代理) + +payload: + # 示例:国内镜像站 + - DOMAIN-SUFFIX,mirrors.tuna.tsinghua.edu.cn + - DOMAIN-SUFFIX,mirrors.aliyun.com + - DOMAIN-SUFFIX,mirrors.163.com + + # 示例:本地服务 + - DOMAIN-SUFFIX,local.dev + - DOMAIN-SUFFIX,localhost + + # 在下方添加你的自定义规则 + # - DOMAIN-SUFFIX,example.com \ No newline at end of file diff --git a/proxy.txt b/proxy.txt new file mode 100644 index 0000000..5e9b1a8 --- /dev/null +++ b/proxy.txt @@ -0,0 +1,10 @@ +# Custom Proxy Rules +# Format: Clash Rule Provider (domain behavior) +# Update: 2025-10-26 +# Usage: 添加你希望走代理的域名 + +payload: + # 示例:特定服务 + # - DOMAIN-SUFFIX,example.com + + # 在下方添加你的自定义规则 \ No newline at end of file