ThisDay
V2EX  ›  Google

antigravity cli 怎么设置代理?

  •  
  •   ThisDay · 15h 7m ago · 800 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"
    

    环境变量不起作用

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

    目前用 graftcp 搞定了,就是不大优雅
    hyxhyx
        5
    hyxhyx  
       14h 43m ago
    Proxifier
    tyqing
        6
    tyqing  
       14h 28m ago
    agy.exe
    让这个走代理试试
    tyqing
        7
    tyqing  
       14h 24m 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
    webfrogs
        8
    webfrogs  
       12h 30m ago
    感谢楼主,我在 Linux 系统下,用评论里推荐的 graftcp 可以正常使用 antigravity cli 了。
    不过这 cli 每次打开都要去 google 授权是 bug 还是 feature 啊?
    如果用 ebpf 技术,基于进程进行 tcp hook 来处理代理逻辑应该会更优雅,不过目前没找到实现的项目
    billlee
        9
    billlee  
       11h 54m ago
    nayunfeng
        10
    nayunfeng  
       9h 47m ago
    proxybrige 试试
    erlking
        11
    erlking  
       9h 13m ago
    兄弟们不怕被封号吗?之前反代给 openclaw 用了几天号就封了,前段时间大赦天下才解开。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1334 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 60ms · UTC 23:47 · PVG 07:47 · LAX 16:47 · JFK 19:47
    ♥ Do have faith in what you're doing.