为什么需要配置代理
Cursor 基于 VS Code(Electron)构建,国内网络环境下访问其 AI 模型服务(如 Sonnet、GPT 系列等)通常需要代理支持。正确配置代理不仅能解决连接超时问题,还能确保 API 调用稳定。
快速配置方法
方法一:直接修改配置文件(推荐)
这种方式最彻底,适合熟悉 JSON 配置的用户。
- 打开 Cursor,按
Cmd + Shift + P(Mac)或Ctrl + Shift + P(Windows)打开命令面板。 - 搜索并选择 Preferences: 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





