一键解决 MacOS Antigravity 登录问题 无需开 tun 模式 告别复杂配置! - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
FreeLester
V2EX    分享创造

一键解决 MacOS Antigravity 登录问题 无需开 tun 模式 告别复杂配置!

  •  
  •   FreeLester 1 月 29 日 2893 次点击

    开发 Antify 的原因是 Proxifier 的使用太麻烦了 编写规则简直太劝退

    Antify 无需复杂配置,无需手动编写规则,只需一键拖动 Antigravity.app 到 Antify 即可自动配置所需规则。

    Antify 支持对任意 App 的无侵入代理

    官网: https://antifyapp.com/

    Antify 支持 macOS 14+

    用户需自备 SOCKS5/HTTP 代理

    欢迎大家多多试用,多多反馈,我会继续优化打磨 Antify 的。

    第 1 条附言    4 天前
    Antigravity 登录流程是 OAuth 2.0 for Native Apps ,在验证阶段使用了 MacOS WebKit 处理请求, 所以需要将 WebKit 的相关程序配置 Proxy:
    新建一条 rule:
    /System/Volumes/Preboot/Cryptexes/OS/System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.Networking.xpc
    这条 rule 在 Antigravity 登录时需要 enable ,登录后就可以 disable 了。

    更简单的方式是开启 Connections - Discovery Mode ,然后尝试登录 Antigravity ,在 Connections 中会看到 WebKit 的请求,在 UI 上点 “Add Rules”,把 WebKit 设置 Proxy 。
    57 条回复    2026-02-10 15:18:36 +08:00
    pheyer
        1
    pheyer  
       1 月 29 日
    666, Proxifier 的平替终于出来了
    ruanimal
        2
    ruanimal  
       1 月 29 日
    这个是什么原理的? linux 上能实现吗
    nginxxx
        3
    nginxxx  
       1 月 29 日
    舒服了,原版 ne 的体验,但是现在添加完 Antigravity 再添加 cursor 就显示冲突了,看看能不能冲突直接忽略覆盖
    fe619742721
        4
    fe619742721  
       1 月 29 日
    node 能添加吗
    GGGoing
        5
    GGGoing  
       1 月 29 日
    给力,有计划支持 win 版吗
    superkeke
        6
    superkeke  
       1 月 29 日
    能配合 surge 或者 fclash 使用吗
    hay0577
        7
    hay0577  
       1 月 29 日
    不行哎
    帮忙看看我这么配置对吗

    ![图片描述]( "鼠标悬停显示的文字")
    ![图片描述]( "鼠标悬停显示的文字")

    然后出现的问题就是我在 Antigravity 上点击登录 跳转到 网页的登录页面 返回到 Antigravity 后还是显示的
    ![图片描述]( "鼠标悬停显示的文字")
    FreeLester
        8
    FreeLester  
    OP
       1 月 29 日
    @nginxxx 今晚我下载 cursor 复现下
    FreeLester
        9
    FreeLester  
    OP
       1 月 29 日
    @hay0577 我复现问题了。因为我本身是已经登录成功的,没测试过从未登录开始。 暂时,你可以在登录阶段设置系统代理 可能需要 开启 TUN 模式。等登录后 可以关闭系统代理/TUN 模式 使用 Antify 单独代理 Antigravity 。
    这个问题的解决方案我还要研究下。
    FreeLester
        10
    FreeLester  
    OP
       1 月 29 日
    @superkeke 嗯 只要能提供 socks5/http 代理的软件都可以配合。
    FreeLester
        11
    FreeLester  
    OP
       1 月 29 日
    @GGGoing 目前没有计划,因为我对 win 开发一窍不通。
    FreeLester
        12
    FreeLester  
    OP
       1 月 29 日
    @fe619742721 我研究下 对 node 这块认知不多。
    FreeLester
        13
    FreeLester  
    OP
       1 月 29 日
    @ruanimal MacOS 提供的网络扩展
    94nb
        14
    94nb  
       1 月 29 日
    bd
    HappyAndSmile
        15
    HappyAndSmile  
       1 月 29 日
    强力支持,希望 OP 尽快完善,谢谢
    nginxxx
        16
    nginxxx  
       1 月 29 日
    @FreeLester 删除 rule 后再 dashboard 里还有 rule 的条数存在,再次添加就提示 rule 存在
    sijilove
        17
    sijilove  
       1 月 29 日
    mark 等 win 版本
    blufaux
        18
    blufaux  
       1 月 29 日 via iPhone
    等 windows 版本
    FreeLester
        20
    FreeLester  
    OP
       1 月 29 日
    @nginxxx #16 感谢反馈
    FreeLester
        21
    FreeLester  
    OP
       1 月 29 日
    @hay0577 新建一条 rule ,path 填写:
    /System/Volumes/Preboot/Cryptexes/OS/System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.Networking.xpc
    这条 rule 在 Antigravity 登录时需要 enable ,登录后就可以 disable 了。

    原因是这个这个登录流程是 OAuth 2.0 for Native Apps ,在验证阶段使用了 MacOS WebKit 处理请求, 所以需要将 WebKit 的请求也代理。
    FreeLester
        22
    FreeLester  
    OP
       1 月 29 日
    @pengyOne 图看起来 Antigravity rules 都添加了。请你尝试以下步骤:
    1. 先确定自己填写的代理是可用的
    2. 先启动 Antify ,后重启 Antigravity ,或者重启几次 Antigravity 试试
    FreeLester
        23
    FreeLester  
    OP
       1 月 30 日
    @nginxxx #16 已修复,可以 Settings - Check Upgrade
    FreeLester
        24
    FreeLester  
    OP
       1 月 30 日
    @nginxxx #3 已修复,可以 Settings - Check Upgrade
    BlueSkyXN
        25
    BlueSkyXN  
       1 月 30 日 via iPhone
    ? macOS 上反而遇不到登录问题,那玩意只出现在 Windows ,因为 win 下代理基本以系统代理为主
    反而 Mac 上一般用 iOS 同款的火箭这些,反而遇不到
    sn0wdr1am
        26
    sn0wdr1am  
       1 月 30 日
    Antify 需要 macOS 14.0 (Sonoma) 或更高版本。
    pengyOne
        27
    pengyOne  
       1 月 30 日
    @BlueSkyXN 牛,感谢。。。楼主的软件没给我解决问题,你的方法给我解决了
    infyni
        28
    infyni  
       1 月 30 日
    配置过后,Loading models... 无法加载 models 。 不知道有没有哪里配置错了?

    andforce
        29
    andforce  
       1 月 30 日
    代理配置的地方我没看明白,我现在用的是 Clash ,代理配置是机场给的一个链接而已。

    那么请问,我在 Antify 里的 Peoxies 里因该如何填写呢?
    black55
        30
    black55  
       1 月 30 日   1
    @andforce 不管你用的什么软件,软件上去看设置界面,会有端口设置相关的,你要找到端口相关的地方,一般来说是使用 7890 端口,你找找看有没有眼熟的数字。代理的话,你就是填 127.0.0.1:7890
    nginxxx
        31
    nginxxx  
       1 月 30 日
    添加完 cursor 和 antigravity 后,命令行的 git 也会被 rule 接管了
    nginxxx
        32
    nginxxx  
       1 月 30 日
    git,curl 等 cli 指令感觉都被接管了,感觉还是没完全隔离 app
    FreeLester
        33
    FreeLester  
    OP
       1 月 30 日
    @nginxxx #32 等我复现研究下
    mauve
        34
    mauve  
    PRO
       1 月 30 日
    为什么不开 TUN 模式呢?我日常一直开
    FreeLester
        35
    FreeLester  
    OP
       1 月 30 日
    @nginxxx #32 没有复现这个情况,你再试试看呢,是否你配置默认 mode = proxy 了?
    nginxxx
        36
    nginxxx  
       1 月 30 日
    @FreeLester 只添加了 cursor 后
    $ git pull
    Connection closed by 127.0.0.1 port 7890
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.
    itplanes01
        37
    itplanes01  
       1 月 30 日 via Android
    必须开 extension 吗 开了和 tailscale magicdns 冲突
    ares001
        38
    ares001  
    PRO
       1 月 30 日
    这个项目的原理是什么?做得很漂亮
    FreeLester
        39
    FreeLester  
    OP
       1 月 30 日
    @ares001 MacOS Network Extension 其中的 transparent network proxy
    FreeLester
        40
    FreeLester  
    OP
       1 月 30 日
    @itplanes01 是说 tailscale 也有一个 Network Extension 是吗?
    我要花点时间研究下,没用过 tailscale magicdns 。
    FreeLester
        41
    FreeLester  
    OP
       1 月 30 日
    @infyni 从图中看配置正确。你先确认 1.代理 是正确的吗? 2.重启 Antigravity 再试试
    FreeLester
        42
    FreeLester  
    OP
       1 月 30 日
    @sn0wdr1am 你的 OS 版本是多少的? 我大概调研了下 macOS 14+ 应该比例很大了,特别是程序员版本应该不会他老。。
    FreeLester
        43
    FreeLester  
    OP
       1 月 30 日
    @nginxxx #36 非常抱歉,这是个 bug 。我今天修复了,等会儿会发新版。还得麻烦你到官网上重新下载,因为旧版的自动升级也有个 bug ,今天一起修复了。
    sn0wdr1am
        44
    sn0wdr1am  
       1 月 30 日   1
    @FreeLester 很明显,我的电脑满足不了这个软件的最低系统要求。
    如果苹果官方没有限制的话,能兼容低版本系统,可以扩大用户群。

    目前我的方案是用 proxifer 。
    itplanes01
        45
    itplanes01  
       1 月 31 日 via Android
    @FreeLester 对,tailscale 也有
    nginxxx
        46
    nginxxx  
       12 天前
    选择默认 model 为 proxy 后再切换回直连,必须重启服务才生效
    @FreeLester
    FreeLester
        47
    FreeLester  
    OP
       12 天前
    @nginxxx #46 感谢反馈,我复现修复下。
    FreeLester
        48
    FreeLester  
    OP
       12 天前
    @nginxxx #46 能多提供些信息吗,我没复现
    1. 使用的是哪个版本?
    2. 切换后是否尝试过关闭应用重新打开再测试?
    3. 具体是哪个应用测试的?
    nginxxx
        49
    nginxxx  
       12 天前   1
    @FreeLester 退出 app 后重新打开好像可以,我的理解这是全局的配置,理论不需要退出 app 吧
    nginxxx
        50
    nginxxx  
       12 天前
    用的 iterm2
    FreeLester
        51
    FreeLester  
    OP
       9 天前
    @fe619742721 可以添加的,node 就是 Mach-O 对吧,支持的。
    lvjin
        52
    lvjin  
       4 天前
    不是太好用啊。 @hay0577 按照这个兄弟截图配置的,模型打不开。关闭 tun 了
    lvjin
        53
    lvjin  
       4 天前
    没问题,搞定了,非常棒!
    lvjin
        54
    lvjin  
       4 天前
    真是解决痛点了,赞!
    lvjin
        55
    lvjin  
       4 天前
    不过好像有 bug ,会断流么?
    隔段时间,就没有任何响应了,怎么操作都不行,必须重开 antigravity 才行
    开 tun 没这个情况
    FreeLester
        56
    FreeLester  
    OP
       4 天前
    @lvjin #55 等我测试下
    lvjin
        57
    lvjin  
       4 天前
    @FreeLester 具体就是上下文比较复杂,任务需要持续输出内容的,会突然卡住,然后不动了,如何都恢复不了。对话框发什么都没响应了,正常会提示处理中.
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     873 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 28ms UTC 17:55 PVG 01:55 LAX 09:55 JFK 12:55
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86