Repository navigation
Replies: 4 comments 5 replies
|
This looks related to the recent OpenCode Zen changes around client identity/headers. OmniRoute already has logic for synthesizing the OpenCode CLI headers (User-Agent, x-opencode-client, x-opencode-project, request/session IDs), and recent fixes were specifically made for Zen/Go requests being rejected upstream. I'd be careful about adding completely arbitrary custom headers, though. A better approach might be exposing the relevant OpenCode identity headers as configurable values while keeping auth headers protected. If you can share the exact response/status you're getting from Zen and the OmniRoute version, we can probably determine whether this is another header/identity mismatch or a new upstream blocking rule. |
|
Hey @mr-addams! @geekyNads has the mechanism right - Zen sees OmniRoute's outbound request, not your OpenCode client. The good news is that the custom headers you are asking for already exist, they are just env-configurable rather than a UI field. What OmniRoute already sendsThe opencode executor synthesizes OpenCode CLI identity headers by default, specifically so Cloudflare in front of
There is also a per-provider form, Client headers are forwarded tooHeaders your client sends win over the synthesized defaults. The forwarded set is What to try, in order
Which of the three is it? The response body from Zen will tell us, and it decides whether this is a config fix on your side or a code change on ours. |
|
@mr-addams -- still happening on the latest version (3.8.52)? Otherwise I'll close this in 7 days for inactivity. |
|
Closing: the block was Zen refusing its free tier outside the OpenCode app, and the OpenCode Free provider was removed in 3.8.52 (#16310). Zen and Go with your own key still work through OmniRoute. If a paid Zen request fails, open a new thread with the error body. |


Uh oh!
There was an error while loading. Please reload this page.
Opencode Zen start blocking Omniroute since yesterday

Could you, please, fix this issue in plugin?
For example, give us a possibility to define custom opencode headers in it ..
All reactions