Files
cursor2api/config.yaml
chinadoiphin da5565503e docs: 更新 README 添加技术架构说明
- 添加核心思路架构图
- 说明 TLS 指纹模拟实现
- 说明 x-is-human Token 生成机制
- 说明 Token 池管理(预热/轮询/自动刷新)
- 说明协议转换流程
- 说明 Tool Use 实现方式
- 更新项目结构
- 添加 token_pool_size 配置说明
2025-12-18 10:53:58 +08:00

28 lines
1.0 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Cursor2API 配置文件
# 将 Cursor API 转换为 OpenAI/Anthropic 兼容格式
# 使用 enetx/surf 包实现 Chrome TLS 指纹模拟
# 服务端口
port: 3010
# 请求超时(秒)
timeout: 60
# 代理设置(可选)
# proxy: "http://127.0.0.1:7890"
# Cursor 验证脚本 URL用于生成 x-is-human token
script_url: "https://cursor.com/149e9513-01fa-4fb0-aad4-566afd725d1b/2d206a39-8ed7-437e-a3be-862e0f06eea3/a-4-a/c.js?i=0&v=3&h=cursor.com"
# 浏览器指纹配置(用于 token 生成)
fingerprint:
unmasked_vendor_webgl: "Google Inc. (Intel)"
unmasked_renderer_webgl: "ANGLE (Intel, Intel(R) UHD Graphics (0x00009BA4) Direct3D11 vs_5_0 ps_5_0, D3D11)"
user_agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
# 支持的模型列表
models: "gpt-4o,claude-3.5-sonnet,claude-3.7-sonnet,claude-4-sonnet,gemini-2.5-pro"
# Token 轮询池大小(每次请求轮流使用不同 token分散限流压力
token_pool_size: 5