Skip to content

feat: support OpenCode Go plans - #4

Closed
rhnvrm wants to merge 2 commits into
getdummie:mainfrom
rhnvrm:feat-opencode-go
Closed

rhnvrm wants to merge 2 commits into
getdummie:mainfrom
rhnvrm:feat-opencode-go

Conversation

@rhnvrm

@rhnvrm rhnvrm commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Why

Dummie's LLM proxy supports Z.ai keys and ChatGPT subscriptions, but not OpenCode Go subscriptions. OpenCode offers Go and Go Plus on the same gateway and API key, with models split across OpenAI Chat Completions, Anthropic Messages, and OpenAI Responses.

What changed

  • Add opencode-go as one LLM provider that works with both Go and Go Plus subscriptions; OpenCode determines and enforces the account's limits, so Dummie does not ask for a tier.
  • Route all three supported API formats to OpenCode's Go gateway.
  • Use OpenCode's authenticated, non-generating usage endpoint to reject invalid keys or accounts without a Go subscription before saving a key. The public model catalog is still used for live model discovery.
  • Carry the upstream authentication header through the credential broker so Anthropic-format requests use x-api-key; Chat Completions and Responses continue to use bearer auth.
  • Accept hyphenated provider prefixes such as opencode-go/<model> and opencode-go@global/<model>.
  • Preserve the caller's OpenCode session/client headers and user agent through intproxy for routing and prompt caching.
  • Show OpenCode guidance and an API-key link in the existing integrations component, without a redundant Go/Go Plus selector.

Verification

  • cd backstage/intproxy && GOCACHE=/tmp/dummie-go-cache go test ./...
  • cd control && GOCACHE=/tmp/dummie-go-cache go test ./... -count=1
  • cd control/web-client && bun run build
  • GitHub Actions passes for control and dproxy.
  • Applied this PR on top of feat: add local VM workflow and opt-in dubuntu agents #1 in the local verify-opencode-on-pr1 branch.
  • From the running dubuntu-test VM, confirmed model discovery and live 200 responses through Chat Completions, Anthropic Messages, and OpenAI Responses.

@rhnvrm rhnvrm closed this Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant