Status: [UNTESTED] Endpoints found: http://127.0.0.1:8979/zen/go/v1/chat/completions Source: https://github.com/a645162/OpenCodeGoProxy # OpenCodeGoProxy > Public note: this project is an independent compatibility shim. It is not affiliated with > OpenCode, Qoder or WorkBuddy. OpenCode Go rejects inference requests that do not carry a stable per-conversation `x-opencode-session` header: ``` 400 {"type":"MissingSessionID","message":"Request is missing x-opencode-session and cannot be routed efficiently."} ``` Some clients already know their conversation id but send it under a different header name. OpenCodeGoProxy is a small [Pingora](https://github.com/cloudflare/pingora) reverse proxy that copies that native id into `x-opencode-session` and forwards the request to OpenCode Go. ## How it works ``` client (session id in its own header) │ ▼ OpenCodeGoProxy :8979 header rename only, streaming passthrough │ ▼ opencode.ai/zen/go routes + prompt cache keyed by x-opencode-session ``` The proxy never parses request bodies, never stores or modifies API keys, and does not add its own session ids. It only renames a header that the client already sends. ## Supported API shapes The request path is forwarded unchanged, so the proxy works with every endpoint under the origin. The following shapes were verified for path passthrough, session-header injection, untouched credential forwarding and streaming: | API | Endpoint | Auth headers | Streaming | |-----|----------|--------------|-----------| | OpenAI Chat Completions | `…/v1/chat/completions` | `Authorization: Bearer …` | SSE (`data:`) | | OpenAI Responses | `…/v1/responses` | `Authorization: Bearer …` | JSON / SSE | | Anthropic Messages (Claude) | `…/v1/messages` | `x-api-key`, `anthropic-version` | SSE (`event:` + `data:`) | This is a pass-through proxy, not a protocol converter: it does not translate between the three shapes, it only adds `x-opencode-session`. ## Supported clients | Client | Native header | Result header | |----------|--------------------|---------------------