Integration guide
Cursor Custom OpenAI Base URL & Model Setup Guide
Point Cursor's Override OpenAI Base URL to https://proxystacks.com/v1 to run funsion-sonnet-5-5 (50% off Claude 5.5 benchmark), gpt-6.1-sol (-30%), deepseek-v4.1-flash ($0.18/1M input), and glm-5.3 ($0.98/1M input) in Agent & Composer with one API key.
Setup
- 1
Create an API key (sk-relay-...) in the ProxyStacks Relay console; one prepaid balance (from US$10) unlocks every published model.
- 2
Open Cursor Settings → Models, paste your key into OpenAI API Key, enable Override OpenAI Base URL, enter https://proxystacks.com/v1, and click Save.
- 3
Click + Add model to add funsion-sonnet-5-5, gpt-6.1-sol, deepseek-v4.1-flash, or glm-5.3, uncheck unused default OpenAI models before clicking Verify, and select your model in Agent/Composer.
Configuration
{
"overrideOpenAIBaseUrl": "https://proxystacks.com/v1",
"openAIApiKey": "sk-relay-your-key",
"model": "deepseek-v4.1-flash",
"customModels": [
"funsion-sonnet-5-5",
"gpt-6.1-sol",
"deepseek-v4.1-flash",
"glm-5.3"
]
}Enable Override OpenAI Base URL (https://proxystacks.com/v1) in Cursor Settings → Models and add funsion-sonnet-5-5, gpt-6.1-sol, deepseek-v4.1-flash, or glm-5.3.
Advanced config: environment variable API key, multi-model routing & max output tokens
Use a project-specific config or multi-profile setup with environment variable keys, flagship and fast models — Funsion Opus/Sonnet 5.5 (-50%), GPT-6.1 Sol / GPT-6 Luna (-30%), DeepSeek V4.1 Flash (-40%), GLM-5.3 & Kimi K3.1 Pro (-30%) — and explicit context/output token limits.
{
// Cursor Settings → Models:
// Override OpenAI Base URL: https://proxystacks.com/v1
// CN low-latency HK edge: https://hk.proxystacks.com/v1
// + Add Model IDs:
// funsion-sonnet-5-5 (50% off Claude 5.5 benchmark — Agent & Composer)
// gpt-6.1-sol (30% off GPT-6.1 flagship reasoning)
// deepseek-v4.1-flash ($0.18/1M input — fast edits & inline tasks)
// glm-5.3 ($0.98/1M input — 1M context repo analysis)
// Project MCP configuration (.cursor/mcp.json):
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "."]
},
"git": {
"command": "uvx",
"args": ["mcp-server-git"]
}
}
}Troubleshooting
- 401: check the Relay key and authentication header. Never paste a secret into a support ticket.
- 404: use an exact published model ID and the documented base URL, not an upstream alias.
- For streaming use stream: true. Codex uses Responses; keep disable_response_storage = true.
Common questions
Why does Cursor's Verify button fail after setting Override OpenAI Base URL?
When you click Verify in Cursor Settings → Models, Cursor tests whichever model toggles are currently active. First save https://proxystacks.com/v1 under Override OpenAI Base URL and paste your sk-relay-... key, then add funsion-sonnet-5-5 or deepseek-v4.1-flash via + Add model and turn off unused default OpenAI model switches before clicking Verify.
Which custom model IDs should I add in Cursor for Agent, Composer, and fast edits?
Add funsion-sonnet-5-5 (50% off Claude 5.5 benchmark) for daily multi-file Agent & Composer work, gpt-6.1-sol (-30%) for complex architecture and debugging, glm-5.3 ($0.98/1M input) for 1M-token repository context, and deepseek-v4.1-flash ($0.18/1M input) for fast inline edits — all billed from one prepaid balance (starting from US$10).
Does Override OpenAI Base URL break Cursor Tab autocomplete or .cursor/mcp.json servers?
No. Cursor Tab uses Cursor's dedicated completion service independently of your OpenAI Base URL override, and MCP servers configured in .cursor/mcp.json continue to expose local or remote tools to funsion-sonnet-5-5 and gpt-6.1-sol in Agent mode.