feat(provider): add OpenCode Zen and OpenCode Go providers - #765
feat(provider): add OpenCode Zen and OpenCode Go providers#765DevAgarwal2 wants to merge 1 commit into
Conversation
Add support for OpenCode AI providers: - OpenCode Zen: pay-as-you-go access to 35+ curated models (GPT, Claude, Gemini, etc.) - OpenCode Go: /month subscription for open models (GLM-5, Kimi K2.5, MiniMax M2.5) Changes: - Register providers in auth.py with base URLs - Add env vars (OPENCODE_ZEN_API_KEY, OPENCODE_GO_API_KEY) - Add model catalogs (35 models for Zen, 3 for Go) - Add context lengths for all models - Add provider labels and aliases - Update .env.example with documentation Usage: hermes model opencode-zen:gpt-5.3-codex hermes model opencode-go:kimi-k2.5 hermes model zen:claude-opus-4-6
5959909 to
4365c1a
Compare
|
Thanks for putting this together. The provider presets and model list are useful prior art, but I think the provider model here is still incomplete for how OpenCode actually works. Three concrete issues:
Because of that, I think the clean path is:
I’m working on that approach from a fresh branch off current upstream |
|
Thanks for this! The code looks clean and follows our provider patterns correctly. Before we move forward, could you share screenshots showing it working end-to-end? Specifically:
We don't have OpenCode subscriptions on our end so we can't test this ourselves. Once we can see it working we'll reconsider — thanks! |
|
|
I got it working fine as well from the onboarding page. Works fine! Highly recommend adding opencode go/zen support as they are starting to become a serious alternative to Openrouter. |
|
I agree, their plan is highly competitive |
|
Merged via PR #1650. Your provider registrations, model catalogs, and context lengths were preserved with authorship. I completed the integration by adding the missing setup wizard branches (hermes_cli/setup.py), model flow dispatch (hermes_cli/main.py), and aux model defaults (agent/auxiliary_client.py) that are needed on current main. Thanks @DevAgarwal2! |


Summary
Added support for two new model providers from OpenCode.
OpenCode Zen
Pay-as-you-go access to 35+ curated models:
OpenCode Go
$10/month subscription for open models:
Usage
Files Changed
API Keys
Get keys at https://opencode.ai/auth