-
|
Hi! Trying to get Headroom proxy working as a compression layer between Cline (VS Code extension) and OpenRouter, using GLM-5.2 as my model. Running on Windows. Questions:
My setup:
What happens when I start the proxy: I set What I've tried in Cline settings: Attempt 1 — OpenAI Compatible provider:
Attempt 2 — Anthropic provider:
Any guidance appreciated — the proxy guidance message is helpful but written with Claude Code in mind and it's not clear how to translate it to Cline's settings UI. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
I think the confusion here comes from mixing two different compatibility paths: OpenAI-compatible settings in Cline vs the Anthropic-style proxy guidance printed by Headroom. Since Headroom’s OpenRouter guidance mentions A few things I would check:
For Cline specifically, the cleanest setup would usually be: Cline → local proxy → OpenRouter → GLM-5.2 But the proxy has to expose the same API shape that Cline is using. So if Cline is configured as OpenAI Compatible, the local proxy probably needs to accept OpenAI-compatible requests at something like:
If Headroom only accepts Anthropic-style requests, then Cline’s OpenAI Compatible provider will likely keep failing even if the key and model name are correct. The most useful next debugging step would be to inspect one proxy log line and confirm the incoming request path, auth header, and model name that Cline is actually sending. |
Beta Was this translation helpful? Give feedback.
-
|
The issue is that Cline's OpenAI Compatible provider and Headroom's OpenRouter backend need the right wiring. Here is the working configuration for Cline + OpenRouter via Headroom on Windows: Cline Provider Settings (OpenAI Compatible):
Why the dummy key doesn't work: The For GLM-5.2 specifically: Use If you want to use Claude models via OpenRouter: Set the model to Verification steps:
The proxy's guidance message is written assuming Claude Code (which reads |
Beta Was this translation helpful? Give feedback.
-
|
Good suggestion here. Alas, no luck so far. It looks like Headroom's OpenRouter backend expects Anthropic APIs in CLI mode. No combination of setting for Cline OpenAI Compatible model worked for me. I ended up switching to 9Router and it was a breeze to plug it into my Cline + OpenRouter setup. Bonus: It supports KLM and Headroom out of the box. |
Beta Was this translation helpful? Give feedback.
Good suggestion here. Alas, no luck so far. It looks like Headroom's OpenRouter backend expects Anthropic APIs in CLI mode. No combination of setting for Cline OpenAI Compatible model worked for me. I ended up switching to 9Router and it was a breeze to plug it into my Cline + OpenRouter setup. Bonus: It supports KLM and Headroom out of the box.