Skip to content

Add OpenCode Zen and Go as separate model providers - #696

Open
priyanshiranawat15 wants to merge 1 commit into
andrewyng:mainfrom
priyanshiranawat15:feat/opencode-zen-go
Open

priyanshiranawat15 wants to merge 1 commit into
andrewyng:mainfrom
priyanshiranawat15:feat/opencode-zen-go

Conversation

@priyanshiranawat15

@priyanshiranawat15 priyanshiranawat15 commented Sep 27, 2026 •

Copy link
Copy Markdown

Summary

  • Add OpenCode Zen and OpenCode Go as separate providers with independent API keys, hosts, and curated model lists.
  • Route each model to the wire OpenCode actually serves (Responses, Chat Completions, Anthropic Messages, or Gemini) instead of sending both products to one OpenAI-compatible endpoint.
  • Send OpenWorker's user agent and a stable per-conversation x-opencode-session header, which OpenCode Go requires. Qwen and MiniMax on the Messages API do not get Claude-only options.

Fixes #109

Test plan

  • Paste a Zen key and confirm only the Zen card shows connected; Go stays disconnected until its own key is saved
  • Remove the Zen key and confirm the Go key remains
  • Pick a Zen model and a Go model and confirm a turn completes
  • pytest tests/test_opencode_provider.py

Zen and Go now use different hosts and wires, and Go requires a client user agent plus a stable session id. Independent keys keep a Zen credit key from being sent on the Go subscription.

Co-authored-by: Cursor <cursoragent@cursor.com>
@priyanshiranawat15

Copy link
Copy Markdown
Author

@rohitprasad15 / @andrewyng please review this pr, I have added support for open code go and zen.

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.

feat(providers): add OpenCode Zen + Go to the model picker

1 participant