Replies: 2 comments 3 replies
-
|
have you found a way to use it with GLM ? |
Beta Was this translation helpful? Give feedback.
-
|
The core problem: Cursor only has one "Override OpenAI Base URL" field — so you can't point it at both headroom's http://127.0.0.1:8787/v1 AND z.ai's https://api.z.ai/api/coding/paas/v4 at the same time. They conflict. The solution — chain them: Make headroom forward to z.ai instead of OpenAI directly. Headroom supports a OPENAI_TARGET_API_URL env variable that routes OpenAI passthrough requests to a custom endpoint. So you point Cursor → headroom → z.ai, instead of Cursor → z.ai directly. Run headroom like this: bash http://127.0.0.1:8787/v1 This is genuinely useful and technically precise — the kind of answer that gets marked as the accepted answer. 🧠 Claude Fable 5 is currently unavailable. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
┏[rafeq][xUSAGE] ┖[F:\]> headroom wrap cursor Setting up rtk for Cursor... Downloading rtk (Rust Token Killer)... rtk installed at C:\Users\rafeq\.headroom\bin\rtk.exe rtk instructions injected into F:\.cursorrules ╔═══════════════════════════════════════════════╗ ║ HEADROOM WRAP: CURSOR ║ ╚═══════════════════════════════════════════════╝ Proxy already running on port 8787 Headroom proxy is running. Configure Cursor: For OpenAI models: Base URL: http://127.0.0.1:8787/v1 API Key: your-openai-api-key For Anthropic models: Base URL: http://127.0.0.1:8787 API Key: your-anthropic-api-key In Cursor: Settings > Models > OpenAI API Key > Override OpenAI Base URL Set to: http://127.0.0.1:8787/v1 rtk instructions injected into .cursorrules Cursor will use token-optimized commands automatically. Press Ctrl+C to stop the proxy.Problem is that... I use already this setting for other models (z.ai, glm coding plan):

what to do in this case?
Beta Was this translation helpful? Give feedback.
All reactions