惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
F
Fortinet All Blogs
Blog — PlanetScale
Blog — PlanetScale
GbyAI
GbyAI
MongoDB | Blog
MongoDB | Blog
月光博客
月光博客
The Cloudflare Blog
量子位
T
Tailwind CSS Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
MyScale Blog
MyScale Blog
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
G
Google Developers Blog
D
DataBreaches.Net
V
Visual Studio Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
U
Unit 42
博客园 - 聂微东
有赞技术团队
有赞技术团队
A
About on SuperTechFans

博客园 - 星小梦

发现2个开发浏览器插件的库,仅作记录。 springboot的swagger规范和文档地址 datagrip如何查看数据库连接的密码 - 解决方案 一款干净、快速且绝对私密的开发者在线工具箱 如何卸载掉流氓软件<RAV Endpoint Protection> Linux系统调整java程序启动用户,导出xlsx时抛出Permission denied异常问题。 vue2的devtools开发工具卡死现象的解决方法 echarts图表在浏览器上打印出现裁剪的问题 apache echarts数据点重影或 Cannot read properties of undefined (reading &#39;type&#39;)错误问题 yarn install出现error Error: certificate has expired异常 git多代码仓库合并的方式 docker容器oshi如何获取宿主机的运行状态信息? su命令引起的nohup进程以root身份启动导致的问题 docker-compose启动服务,影响其他服务的原因 xxl-job provider netty_http server caught exception flutter升级导致的旧项目的运行环境问题排查记录 vue3插件库以及对JSX的支持。 JSX、TSX扩展语法学习材料 commitlint Lint 提交消息格式控制 Chromium历史版本下载方式 Window10 关闭Edge浏览器的多选项卡通过Alt+Tab组合键切换的方式 Postgres16数据库集成外部库dblink和postgres_fdw扩展的方式 java 泛型类型如何保留类型的信息的方式 Postgres16 常见问题 docker镜像安装字体支持,解决jdk服务验证码生成找不到字体问题 window和Linux命令行执行多条命令的方法
Antigravity IDE如何配置软件走代理的解决方案
星小梦 · 2026-08-26 · via 博客园 - 星小梦

我使用的是Antigravity IDE版本,也就是带有编辑器窗口的。


我测试了在用户配置中添加以下配置,无效。

快捷方式配置目标输入框项内容为: "E:\Antigravity IDE\Antigravity IDE.exe" --proxy-server="http://127.0.0.1:7890"
同时也配置setting.json文件内容:

{
  // 1. 强制插件与 Agent 扩展网络走代理
  "http.proxy": "http://127.0.0.1:7890",
  "http.proxySupport": "override",
  "http.proxyStrictSSL": true,

  // 2. 仅为 IDE 内置终端自动注入代理环境变量(Windows PowerShell / CMD 均生效)
  "terminal.integrated.env.windows": {
    "HTTP_PROXY": "http://127.0.0.1:7890",
    "HTTPS_PROXY": "http://127.0.0.1:7890",
    "ALL_PROXY": "http://127.0.0.1:7890",
    "http_proxy": "http://127.0.0.1:7890",
    "https_proxy": "http://127.0.0.1:7890",
    "all_proxy": "http://127.0.0.1:7890"
  },

  // 3. 强制 IDE 内置的 Git 操作走代理
  "git.path": "git",
  "git.autofetch": true,
  "http.proxyAuthorization": null
}

在打开ide的时候,环境变量也可以在终端处获取到,但是agent依旧没有走代理。


下面说有效的方法:

就是新建个bat脚本文件,内容如下:

@echo off
set HTTP_PROXY=http://127.0.0.1:7890
set HTTPS_PROXY=http://127.0.0.1:7890
# set ALL_PROXY=socks5://127.0.0.1:7890
set ALL_PROXY=http://127.0.0.1:7890
set NO_PROXY=localhost,127.0.0.1

start "" "E:\Antigravity IDE\Antigravity IDE.exe" --proxy-server="http://127.0.0.1:7890"

结论有效,ide内部的agent走了代理,终端也能获取到注入的环境变量,注意上边的参数替换为你自己的。