#369·aicommits

Support Opencode Go API

Author: 52funnyCreated Sep 17, 2026Updated Sep 17, 2026
Labelsbugpending triage

Bug description

When I use Opencode Go API endpoint https://opencode.ai/zen/go/v1, it returns an error as follows:

✖ Error from provider (Console Go): Request is missing x-opencode-session and cannot be rou
ted efficiently. Please see https://opencode.ai/docs/go/#where-can-i-use-it
    at file:///home/funny/.local/share/mise/installs/node/26.7.0/lib/node_modules/aicommits
/dist/cli-CXREWPfS.mjs:157:17897
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
    at async postToApi (file:///home/funny/.local/share/mise/installs/node/26.7.0/lib/node_
modules/aicommits/dist/cli-CXREWPfS.mjs:157:13867)
    at async postJsonToApi (file:///home/funny/.local/share/mise/installs/node/26.7.0/lib/n
ode_modules/aicommits/dist/cli-CXREWPfS.mjs:157:13109)
    at async _OpenAICompatibleChatLanguageModel.doGenerate (file:///home/funny/.local/share
/mise/installs/node/26.7.0/lib/node_modules/aicommits/dist/cli-CXREWPfS.mjs:167:117420)
    at async execute (file:///home/funny/.local/share/mise/installs/node/26.7.0/lib/node_mo
dules/aicommits/dist/cli-CXREWPfS.mjs:210:7579)
    at async runWithTracingChannelSpan (file:///home/funny/.local/share/mise/installs/node/
26.7.0/lib/node_modules/aicommits/dist/cli-CXREWPfS.mjs:207:22178)
    at async executeLanguageModelCall (file:///home/funny/.local/share/mise/installs/node/2
6.7.0/lib/node_modules/aicommits/dist/cli-CXREWPfS.mjs:207:24974)
    at async file:///home/funny/.local/share/mise/installs/node/26.7.0/lib/node_modules/aic
ommits/dist/cli-CXREWPfS.mjs:210:7544
    at async retryWithExponentialBackoffInternal (file:///home/funny/.local/share/mise/inst
alls/node/26.7.0/lib/node_modules/aicommits/dist/cli-CXREWPfS.mjs:157:16791)

    aicommits v4.2.2

    Please open a Bug report with the information above:
    https://github.com/Nutlope/aicommits/issues/new/choose

I think the latest version may be missing some HTTP headers, which causes this error.

aicommits version

v4.2.2

Environment

bash
System:
    OS: Linux 7.2 Omarchy
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700
    Memory: 3.02 GB / 15.33 GB
    Container: Yes
    Shell: 5.9.2 - /usr/bin/zsh
  Binaries:
    Node: 26.7.0 - /home/funny/.local/share/mise/installs/node/26.7.0/bin/node
    npm: 11.19.0 - /home/funny/.local/share/mise/installs/node/26.7.0/bin/npm
    Deno: 2.9.6 - /usr/bin/deno

Can you contribute a fix?

  • I’m interested in opening a pull request for this issue.