Skip to content

Instantly share code, notes, and snippets.

@PrintNow
Last active March 18, 2025 08:06
Show Gist options
  • Save PrintNow/88ff951973da0b78aa7692a666a47606 to your computer and use it in GitHub Desktop.
Save PrintNow/88ff951973da0b78aa7692a666a47606 to your computer and use it in GitHub Desktop.
AI 分流规则(clash)
# ChatGPT
DOMAIN-SUFFIX,openai.com
DOMAIN-SUFFIX,chatgpt.com
DOMAIN-SUFFIX,oaistatic.com
# Grok
DOMAIN-SUFFIX,x.ai
DOMAIN-SUFFIX,grok.com
# Claude
DOMAIN-SUFFIX,claude.ai
# Cursor
DOMAIN-SUFFIX,cursor.com
DOMAIN-SUFFIX,cursor.sh
# Cloudflare 验证码
DOMAIN,challenges.cloudflare.com
# Google Gemini
DOMAIN,gemini.google.com
DOMAIN,aistudio.google.com
DOMAIN-SUFFIX,clients6.google.com
@PrintNow
Copy link
Author

用法:

rule-providers:
  ai: 
    type: http
    url: "https://gist.githubusercontent.com/PrintNow/88ff951973da0b78aa7692a666a47606/raw/ai-rules-clash.txt"
    format: text
    behavior: classical
    path: ./ruleset/ai.yaml
    interval: 86400

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment