ThisDay
V2EX  ›  Google

antigravity cli 怎么设置代理?

  •  
  •   ThisDay · 1h 24m ago · 188 views
    export HTTP_PROXY=http://127.0.0.1:10808
    export HTTPS_PROXY=http://127.0.0.1:10808
    export http_proxy=http://127.0.0.1:10808
    export https_proxy=http://127.0.0.1:10808
    export NO_PROXY="localhost,127.0.0.1,::1"
    export no_proxy="localhost,127.0.0.1,::1"
    

    环境变量不起作用

    7 replies    2026-05-20 17:22:25 +08:00
    longxinglink
        1
    longxinglink  
       1h 22m ago   ❤️ 1
    这坨,用 tun 解决不行么?
    ThisDay
        2
    ThisDay  
    OP
       1h 19m ago
    @longxinglink tun 倒是可以,但是太暴力了,规则写不好很多 cdn 都会被迫路由到国外,我需要单独设置的优雅方案
    hyqCrystal
        3
    hyqCrystal  
       1h 17m ago   ❤️ 1
    https://antifyapp.com/zh/ 你看看有用不
    ThisDay
        4
    ThisDay  
    OP
       1h 9m ago
    @hyqCrystal 感谢回复,但是我不是 mac 。

    目前用 graftcp 搞定了,就是不大优雅
    hyxhyx
        5
    hyxhyx  
       1h 0m ago
    Proxifier
    tyqing
        6
    tyqing  
       45 mins ago
    agy.exe
    让这个走代理试试
    tyqing
        7
    tyqing  
       41 mins ago
    [
    {
    "processNames": "v2rayN.exe;xray.exe;v2ray.exe;PanGPS.exe;PanGPA.exe;reqable.exe",
    "targetHosts": "*",
    "targetPorts": "*",
    "protocol": "BOTH",
    "action": "DIRECT",
    "enabled": true
    },
    {
    "processNames": "cursor.exe;Antigravity.exe;agy.exe;language_server.exe;Codex.exe;node.exe;git.exe;ssh.exe;WindowsTerminal.exe;Termius.exe",
    "targetHosts": "*",
    "targetPorts": "*",
    "protocol": "BOTH",
    "action": "PROXY",
    "enabled": true
    }
    ]

    这是我的代理配置,可以参考一下,我是 win11 系统,proxyBridge + v2rayN
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4406 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 10:03 · PVG 18:03 · LAX 03:03 · JFK 06:03
    ♥ Do have faith in what you're doing.