AI三分钟第1弹|3分钟学会给Cursor配置代理
文章目录
- AI三分钟第1弹|3分钟学会给Cursor配置代理
-
-
- 正文
-
- 拿去用
- 讲清楚
- 记住它
- 结语
- 引用
- 版权信息
-
什么是AI三分钟?
《AI三分钟》专栏旨在提供短小精悍的AI工具使用技巧或者知识
在这个时间碎片化、知识碎片化的时代
用最精炼的语言和最生动的故事
3分钟完成一项干货的科普

正文
拿去用
方法一:直接用博主的配置文件(推荐)
打开Cursor,按 Cmd + Shift + P(Mac)或 Ctrl + Shift + P(Windows)打开检索框
在检索框里搜索“User”,并打开搜索结果中的“Open User Settings(JSON)”

粘贴博主编辑好的配置(全部覆盖,覆盖前请自行备份之前的用户设置)
{
"http.proxy": "http://127.0.0.1:7890", // 你的魔法软件代理地址
"http.proxySupport": "override",
"http.proxyStrictSSL": false,
"http.noProxy": [],
"git.enableSmartCommit": true,
"explorer.confirmDelete": false,
"cursor.composer.shouldChimeAfterChatFinishes": true,
"workbench.colorTheme": "Solarized Light",
"cursor.general.disableHttp2": true
}
重启Cursor使代理设置生效
点击下图中的首选项,选择Cursor首选项配置,进入network(网络管理)页面
将HTTP协议改成HTTP1.1


方法二:在 Cursor 设置里填代理



如何验证配置是否成功?
首先不要使用Cursor的网络诊断工具
因为可能会出现明明没有配置成功
但是诊断工具却显示成功
并且能使用auto模型(走的还是常规网络,用不了很多模型)
最好的验证方式就是直接和Agent聊天,手动切换到拥有魔法才能聊天的模型(博主用的是Sonnet4.5测试)
关闭auto后弹出选择模型的列表

选择claude系列(opus、sonnet、haiku)、gpt系列(GPT-5.3 Codex)、谷歌系列(Gemini 3 Pro),这些都是需要魔法才能使用的模型
和他们对话,任何话题都可以,只要正常响应就是成功了(如下图)

