[GH-ISSUE #17] 内网中可以挂外网代理吗 #14

Closed
opened 2026-03-13 14:19:42 +03:00 by kerem · 1 comment
Owner

Originally created by @parkerisme on GitHub (Mar 11, 2026).
Original GitHub issue: https://github.com/7836246/cursor2api/issues/17

我在内网中使用前,
export HTTP_PROXY='http://账号:密码@代理:8080'
export HTTPS_PROXY='http://账号:密码@代理:8080',
然后npm run dev后,
测试:
[OpenAI] 收到请求: model=anthropic/claude-sonnet-4.6, messages=1, stream=undefined, tools=0
[Cursor] 发送请求: model=anthropic/claude-sonnet-4.6, messages=1
[Cursor] 请求失败 (1/2): fetch failed
[Cursor] 2s 后重试...
[Cursor] 发送请求: model=anthropic/claude-sonnet-4.6, messages=1
[Cursor] 请求失败 (2/2): fetch failed
[OpenAI] 请求处理失败: fetch failed

Originally created by @parkerisme on GitHub (Mar 11, 2026). Original GitHub issue: https://github.com/7836246/cursor2api/issues/17 我在内网中使用前, export HTTP_PROXY='http://账号:密码@代理:8080' export HTTPS_PROXY='http://账号:密码@代理:8080', 然后npm run dev后, 测试: [OpenAI] 收到请求: model=anthropic/claude-sonnet-4.6, messages=1, stream=undefined, tools=0 [Cursor] 发送请求: model=anthropic/claude-sonnet-4.6, messages=1 [Cursor] 请求失败 (1/2): fetch failed [Cursor] 2s 后重试... [Cursor] 发送请求: model=anthropic/claude-sonnet-4.6, messages=1 [Cursor] 请求失败 (2/2): fetch failed [OpenAI] 请求处理失败: fetch failed
kerem closed this issue 2026-03-13 14:19:47 +03:00
Author
Owner

@7836246 commented on GitHub (Mar 11, 2026):

HTTP_PROXY 和 HTTPS_PROXY 对本项目无效,请使用 PROXY 环境变量或 config.yaml中的 proxy 字段。 稍后更新2.5.4的版本可以

<!-- gh-comment-id:4036882828 --> @7836246 commented on GitHub (Mar 11, 2026): HTTP_PROXY 和 HTTPS_PROXY 对本项目无效,请使用 PROXY 环境变量或 config.yaml中的 proxy 字段。 稍后更新2.5.4的版本可以
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cursor2api#14
No description provided.