代理

代理

代理规则配置

不太好付款,可以直接淘宝购买

然后用代理美国地区

或者虚拟信用卡

可以用 clash verge

全局扩展覆盖配置

下面的配置需要自己根据原始的代理文件,进行调整,下面是我用 IGG 的订阅 + 自己的自定义组合

🔰 节点选择
openAI
REJECT

这三个类型都是原始订阅配置里面有的,如果没有要自己加或改名字
比如prepend-rules 我就配置了 REJECT 策略

这里面可以广告订阅执行 REJECT 策略,达到 Adguard 的效果
profile:
  store-selected: true

dns:
  use-system-hosts: false

prepend-rules:
  # msgstore.www.notion.so
  # cursor不需要代理可以直接访问
  - "DOMAIN-SUFFIX,cursor.com,DIRECT"
  - "DOMAIN-SUFFIX,cursor.sh,DIRECT"
  - "DOMAIN-SUFFIX,api2.cursor.sh,DIRECT"
  # notion的文件使用aws 服务 直连才能上传
  - "DOMAIN-SUFFIX,amazonaws.com,DIRECT"
  # 国内媒体
  - "DOMAIN-SUFFIX,bilibili.com,DIRECT"
  # rds
  - "DOMAIN-SUFFIX,rds.aliyuncs.com,DIRECT"
  - "DOMAIN-SUFFIX,redis.rds.aliyuncs.com,DIRECT"
  # 走代理
  - "DOMAIN-SUFFIX,docker.io,🔰 节点选择"
  - "DOMAIN-SUFFIX,docker.com,🔰 节点选择"
  - "DOMAIN-SUFFIX,notion.so,🔰 节点选择"
  # Claude
  - RULE-SET,Claude,openAI
  - RULE-SET,Gemini,openAI
  - RULE-SET,Openai,openAI
  # Geimi
  - "DOMAIN-SUFFIX,aistudio.google.com,openAI"
  - "DOMAIN-SUFFIX,gemini.google.com,openAI"
  # 日志 广告组
  - "DOMAIN-SUFFIX,umini.shujupie.com,REJECT"
  # 其他
  - RULE-SET,AD,REJECT
  - RULE-SET,EasyList,REJECT
  - RULE-SET,EasyListChina,REJECT
  - RULE-SET,EasyPrivacy,REJECT
  - RULE-SET,ProgramAD,REJECT
  - RULE-SET,秋风广告规则,REJECT

prepend-proxy-groups:
  - name: 🎯 REJECT
    type: select
    proxies:
      - REJECT
rule-providers:
  AD:
    type: http
    behavior: domain
    url: "<https://raw.githubusercontent.com/earoftoast/clash-rules/main/AD.yaml>"
    path: ./rules/AD.yaml
    interval: 86400

  EasyList:
    type: http
    behavior: domain
    url: "<https://raw.githubusercontent.com/earoftoast/clash-rules/main/EasyList.yaml>"
    path: ./rules/EasyList.yaml
    interval: 86400

  EasyListChina:
    type: http
    behavior: domain
    url: "<https://raw.githubusercontent.com/earoftoast/clash-rules/main/EasyListChina.yaml>"
    path: ./rules/EasyListChina.yaml
    interval: 86400

  EasyPrivacy:
    type: http
    behavior: domain
    url: "<https://raw.githubusercontent.com/earoftoast/clash-rules/main/EasyPrivacy.yaml>"
    path: ./rules/EasyPrivacy.yaml
    interval: 86400

  ProgramAD:
    type: http
    behavior: domain
    url: "<https://raw.githubusercontent.com/earoftoast/clash-rules/main/ProgramAD.yaml>"
    path: ./rules/ProgramAD.yaml
    interval: 86400
  秋风广告规则:
    type: http
    behavior: domain
    format: yaml
    path: ./rules/AWAvenue-Ads-Rule-Clash.yaml
    url: "<https://raw.githubusercontent.com/TG-Twilight/AWAvenue-Ads-Rule/main//Filters/AWAvenue-Ads-Rule-Clash.yaml>"
    interval: 86400

  Gemini:
    type: http
    behavior: classical
    url: "<https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Gemini/Gemini.yaml>"
    path: ./rules/Gemini.yaml
    interval: 86400
    

  Openai:
    type: http
    behavior: classical
    url: "<https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/OpenAI/OpenAI.yaml>"
    path: ./rules/Openai.yaml
    interval: 86400

  Bing:
    type: http
    behavior: classical
    url: "<https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Bing/Bing.yaml>"
    path: ./rules/Bing.yaml
    interval: 86400

  OneDrive:
    type: http
    behavior: classical
    url: "<https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/OneDrive/OneDrive.yaml>"
    path: ./rules/OneDrive.yaml
    interval: 86400

  Claude:
    type: http
    behavior: classical
    url: "<https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Claude/Claude.yaml>"
    path: ./rules/Claude.yaml
    interval: 86400

nvm设置默认版本

# mac
nvm alias default 18.20.7
nvm alias default 20.19.4
nvm alias default 22.20.0
v22.20.0
# windows
nvm use v22.20.0 --persistent

代理默认开启

# 打开编辑
open ~/.zshrc

# doing edit...

# 生效
source ~/.zshrc