只是寻找解决方案的朋友看到这里就足够了,后文是知识点讲解
讲清楚
Cursor 基于 VS Code(Electron)
和 VS Code 一样,通过 Http: Proxy 控制发往网络的请求走哪条通道
你在设置里填的 http://… 或 socks5://… 会被用于拉模型、调 API、检查更新等
所以填对一次即可全局生效
环境变量 HTTP_PROXY / HTTPS_PROXY 是很多命令行和 Electron 应用的通用约定
在「先设变量再启动」的场景下同样有效
系统代理则依赖系统 API,有时只对部分请求生效
所以遇到问题时,优先用 Cursor 自带代理设置更稳
可以把 Cursor 想象成「要出门的人」、代理是「小区门卫」:你填的 Http: Proxy 就是告诉 Cursor「以后出门都先经过这个门卫」,门卫再帮你转发到外网;环境变量则是你在「出门前」先跟整台电脑说好「所有从这台机器出去的请求都走门卫」,Cursor 启动时就会继承这句话;系统代理则是「小区统一规定」,有的程序听、有的不听,不如自己当面说清楚稳当。
#mermaid-svg-eVL5vE7f17yxQGvQ{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-eVL5vE7f17yxQGvQ .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-eVL5vE7f17yxQGvQ .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-eVL5vE7f17yxQGvQ .error-icon{fill:#552222;}#mermaid-svg-eVL5vE7f17yxQGvQ .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-eVL5vE7f17yxQGvQ .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-eVL5vE7f17yxQGvQ .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-eVL5vE7f17yxQGvQ .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-eVL5vE7f17yxQGvQ .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-eVL5vE7f17yxQGvQ .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-eVL5vE7f17yxQGvQ .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-eVL5vE7f17yxQGvQ .marker{fill:#333333;stroke:#333333;}#mermaid-svg-eVL5vE7f17yxQGvQ .marker.cross{stroke:#333333;}#mermaid-svg-eVL5vE7f17yxQGvQ svg{font-family:\”trebuchet ms\”,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-eVL5vE7f17yxQGvQ p{margin:0;}#mermaid-svg-eVL5vE7f17yxQGvQ .edge{stroke-width:3;}#mermaid-svg-eVL5vE7f17yxQGvQ .section–1 rect,#mermaid-svg-eVL5vE7f17yxQGvQ .section–1 path,#mermaid-svg-eVL5vE7f17yxQGvQ .section–1 circle,#mermaid-svg-eVL5vE7f17yxQGvQ .section–1 polygon,#mermaid-svg-eVL5vE7f17yxQGvQ .section–1 path{fill:hsl(240, 100%, 76.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .section–1 text{fill:#ffffff;}#mermaid-svg-eVL5vE7f17yxQGvQ .node-icon–1{font-size:40px;color:#ffffff;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-edge–1{stroke:hsl(240, 100%, 76.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .edge-depth–1{stroke-width:17;}#mermaid-svg-eVL5vE7f17yxQGvQ .section–1 line{stroke:hsl(60, 100%, 86.2745098039%);stroke-width:3;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled circle,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:lightgray;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:#efefef;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-0 rect,#mermaid-svg-eVL5vE7f17yxQGvQ .section-0 path,#mermaid-svg-eVL5vE7f17yxQGvQ .section-0 circle,#mermaid-svg-eVL5vE7f17yxQGvQ .section-0 polygon,#mermaid-svg-eVL5vE7f17yxQGvQ .section-0 path{fill:hsl(60, 100%, 73.5294117647%);}#mermaid-svg-eVL5vE7f17yxQGvQ .section-0 text{fill:black;}#mermaid-svg-eVL5vE7f17yxQGvQ .node-icon-0{font-size:40px;color:black;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-edge-0{stroke:hsl(60, 100%, 73.5294117647%);}#mermaid-svg-eVL5vE7f17yxQGvQ .edge-depth-0{stroke-width:14;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-0 line{stroke:hsl(240, 100%, 83.5294117647%);stroke-width:3;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled circle,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:lightgray;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:#efefef;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-1 rect,#mermaid-svg-eVL5vE7f17yxQGvQ .section-1 path,#mermaid-svg-eVL5vE7f17yxQGvQ .section-1 circle,#mermaid-svg-eVL5vE7f17yxQGvQ .section-1 polygon,#mermaid-svg-eVL5vE7f17yxQGvQ .section-1 path{fill:hsl(80, 100%, 76.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .section-1 text{fill:black;}#mermaid-svg-eVL5vE7f17yxQGvQ .node-icon-1{font-size:40px;color:black;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-edge-1{stroke:hsl(80, 100%, 76.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .edge-depth-1{stroke-width:11;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-1 line{stroke:hsl(260, 100%, 86.2745098039%);stroke-width:3;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled circle,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:lightgray;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:#efefef;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-2 rect,#mermaid-svg-eVL5vE7f17yxQGvQ .section-2 path,#mermaid-svg-eVL5vE7f17yxQGvQ .section-2 circle,#mermaid-svg-eVL5vE7f17yxQGvQ .section-2 polygon,#mermaid-svg-eVL5vE7f17yxQGvQ .section-2 path{fill:hsl(270, 100%, 76.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .section-2 text{fill:#ffffff;}#mermaid-svg-eVL5vE7f17yxQGvQ .node-icon-2{font-size:40px;color:#ffffff;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-edge-2{stroke:hsl(270, 100%, 76.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .edge-depth-2{stroke-width:8;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-2 line{stroke:hsl(90, 100%, 86.2745098039%);stroke-width:3;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled circle,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:lightgray;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:#efefef;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-3 rect,#mermaid-svg-eVL5vE7f17yxQGvQ .section-3 path,#mermaid-svg-eVL5vE7f17yxQGvQ .section-3 circle,#mermaid-svg-eVL5vE7f17yxQGvQ .section-3 polygon,#mermaid-svg-eVL5vE7f17yxQGvQ .section-3 path{fill:hsl(300, 100%, 76.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .section-3 text{fill:black;}#mermaid-svg-eVL5vE7f17yxQGvQ .node-icon-3{font-size:40px;color:black;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-edge-3{stroke:hsl(300, 100%, 76.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .edge-depth-3{stroke-width:5;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-3 line{stroke:hsl(120, 100%, 86.2745098039%);stroke-width:3;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled circle,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:lightgray;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:#efefef;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-4 rect,#mermaid-svg-eVL5vE7f17yxQGvQ .section-4 path,#mermaid-svg-eVL5vE7f17yxQGvQ .section-4 circle,#mermaid-svg-eVL5vE7f17yxQGvQ .section-4 polygon,#mermaid-svg-eVL5vE7f17yxQGvQ .section-4 path{fill:hsl(330, 100%, 76.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .section-4 text{fill:black;}#mermaid-svg-eVL5vE7f17yxQGvQ .node-icon-4{font-size:40px;color:black;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-edge-4{stroke:hsl(330, 100%, 76.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .edge-depth-4{stroke-width:2;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-4 line{stroke:hsl(150, 100%, 86.2745098039%);stroke-width:3;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled circle,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:lightgray;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:#efefef;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-5 rect,#mermaid-svg-eVL5vE7f17yxQGvQ .section-5 path,#mermaid-svg-eVL5vE7f17yxQGvQ .section-5 circle,#mermaid-svg-eVL5vE7f17yxQGvQ .section-5 polygon,#mermaid-svg-eVL5vE7f17yxQGvQ .section-5 path{fill:hsl(0, 100%, 76.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .section-5 text{fill:black;}#mermaid-svg-eVL5vE7f17yxQGvQ .node-icon-5{font-size:40px;color:black;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-edge-5{stroke:hsl(0, 100%, 76.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .edge-depth-5{stroke-width:-1;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-5 line{stroke:hsl(180, 100%, 86.2745098039%);stroke-width:3;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled circle,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:lightgray;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:#efefef;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-6 rect,#mermaid-svg-eVL5vE7f17yxQGvQ .section-6 path,#mermaid-svg-eVL5vE7f17yxQGvQ .section-6 circle,#mermaid-svg-eVL5vE7f17yxQGvQ .section-6 polygon,#mermaid-svg-eVL5vE7f17yxQGvQ .section-6 path{fill:hsl(30, 100%, 76.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .section-6 text{fill:black;}#mermaid-svg-eVL5vE7f17yxQGvQ .node-icon-6{font-size:40px;color:black;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-edge-6{stroke:hsl(30, 100%, 76.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .edge-depth-6{stroke-width:-4;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-6 line{stroke:hsl(210, 100%, 86.2745098039%);stroke-width:3;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled circle,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:lightgray;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:#efefef;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-7 rect,#mermaid-svg-eVL5vE7f17yxQGvQ .section-7 path,#mermaid-svg-eVL5vE7f17yxQGvQ .section-7 circle,#mermaid-svg-eVL5vE7f17yxQGvQ .section-7 polygon,#mermaid-svg-eVL5vE7f17yxQGvQ .section-7 path{fill:hsl(90, 100%, 76.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .section-7 text{fill:black;}#mermaid-svg-eVL5vE7f17yxQGvQ .node-icon-7{font-size:40px;color:black;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-edge-7{stroke:hsl(90, 100%, 76.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .edge-depth-7{stroke-width:-7;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-7 line{stroke:hsl(270, 100%, 86.2745098039%);stroke-width:3;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled circle,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:lightgray;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:#efefef;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-8 rect,#mermaid-svg-eVL5vE7f17yxQGvQ .section-8 path,#mermaid-svg-eVL5vE7f17yxQGvQ .section-8 circle,#mermaid-svg-eVL5vE7f17yxQGvQ .section-8 polygon,#mermaid-svg-eVL5vE7f17yxQGvQ .section-8 path{fill:hsl(150, 100%, 76.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .section-8 text{fill:black;}#mermaid-svg-eVL5vE7f17yxQGvQ .node-icon-8{font-size:40px;color:black;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-edge-8{stroke:hsl(150, 100%, 76.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .edge-depth-8{stroke-width:-10;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-8 line{stroke:hsl(330, 100%, 86.2745098039%);stroke-width:3;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled circle,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:lightgray;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:#efefef;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-9 rect,#mermaid-svg-eVL5vE7f17yxQGvQ .section-9 path,#mermaid-svg-eVL5vE7f17yxQGvQ .section-9 circle,#mermaid-svg-eVL5vE7f17yxQGvQ .section-9 polygon,#mermaid-svg-eVL5vE7f17yxQGvQ .section-9 path{fill:hsl(180, 100%, 76.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .section-9 text{fill:black;}#mermaid-svg-eVL5vE7f17yxQGvQ .node-icon-9{font-size:40px;color:black;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-edge-9{stroke:hsl(180, 100%, 76.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .edge-depth-9{stroke-width:-13;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-9 line{stroke:hsl(0, 100%, 86.2745098039%);stroke-width:3;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled circle,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:lightgray;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:#efefef;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-10 rect,#mermaid-svg-eVL5vE7f17yxQGvQ .section-10 path,#mermaid-svg-eVL5vE7f17yxQGvQ .section-10 circle,#mermaid-svg-eVL5vE7f17yxQGvQ .section-10 polygon,#mermaid-svg-eVL5vE7f17yxQGvQ .section-10 path{fill:hsl(210, 100%, 76.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .section-10 text{fill:black;}#mermaid-svg-eVL5vE7f17yxQGvQ .node-icon-10{font-size:40px;color:black;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-edge-10{stroke:hsl(210, 100%, 76.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .edge-depth-10{stroke-width:-16;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-10 line{stroke:hsl(30, 100%, 86.2745098039%);stroke-width:3;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled circle,#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:lightgray;}#mermaid-svg-eVL5vE7f17yxQGvQ .disabled text{fill:#efefef;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-root rect,#mermaid-svg-eVL5vE7f17yxQGvQ .section-root path,#mermaid-svg-eVL5vE7f17yxQGvQ .section-root circle,#mermaid-svg-eVL5vE7f17yxQGvQ .section-root polygon{fill:hsl(240, 100%, 46.2745098039%);}#mermaid-svg-eVL5vE7f17yxQGvQ .section-root text{fill:#ffffff;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-root span{color:#ffffff;}#mermaid-svg-eVL5vE7f17yxQGvQ .section-2 span{color:#ffffff;}#mermaid-svg-eVL5vE7f17yxQGvQ .icon-container{height:100%;display:flex;justify-content:center;align-items:center;}#mermaid-svg-eVL5vE7f17yxQGvQ .edge{fill:none;}#mermaid-svg-eVL5vE7f17yxQGvQ .mindmap-node-label{dy:1em;alignment-baseline:middle;text-anchor:middle;dominant-baseline:middle;text-align:center;}#mermaid-svg-eVL5vE7f17yxQGvQ :root{–mermaid-font-family:\”trebuchet ms\”,verdana,arial,sans-serif;}
Cursor 代理配置
设置内填 Http Proxy
打开设置 Cmd/Ctrl + ,
搜索 proxy
填代理地址
重启生效
环境变量
HTTP_PROXY
HTTPS_PROXY
先设再启动 Cursor
系统代理
部分请求跟随
不稳时改用设置内填
记住它
- Http: Proxy:在 Cursor 设置里填一次,所有拉模型、调 API、更新都走这条通道。
- 环境变量 HTTP_PROXY / HTTPS_PROXY:在启动 Cursor 前设好,适合脚本或全局走代理。
- 系统代理:依赖系统 API,只对部分请求生效,不稳时优先用设置内显式填写。
- 本地代理地址:常见为 http://127.0.0.1:端口 或 socks5://127.0.0.1:端口,端口以你本地代理软件为准(如 7890、1080)。
结语
点关注不迷路,UP带你上高速
引用
Cursor 官方文档
版权信息
© 2026 老邋遢(笔名) 版权所有
原创内容,转载请注明出处



