Integration guide
LobeChat & LobeHub Custom API Provider Setup Guide
Connect LobeChat / LobeHub desktop, web, or self-hosted Docker deployments to ProxyStacks Relay (https://proxystacks.com/v1) with one API key to unlock Funsion (-50%), GPT-6.1 Sol (-30%), DeepSeek V4.1 Flash, GLM-5.3, and Kimi K3.1 Pro with function calling and reasoning.
Setup
- 1
Generate an API key (sk-relay-...) in the ProxyStacks Relay console.
- 2
In LobeChat Settings → AI Service Provider → OpenAI (or Add Custom Provider), set API Proxy URL to https://proxystacks.com/v1 and paste your API key.
- 3
Click Fetch Models to sync all 21 servable models automatically, or declare OPENAI_MODEL_LIST in your Docker .env file.
Configuration
OPENAI_API_KEY=sk-relay-your-key
OPENAI_PROXY_URL=https://proxystacks.com/v1
OPENAI_MODEL_LIST=+deepseek-v4.1-flashSupports automatic /v1/models discovery in LobeChat UI and capability tags (<1000000:fc:reasoning>) in Docker OPENAI_MODEL_LIST.
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.
# LobeChat / LobeHub Docker .env (APAC CN2 low-latency edge: https://hk.proxystacks.com/v1)
OPENAI_API_KEY=sk-relay-your-key
OPENAI_PROXY_URL=https://proxystacks.com/v1
OPENAI_MODEL_LIST=-all,+funsion-sonnet-5-5=Funsion Sonnet 5.5<1000000:fc:reasoning>,+gpt-6.1-sol=GPT-6.1 Sol<1000000:fc:reasoning>,+deepseek-v4.1-flash=DeepSeek V4.1 Flash<1000000:fc>,+glm-5.3=GLM-5.3<1000000:fc:reasoning>,+kimi-k3.1-pro=Kimi K3.1 Pro<1000000:fc:reasoning>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.