Skip to content

feat: Add OpenCode Go provider support#2825

Merged
amitksingh1490 merged 11 commits intoantinomyhq:mainfrom
ravshansbox:feat/add-opencode-go-provider
Apr 7, 2026
Merged

feat: Add OpenCode Go provider support#2825
amitksingh1490 merged 11 commits intoantinomyhq:mainfrom
ravshansbox:feat/add-opencode-go-provider

Conversation

@ravshansbox
Copy link
Copy Markdown
Contributor

Summary

Add support for the OpenCode Go provider, a simpler alternative to OpenCode Zen focused on providing access to open-source models.

Changes

  • Add OPENCODE_GO provider ID constant with display name "OpenCode Go"
  • Create OpenCodeGoResponseRepository for handling OpenCode Go API requests at https://opencode.ai/zen/go/v1/chat/completions
  • Add OpenCode Go to provider routing in ForgeChatRepository
  • Configure OpenCode Go provider in provider.json with the following models:
    • GLM 5 - Zhipu AI flagship model with 204K context
    • Kimi K2.5 - Moonshot AI flagship model with 262K context, vision support
    • MiMo V2 Pro - Xiaomi flagship model with 1M context
    • MiMo V2 Omni - Xiaomi omni-modal model
    • MiniMax M2.7 - MiniMax latest model with 200K context
    • MiniMax M2.5 - MiniMax model with 204K context
  • Add OpenCode Go to pipeline transformer for strict schema handling
  • Fix display names for both OpenCode Zen ("OpenCode Zen") and OpenCode Go ("OpenCode Go")

Motivation

Users requested OpenCode Go support as an alternative to OpenCode Zen, with access to different open-source models.

Related Issue

Co-Authored-By: ForgeCode noreply@forgecode.dev

@github-actions github-actions bot added the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Apr 3, 2026
- Add OPENCODE_GO provider ID constant with display name 'OpenCode Go'
- Create OpenCodeGoResponseRepository for handling OpenCode Go API requests
- Add OpenCode Go to provider routing in ForgeChatRepository
- Configure OpenCode Go provider in provider.json with 6 models:
  - GLM 5, Kimi K2.5, MiMo V2 Pro, MiMo V2 Omni, MiniMax M2.7, MiniMax M2.5
- Add OpenCode Go to pipeline transformer for strict schema handling
- Fix display names for OpenCode Zen and OpenCode Go (proper casing)

Co-Authored-By: ForgeCode <noreply@forgecode.dev>
@ravshansbox ravshansbox force-pushed the feat/add-opencode-go-provider branch 2 times, most recently from 3c2d782 to a422ed1 Compare April 3, 2026 13:49
Co-Authored-By: ForgeCode <noreply@forgecode.dev>
@ravshansbox ravshansbox force-pushed the feat/add-opencode-go-provider branch from a3d463d to 26ef1cc Compare April 3, 2026 13:56
autofix-ci bot and others added 3 commits April 3, 2026 13:58
Co-Authored-By: ForgeCode <noreply@forgecode.dev>
Co-Authored-By: ForgeCode <noreply@forgecode.dev>
ravshansbox and others added 3 commits April 3, 2026 18:56
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Co-Authored-By: ForgeCode <noreply@forgecode.dev>
@github-actions github-actions bot added the update: provider Updates provider.json configuration. label Apr 7, 2026
@@ -0,0 +1,97 @@
use std::sync::Arc;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file is not needed as we can use the opencode_zen repo this file is fully duplicated

"id": "opencode_go",
"api_key_vars": "OPENCODE_API_KEY",
"url_param_vars": [],
"response_type": "OpenAI",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"response_type": "OpenAI",
"response_type": "OpenCode",

let opencode_zen_repo =
OpenCodeZenResponseRepository::new(infra.clone()).retry_config(retry_config.clone());
let opencode_go_repo =
OpenCodeGoResponseRepository::new(infra.clone()).retry_config(retry_config.clone());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need use opencode_zen

@amitksingh1490 amitksingh1490 merged commit 6e52b88 into antinomyhq:main Apr 7, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature Brand new functionality, features, pages, workflows, endpoints, etc. update: provider Updates provider.json configuration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add OpenCode Go provider support

2 participants