Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

✨ feat: add OpenCode Zen and OpenCode Go providers (#13943)

Hardy48760e353a55
diff --git a/locales/zh-CN/providers.json b/locales/zh-CN/providers.json
index ef7f1b4284e..161a011c599 100644
--- a/locales/zh-CN/providers.json
+++ b/locales/zh-CN/providers.json
@@ -47,6 +47,8 @@
"ollama.description": "Ollama 提供涵盖代码生成、数学、多语言处理与对话的模型,支持企业级与本地部署。",
"ollamacloud.description": "Ollama Cloud 提供托管推理服务,开箱即用访问 Ollama 模型库与兼容 OpenAI 的 API。",
"openai.description": "OpenAI 是领先的 AI 研究实验室,其 GPT 模型推动自然语言处理发展,在科研、商业与创新中表现卓越、价值显著。",
+ "opencodecodingplan.description": "OpenCode Go 是 $10/月的订阅服务,提供对精选开源编程模型(GLM、Kimi、MiMo、Qwen、MiniMax)的可靠访问。",
+ "opencodezen.description": "OpenCode Zen 通过单一 API Key 提供对精选模型(OpenAI、Anthropic、Moonshot、MiniMax、智谱、Qwen 等)的访问。",
"openrouter.description": "OpenRouter 提供对 OpenAI、Anthropic、LLaMA 等前沿模型的访问,用户可根据需求选择最优模型与价格。",
"perplexity.description": "Perplexity 提供先进的对话模型,包括 Llama 3.1 变体,适用于在线与离线使用及复杂 NLP 任务。",
"ppio.description": "PPIO 提供可靠、性价比高的开源模型 API,支持 DeepSeek、Llama、Qwen 等主流模型。",
diff --git a/packages/model-bank/package.json b/packages/model-bank/package.json
index 84eaf6feca5..c8cb0106291 100644
--- a/packages/model-bank/package.json
+++ b/packages/model-bank/package.json
@@ -54,6 +54,8 @@
"./ollama": "./src/aiModels/ollama.ts",
"./ollamacloud": "./src/aiModels/ollamacloud.ts",
"./openai": "./src/aiModels/openai.ts",
+ "./opencodeCodingPlan": "./src/aiModels/opencodeCodingPlan.ts",
+ "./opencodeZen": "./src/aiModels/opencodeZen.ts",
"./openrouter": "./src/aiModels/openrouter.ts",
"./perplexity": "./src/aiModels/perplexity.ts",
"./ppio": "./src/aiModels/ppio.ts",
diff --git a/packages/model-bank/src/aiModels/index.ts b/packages/model-bank/src/aiModels/index.ts
index 10eb16b0950..747fcd74f81 100644
--- a/packages/model-bank/src/aiModels/index.ts
+++ b/packages/model-bank/src/aiModels/index.ts
@@ -49,6 +49,8 @@ import { default as nvidia } from './nvidia';
import { default as ollama } from './ollama';
import { default as ollamacloud } from './ollamacloud';
import { default as openai } from './openai';
+import { default as opencodecodingplan } from './opencodeCodingPlan';
+import { default as opencodezen } from './opencodeZen';
import { default as openrouter } from './openrouter';
import { default as perplexity } from './perplexity';
import { default as ppio } from './ppio';
@@ -149,6 +151,8 @@ export const LOBE_DEFAULT_MODEL_LIST = buildDefaultModelList({
ollama,
ollamacloud,
openai,
+ opencodecodingplan,
+ opencodezen,
openrouter,
perplexity,
ppio,
@@ -230,6 +234,8 @@ export { default as nvidia } from './nvidia';
export { default as ollama } from './ollama';
export { default as ollamacloud } from './ollamacloud';
export { gptImage1ParamsSchema, default as openai, openaiChatModels } from './openai';
+export { default as opencodecodingplan } from './opencodeCodingPlan';
+export { default as opencodezen } from './opencodeZen';
export { default as openrouter } from './openrouter';
export { default as perplexity } from './perplexity';
export { default as ppio } from './ppio';
diff --git a/packages/model-bank/src/aiModels/opencodeCodingPlan.ts b/packages/model-bank/src/aiModels/opencodeCodingPlan.ts
new file mode 100644
index 00000000000..16f569e4dfe
--- /dev/null
+++ b/packages/model-bank/src/aiModels/opencodeCodingPlan.ts
@@ -0,0 +1,199 @@
+import { type AIChatModelCard } from '../types/aiModel';
+
+// ref: https://opencode.ai/go
+// Model data sourced from models.dev API (opencode-go provider)
+
+const opencodeCodingPlanChatModels: AIChatModelCard[] = [
+ {
+ abilities: { functionCall: true, reasoning: true },
+ contextWindowTokens: 204_800,
+ description:
+ 'GLM-5.1 by Zhipu AI — latest generation coding model with enhanced reasoning and tool use capabilities.',
+ displayName: 'GLM-5.1',
+ enabled: true,
+ id: 'glm-5.1',
+ maxOutput: 32_000,
+ organization: 'Zhipu',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 1.4, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-04-07',
+ type: 'chat',
+ },
+ {
+ abilities: { functionCall: true, reasoning: true },
+ contextWindowTokens: 204_800,
+ description:
+ 'GLM-5 by Zhipu AI — high-performance coding model with strong reasoning abilities.',
+ displayName: 'GLM-5',
+ enabled: false,
+ id: 'glm-5',
+ maxOutput: 32_000,
+ organization: 'Zhipu',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 3.2, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-02-11',
+ type: 'chat',
+ },
+ {
+ abilities: { functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 262_144,
+ description:
+ 'Kimi K2.5 by Moonshot AI — advanced reasoning model with vision support for images and video input.',
+ displayName: 'Kimi K2.5',
+ enabled: false,
+ id: 'kimi-k2.5',
+ maxOutput: 32_000,
+ organization: 'Moonshot',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-01-27',
+ type: 'chat',
+ },
+ {
+ abilities: { functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 262_144,
+ description:
+ 'MiMo-V2-Omni by Xiaomi — multimodal model supporting text, image, audio, and PDF input.',
+ displayName: 'MiMo-V2 Omni',
+ enabled: false,
+ id: 'mimo-v2-omni',
+ maxOutput: 32_000,
+ organization: 'Xiaomi',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-03-18',
+ settings: {
+ extendParams: ['reasoningEffort'],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: { functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 262_144,
+ description:
+ 'Qwen3.6-Plus by Alibaba — latest Qwen coding model with strong reasoning and vision capabilities.',
+ displayName: 'Qwen3.6 Plus',
+ enabled: true,
+ id: 'qwen3.6-plus',
+ maxOutput: 32_000,
+ organization: 'Alibaba',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-04-02',
+ settings: {
+ extendParams: ['reasoningEffort'],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: { functionCall: true, reasoning: true },
+ contextWindowTokens: 204_800,
+ description:
+ 'MiniMax M2.5 — efficient coding model with strong reasoning and function call support.',
+ displayName: 'MiniMax M2.5',
+ enabled: false,
+ id: 'minimax-m2.5',
+ maxOutput: 32_000,
+ organization: 'MiniMax',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 1.2, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-02-12',
+ type: 'chat',
+ },
+ {
+ abilities: { functionCall: true, reasoning: true },
+ contextWindowTokens: 204_800,
+ description: 'MiniMax M2.7 — latest MiniMax coding model with improved reasoning and tool use.',
+ displayName: 'MiniMax M2.7',
+ enabled: true,
+ id: 'minimax-m2.7',
+ maxOutput: 32_000,
+ organization: 'MiniMax',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 1.2, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-03-18',
+ type: 'chat',
+ },
+ {
+ abilities: { functionCall: true, reasoning: true },
+ contextWindowTokens: 1_048_576,
+ description: 'MiMo-V2-Pro by Xiaomi — high-throughput model with 1M token context window.',
+ displayName: 'MiMo-V2 Pro',
+ enabled: false,
+ id: 'mimo-v2-pro',
+ maxOutput: 32_000,
+ organization: 'Xiaomi',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-03-18',
+ settings: {
+ extendParams: ['reasoningEffort'],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: { functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 262_144,
+ description:
+ 'Qwen3.5-Plus by Alibaba — cost-effective coding model with vision support for image and video input.',
+ displayName: 'Qwen3.5 Plus',
+ enabled: false,
+ id: 'qwen3.5-plus',
+ maxOutput: 32_000,
+ organization: 'Alibaba',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 1.2, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-02-16',
+ settings: {
+ extendParams: ['reasoningEffort'],
+ },
+ type: 'chat',
+ },
+];
+
+export default opencodeCodingPlanChatModels;
diff --git a/packages/model-bank/src/aiModels/opencodeZen.ts b/packages/model-bank/src/aiModels/opencodeZen.ts
new file mode 100644
index 00000000000..4280eb3ee80
--- /dev/null
+++ b/packages/model-bank/src/aiModels/opencodeZen.ts
@@ -0,0 +1,758 @@
+import { type AIChatModelCard } from '../types/aiModel';
+
+// ref: https://opencode.ai/zen
+// Model data sourced from models.dev API (opencode provider)
+
+const opencodeZenChatModels: AIChatModelCard[] = [
+ // ========== Anthropic Claude ==========
+ {
+ abilities: { functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 200_000,
+ description:
+ 'Claude Haiku 3.5 by Anthropic — fast and cost-efficient model with vision support.',
+ displayName: 'Claude Haiku 3.5',
+ enabled: false,
+ id: 'claude-3-5-haiku',
+ maxOutput: 8192,
+ organization: 'Anthropic',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 0.8, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.08, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheWrite', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2024-10-22',
+ type: 'chat',
+ },
+ {
+ abilities: { functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 200_000,
+ description:
+ 'Claude Haiku 4.5 by Anthropic — next-gen Haiku with enhanced reasoning and vision.',
+ displayName: 'Claude Haiku 4.5',
+ enabled: false,
+ id: 'claude-haiku-4-5',
+ maxOutput: 32_000,
+ organization: 'Anthropic',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheWrite', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-10-15',
+ type: 'chat',
+ },
+ {
+ abilities: { functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 200_000,
+ description:
+ 'Claude Opus 4.1 by Anthropic — premium reasoning model with deep analysis capabilities.',
+ displayName: 'Claude Opus 4.1',
+ enabled: false,
+ id: 'claude-opus-4-1',
+ maxOutput: 32_000,
+ organization: 'Anthropic',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 75, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheWrite', rate: 18.75, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-08-05',
+ type: 'chat',
+ },
+ {
+ abilities: { functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 200_000,
+ description:
+ 'Claude Opus 4.5 by Anthropic — flagship model with top-tier reasoning and coding.',
+ displayName: 'Claude Opus 4.5',
+ enabled: false,
+ id: 'claude-opus-4-5',
+ maxOutput: 32_000,
+ organization: 'Anthropic',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 25, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheWrite', rate: 6.25, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-11-24',
+ type: 'chat',
+ },
+ {
+ abilities: { functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 1_000_000,
+ description:
+ 'Claude Opus 4.6 by Anthropic — 1M context window flagship with advanced reasoning.',
+ displayName: 'Claude Opus 4.6',
+ enabled: false,
+ id: 'claude-opus-4-6',
+ maxOutput: 32_000,
+ organization: 'Anthropic',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 25, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheWrite', rate: 6.25, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-02-05',
+ type: 'chat',
+ },
+ {
+ abilities: { functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 1_000_000,
+ description:
+ 'Claude Opus 4.7 by Anthropic — latest Opus with state-of-the-art reasoning and coding.',
+ displayName: 'Claude Opus 4.7',
+ enabled: true,
+ id: 'claude-opus-4-7',
+ maxOutput: 32_000,
+ organization: 'Anthropic',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 25, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheWrite', rate: 6.25, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-04-16',
+ type: 'chat',
+ },
+ {
+ abilities: { functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 1_000_000,
+ description:
+ 'Claude Sonnet 4 by Anthropic — balanced model with strong coding and reasoning abilities.',
+ displayName: 'Claude Sonnet 4',
+ enabled: false,
+ id: 'claude-sonnet-4',
+ maxOutput: 32_000,
+ organization: 'Anthropic',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheWrite', rate: 3.75, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-05-22',
+ type: 'chat',
+ },
+ {
+ abilities: { functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 1_000_000,
+ description:
+ 'Claude Sonnet 4.5 by Anthropic — improved Sonnet with enhanced coding performance.',
+ displayName: 'Claude Sonnet 4.5',
+ enabled: false,
+ id: 'claude-sonnet-4-5',
+ maxOutput: 32_000,
+ organization: 'Anthropic',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheWrite', rate: 3.75, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-09-29',
+ type: 'chat',
+ },
+ {
+ abilities: { functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 1_000_000,
+ description:
+ 'Claude Sonnet 4.6 by Anthropic — latest Sonnet with superior coding and tool use.',
+ displayName: 'Claude Sonnet 4.6',
+ enabled: false,
+ id: 'claude-sonnet-4-6',
+ maxOutput: 32_000,
+ organization: 'Anthropic',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheWrite', rate: 3.75, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-02-17',
+ type: 'chat',
+ },
+
+ // ========== Google Gemini ==========
+ {
+ abilities: { files: true, functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 1_048_576,
+ description: 'Gemini 3 Flash by Google — ultra-fast model with multimodal input support.',
+ displayName: 'Gemini 3 Flash',
+ enabled: false,
+ id: 'gemini-3-flash',
+ maxOutput: 32_000,
+ organization: 'Google',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.05, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-12-17',
+ type: 'chat',
+ },
+ {
+ abilities: { files: true, functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 1_048_576,
+ description: 'Gemini 3.1 Pro by Google — premium multimodal model with 1M context window.',
+ displayName: 'Gemini 3.1 Pro',
+ enabled: true,
+ id: 'gemini-3.1-pro',
+ maxOutput: 32_000,
+ organization: 'Google',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-02-19',
+ type: 'chat',
+ },
+
+ // ========== Zhipu GLM ==========
+ {
+ abilities: { functionCall: true, reasoning: true },
+ contextWindowTokens: 204_800,
+ description:
+ 'GLM-5 by Zhipu AI — high-performance coding model with strong reasoning abilities.',
+ displayName: 'GLM-5',
+ enabled: false,
+ id: 'glm-5',
+ maxOutput: 32_000,
+ organization: 'Zhipu',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 3.2, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-02-11',
+ type: 'chat',
+ },
+ {
+ abilities: { functionCall: true, reasoning: true },
+ contextWindowTokens: 204_800,
+ description: 'GLM-5.1 by Zhipu AI — latest generation coding model with enhanced reasoning.',
+ displayName: 'GLM-5.1',
+ enabled: true,
+ id: 'glm-5.1',
+ maxOutput: 32_000,
+ organization: 'Zhipu',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 1.4, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.26, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-04-07',
+ type: 'chat',
+ },
+
+ // ========== OpenAI GPT ==========
+ {
+ abilities: { files: true, functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 400_000,
+ description: 'GPT-5 by OpenAI — flagship model with advanced reasoning and multimodal input.',
+ displayName: 'GPT-5',
+ enabled: false,
+ id: 'gpt-5',
+ maxOutput: 32_000,
+ organization: 'OpenAI',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 1.07, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 8.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.107, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-08-07',
+ type: 'chat',
+ },
+ {
+ abilities: { files: true, functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 400_000,
+ description: 'GPT-5 Codex by OpenAI — coding-specialized variant with tool use support.',
+ displayName: 'GPT-5 Codex',
+ enabled: false,
+ id: 'gpt-5-codex',
+ maxOutput: 32_000,
+ organization: 'OpenAI',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 1.07, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 8.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.107, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-09-15',
+ type: 'chat',
+ },
+ {
+ abilities: { files: true, functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 400_000,
+ description: 'GPT-5 Nano by OpenAI — lightweight and cost-efficient model.',
+ displayName: 'GPT-5 Nano',
+ enabled: false,
+ id: 'gpt-5-nano',
+ maxOutput: 32_000,
+ organization: 'OpenAI',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-08-07',
+ type: 'chat',
+ },
+ {
+ abilities: { files: true, functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 400_000,
+ description: 'GPT-5.1 by OpenAI — improved GPT-5 with better reasoning accuracy.',
+ displayName: 'GPT-5.1',
+ enabled: false,
+ id: 'gpt-5.1',
+ maxOutput: 32_000,
+ organization: 'OpenAI',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 1.07, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 8.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.107, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-11-13',
+ type: 'chat',
+ },
+ {
+ abilities: { files: true, functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 400_000,
+ description: 'GPT-5.1 Codex by OpenAI — coding-focused variant with enhanced tool use.',
+ displayName: 'GPT-5.1 Codex',
+ enabled: false,
+ id: 'gpt-5.1-codex',
+ maxOutput: 32_000,
+ organization: 'OpenAI',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 1.07, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 8.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.107, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-11-13',
+ type: 'chat',
+ },
+ {
+ abilities: { files: true, functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 400_000,
+ description: 'GPT-5.1 Codex Max by OpenAI — maximum capability Codex variant.',
+ displayName: 'GPT-5.1 Codex Max',
+ enabled: false,
+ id: 'gpt-5.1-codex-max',
+ maxOutput: 32_000,
+ organization: 'OpenAI',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.125, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-11-13',
+ type: 'chat',
+ },
+ {
+ abilities: { files: true, functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 400_000,
+ description: 'GPT-5.1 Codex Mini by OpenAI — compact coding model with strong capabilities.',
+ displayName: 'GPT-5.1 Codex Mini',
+ enabled: false,
+ id: 'gpt-5.1-codex-mini',
+ maxOutput: 32_000,
+ organization: 'OpenAI',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-11-13',
+ type: 'chat',
+ },
+ {
+ abilities: { files: true, functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 400_000,
+ description: 'GPT-5.2 by OpenAI — upgraded reasoning and multimodal processing.',
+ displayName: 'GPT-5.2',
+ enabled: false,
+ id: 'gpt-5.2',
+ maxOutput: 32_000,
+ organization: 'OpenAI',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 1.75, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 14, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.175, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-12-11',
+ type: 'chat',
+ },
+ {
+ abilities: { files: true, functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 400_000,
+ description: 'GPT-5.2 Codex by OpenAI — coding-specialized with improved tool call accuracy.',
+ displayName: 'GPT-5.2 Codex',
+ enabled: false,
+ id: 'gpt-5.2-codex',
+ maxOutput: 32_000,
+ organization: 'OpenAI',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 1.75, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 14, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.175, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-01-14',
+ type: 'chat',
+ },
+ {
+ abilities: { files: true, functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 400_000,
+ description: 'GPT-5.3 Codex by OpenAI — latest Codex with enhanced code understanding.',
+ displayName: 'GPT-5.3 Codex',
+ enabled: false,
+ id: 'gpt-5.3-codex',
+ maxOutput: 32_000,
+ organization: 'OpenAI',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 1.75, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 14, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.175, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-02-24',
+ type: 'chat',
+ },
+ {
+ abilities: { files: true, functionCall: true, reasoning: true },
+ contextWindowTokens: 128_000,
+ description: 'GPT-5.3 Codex Spark by OpenAI — compact coding model optimized for speed.',
+ displayName: 'GPT-5.3 Codex Spark',
+ enabled: false,
+ id: 'gpt-5.3-codex-spark',
+ maxOutput: 32_000,
+ organization: 'OpenAI',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 1.75, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 14, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.175, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-02-12',
+ type: 'chat',
+ },
+ {
+ abilities: { files: true, functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 1_050_000,
+ description: 'GPT-5.4 by OpenAI — next-gen model with 1M+ context window and multimodal input.',
+ displayName: 'GPT-5.4',
+ enabled: true,
+ id: 'gpt-5.4',
+ maxOutput: 32_000,
+ organization: 'OpenAI',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-03-05',
+ type: 'chat',
+ },
+ {
+ abilities: { files: true, functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 400_000,
+ description: 'GPT-5.4 Mini by OpenAI — efficient model balancing cost and performance.',
+ displayName: 'GPT-5.4 Mini',
+ enabled: false,
+ id: 'gpt-5.4-mini',
+ maxOutput: 32_000,
+ organization: 'OpenAI',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 4.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-03-17',
+ type: 'chat',
+ },
+ {
+ abilities: { files: true, functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 400_000,
+ description: 'GPT-5.4 Nano by OpenAI — ultra-lightweight model for high-throughput tasks.',
+ displayName: 'GPT-5.4 Nano',
+ enabled: false,
+ id: 'gpt-5.4-nano',
+ maxOutput: 32_000,
+ organization: 'OpenAI',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.02, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-03-17',
+ type: 'chat',
+ },
+ {
+ abilities: { functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 1_050_000,
+ description: 'GPT-5.4 Pro by OpenAI — most capable model with maximum context and reasoning.',
+ displayName: 'GPT-5.4 Pro',
+ enabled: false,
+ id: 'gpt-5.4-pro',
+ maxOutput: 32_000,
+ organization: 'OpenAI',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 180, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 30, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-03-05',
+ type: 'chat',
+ },
+
+ // ========== Moonshot Kimi ==========
+ {
+ abilities: { functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 262_144,
+ description:
+ 'Kimi K2.5 by Moonshot AI — advanced reasoning model with image and video input support.',
+ displayName: 'Kimi K2.5',
+ enabled: false,
+ id: 'kimi-k2.5',
+ maxOutput: 32_000,
+ organization: 'Moonshot',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.08, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-01-27',
+ type: 'chat',
+ },
+
+ // ========== MiniMax ==========
+ {
+ abilities: { functionCall: true, reasoning: true },
+ contextWindowTokens: 204_800,
+ description: 'MiniMax M2.5 — efficient coding model with strong reasoning abilities.',
+ displayName: 'MiniMax M2.5',
+ enabled: false,
+ id: 'minimax-m2.5',
+ maxOutput: 32_000,
+ organization: 'MiniMax',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 1.2, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.06, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-02-12',
+ type: 'chat',
+ },
+ {
+ abilities: { functionCall: true, reasoning: true },
+ contextWindowTokens: 204_800,
+ description: 'MiniMax M2.5 Free — free tier coding model with full reasoning capabilities.',
+ displayName: 'MiniMax M2.5 Free',
+ enabled: true,
+ id: 'minimax-m2.5-free',
+ maxOutput: 32_000,
+ organization: 'MiniMax',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-02-12',
+ type: 'chat',
+ },
+
+ // ========== Nvidia Nemotron ==========
+ {
+ abilities: { functionCall: true, reasoning: true },
+ contextWindowTokens: 204_800,
+ description:
+ 'Nemotron 3 Super Free by Nvidia — free tier reasoning model with strong coding support.',
+ displayName: 'Nemotron 3 Super Free',
+ enabled: true,
+ id: 'nemotron-3-super-free',
+ maxOutput: 32_000,
+ organization: 'Nvidia',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-03-11',
+ type: 'chat',
+ },
+
+ // ========== Alibaba Qwen ==========
+ {
+ abilities: { functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 262_144,
+ description: 'Qwen3.5 Plus by Alibaba — cost-effective coding model with vision support.',
+ displayName: 'Qwen3.5 Plus',
+ enabled: false,
+ id: 'qwen3.5-plus',
+ maxOutput: 32_000,
+ organization: 'Alibaba',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 0.2, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 1.2, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.02, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheWrite', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-02-16',
+ settings: {
+ extendParams: ['reasoningEffort'],
+ },
+ type: 'chat',
+ },
+ {
+ abilities: { functionCall: true, reasoning: true, vision: true },
+ contextWindowTokens: 262_144,
+ description:
+ 'Qwen3.6 Plus by Alibaba — latest Qwen coding model with enhanced reasoning and vision.',
+ displayName: 'Qwen3.6 Plus',
+ enabled: false,
+ id: 'qwen3.6-plus',
+ maxOutput: 32_000,
+ organization: 'Alibaba',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0.05, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheWrite', rate: 0.625, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2026-04-02',
+ settings: {
+ extendParams: ['reasoningEffort'],
+ },
+ type: 'chat',
+ },
+
+ // ========== OpenCode (Own) ==========
+ {
+ abilities: { functionCall: true, reasoning: true },
+ contextWindowTokens: 200_000,
+ description:
+ 'Big Pickle by OpenCode — free open-weights model with strong coding capabilities.',
+ displayName: 'Big Pickle',
+ enabled: true,
+ id: 'big-pickle',
+ maxOutput: 32_000,
+ organization: 'OpenCode',
+ pricing: {
+ currency: 'USD',
+ units: [
+ { name: 'textInput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textOutput', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheRead', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
+ { name: 'textInput_cacheWrite', rate: 0, strategy: 'fixed', unit: 'millionTokens' },
+ ],
+ },
+ releasedAt: '2025-10-17',
+ type: 'chat',
+ },
+];
+
+export default opencodeZenChatModels;
diff --git a/packages/model-bank/src/const/modelProvider.ts b/packages/model-bank/src/const/modelProvider.ts
index 95b66c321c3..5b70710b6a8 100644
--- a/packages/model-bank/src/const/modelProvider.ts
+++ b/packages/model-bank/src/const/modelProvider.ts
@@ -47,6 +47,8 @@ export enum ModelProvider {
Ollama = 'ollama',
OllamaCloud = 'ollamacloud',
OpenAI = 'openai',
+ OpenCodeCodingPlan = 'opencodecodingplan',
+ OpenCodeZen = 'opencodezen',
OpenRouter = 'openrouter',
Perplexity = 'perplexity',
PPIO = 'ppio',
diff --git a/packages/model-bank/src/modelProviders/index.ts b/packages/model-bank/src/modelProviders/index.ts
index 34064ffbd76..ba6b2c1355f 100644
--- a/packages/model-bank/src/modelProviders/index.ts
+++ b/packages/model-bank/src/modelProviders/index.ts
@@ -50,6 +50,8 @@ import NvidiaProvider from './nvidia';
import OllamaProvider from './ollama';
import OllamaCloudProvider from './ollamacloud';
import OpenAIProvider from './openai';
+import OpenCodeCodingPlanProvider from './opencodeCodingPlan';
+import OpenCodeZenProvider from './opencodeZen';
import OpenRouterProvider from './openrouter';
import PerplexityProvider from './perplexity';
import PPIOProvider from './ppio';
@@ -214,6 +216,8 @@ export const DEFAULT_MODEL_PROVIDER_LIST = [
VercelAIGatewayProvider,
CerebrasProvider,
ZenMuxProvider,
+ OpenCodeZenProvider,
+ OpenCodeCodingPlanProvider,
StraicoProvider,
XiaomiMiMoProvider,
LongCatProvider,
@@ -279,6 +283,8 @@ export { default as NvidiaProviderCard } from './nvidia';
export { default as OllamaProviderCard } from './ollama';
export { default as OllamaCloudProviderCard } from './ollamacloud';
export { default as OpenAIProviderCard } from './openai';
+export { default as OpenCodeCodingPlanProviderCard } from './opencodeCodingPlan';
+export { default as OpenCodeZenProviderCard } from './opencodeZen';
export { default as OpenRouterProviderCard } from './openrouter';
export { default as PerplexityProviderCard } from './perplexity';
export { default as PPIOProviderCard } from './ppio';
diff --git a/packages/model-bank/src/modelProviders/opencodeCodingPlan.ts b/packages/model-bank/src/modelProviders/opencodeCodingPlan.ts
new file mode 100644
index 00000000000..e17f808d74b
--- /dev/null
+++ b/packages/model-bank/src/modelProviders/opencodeCodingPlan.ts
@@ -0,0 +1,25 @@
+import type { ModelProviderCard } from '@/types/llm';
+
+// ref: https://opencode.ai/go
+const OpenCodeCodingPlan: ModelProviderCard = {
+ chatModels: [],
+ checkModel: 'glm-5.1',
+ description:
+ 'OpenCode Go is a $10/month subscription providing reliable access to curated open coding models: GLM, Kimi, MiMo, Qwen, MiniMax.',
+ disableBrowserRequest: true,
+ id: 'opencodecodingplan',
+ modelList: { showModelFetcher: false },
+ modelsUrl: 'https://opencode.ai/go',
+ name: 'OpenCode Go',
+ settings: {
+ disableBrowserRequest: true,
+ proxyUrl: {
+ placeholder: 'https://opencode.ai/zen/go/v1',
+ },
+ sdkType: 'openai',
+ showModelFetcher: false,
+ },
+ url: 'https://opencode.ai/go',
+};
+
+export default OpenCodeCodingPlan;
diff --git a/packages/model-bank/src/modelProviders/opencodeZen.ts b/packages/model-bank/src/modelProviders/opencodeZen.ts
new file mode 100644
index 00000000000..ba9813c8e6b
--- /dev/null
+++ b/packages/model-bank/src/modelProviders/opencodeZen.ts
@@ -0,0 +1,25 @@
+import type { ModelProviderCard } from '@/types/llm';
+
+import { default as zenModels } from '../aiModels/opencodeZen';
+
+// ref: https://opencode.ai/zen
+const OpenCodeZen: ModelProviderCard = {
+ chatModels: zenModels,
+ checkModel: 'claude-sonnet-4-5',
+ description:
+ 'OpenCode Zen provides access to curated models from OpenAI, Anthropic, Moonshot, MiniMax, Zhipu, Qwen, and more via a single API key.',
+ id: 'opencodezen',
+ modelList: { showModelFetcher: true },
+ modelsUrl: 'https://opencode.ai/zen',
+ name: 'OpenCode Zen',
+ settings: {
+ proxyUrl: {
+ placeholder: 'https://opencode.ai/zen/v1',
+ },
+ sdkType: 'openai',
+ showModelFetcher: true,
+ },
+ url: 'https://opencode.ai/zen',
+};
+
+export default OpenCodeZen;
diff --git a/packages/model-runtime/src/providers/opencodeCodingPlan/index.ts b/packages/model-runtime/src/providers/opencodeCodingPlan/index.ts
new file mode 100644
index 00000000000..efb04fa95c4
--- /dev/null
+++ b/packages/model-runtime/src/providers/opencodeCodingPlan/index.ts
@@ -0,0 +1,56 @@
+import { ModelProvider } from 'model-bank';
+
+import { createRouterRuntime } from '../../core/RouterRuntime';
+import type { CreateRouterRuntimeOptions } from '../../core/RouterRuntime/createRuntime';
+import { processMultiProviderModelList } from '../../utils/modelParse';
+
+const GO_BASE_URL = 'https://opencode.ai/zen/go/v1';
+
+// MiniMax models in Go use @ai-sdk/anthropic (Anthropic Messages API format)
+// Endpoint: /go/v1/messages
+const minimaxModels = ['minimax-m2.5', 'minimax-m2.7'];
+
+// Qwen models in Go use @ai-sdk/alibaba which is not in our apiTypes.
+// They fall through to openai-compatible. The Gateway handles format conversion.
+// All other models (GLM, Kimi, MiMo) use @ai-sdk/openai-compatible.
+
+// Anthropic SDK auto-appends /v1/messages to baseURL, so we need to strip trailing /v1
+const stripV1 = (url?: string) => url?.replace(/\/v1$/, '');
+
+export const params = {
+ debug: {
+ chatCompletion: () => process.env.DEBUG_OPENCODE_GO_CHAT_COMPLETION === '1',
+ },
+ id: ModelProvider.OpenCodeCodingPlan,
+ models: async () => {
+ const { opencodecodingplan } = await import('model-bank');
+ return processMultiProviderModelList(
+ opencodecodingplan.map((m: { id: string }) => ({ id: m.id })),
+ 'opencodecodingplan',
+ );
+ },
+ routers: (options) => {
+ const baseURL = options.baseURL || GO_BASE_URL;
+ return [
+ // Anthropic router for MiniMax models (use Anthropic Messages API format)
+ {
+ apiType: 'anthropic',
+ models: minimaxModels,
+ options: {
+ ...options,
+ baseURL: stripV1(baseURL),
+ },
+ },
+ // OpenAI-compatible fallback for all other models (GLM, Kimi, MiMo, Qwen)
+ {
+ apiType: 'openai',
+ options: {
+ ...options,
+ baseURL,
+ },
+ },
+ ];
+ },
+} satisfies CreateRouterRuntimeOptions;
+
+export const LobeOpenCodeCodingPlanAI = createRouterRuntime(params);
diff --git a/packages/model-runtime/src/providers/opencodeZen/index.ts b/packages/model-runtime/src/providers/opencodeZen/index.ts
new file mode 100644
index 00000000000..6165f5b31a5
--- /dev/null
+++ b/packages/model-runtime/src/providers/opencodeZen/index.ts
@@ -0,0 +1,69 @@
+import { LOBE_DEFAULT_MODEL_LIST, ModelProvider } from 'model-bank';
+
+import { responsesAPIModels } from '../../const/models';
+import { createRouterRuntime } from '../../core/RouterRuntime';
+import type { CreateRouterRuntimeOptions } from '../../core/RouterRuntime/createRuntime';
+import { detectModelProvider, processMultiProviderModelList } from '../../utils/modelParse';
+
+const ZEN_BASE_URL = 'https://opencode.ai/zen/v1';
+
+// Claude models use @ai-sdk/anthropic via Zen Gateway
+const claudeModels = LOBE_DEFAULT_MODEL_LIST.map((m) => m.id).filter(
+ (id) => detectModelProvider(id) === 'anthropic',
+);
+
+// GPT-5.x models use @ai-sdk/openai (Responses API) via Zen Gateway
+const gptModels = LOBE_DEFAULT_MODEL_LIST.map((m) => m.id).filter(
+ (id) => detectModelProvider(id) === 'openai',
+);
+
+// Anthropic SDK auto-appends /v1/messages to baseURL, so we need to strip trailing /v1
+const stripV1 = (url?: string) => url?.replace(/\/v1$/, '');
+
+export const params = {
+ debug: {
+ chatCompletion: () => process.env.DEBUG_OPENCODE_ZEN_CHAT_COMPLETION === '1',
+ },
+ id: ModelProvider.OpenCodeZen,
+ models: async ({ client: openAIClient }) => {
+ const modelsPage = (await openAIClient.models.list()) as any;
+ const modelList = modelsPage.data || [];
+ return processMultiProviderModelList(modelList, 'opencodezen');
+ },
+ routers: (options) => {
+ const baseURL = options.baseURL || ZEN_BASE_URL;
+ return [
+ // Anthropic router for Claude models
+ {
+ apiType: 'anthropic',
+ models: claudeModels,
+ options: {
+ ...options,
+ baseURL: stripV1(baseURL),
+ },
+ },
+ // OpenAI router for GPT-5.x models (Responses API)
+ {
+ apiType: 'openai',
+ models: gptModels,
+ options: {
+ ...options,
+ baseURL,
+ chatCompletion: {
+ useResponseModels: [...Array.from(responsesAPIModels), /gpt-\d(?!\d)/, /^o\d/],
+ },
+ },
+ },
+ // OpenAI-compatible fallback for all other models (Gemini, GLM, Kimi, MiniMax, Qwen, etc.)
+ {
+ apiType: 'openai',
+ options: {
+ ...options,
+ baseURL,
+ },
+ },
+ ];
+ },
+} satisfies CreateRouterRuntimeOptions;
+
+export const LobeOpenCodeZenAI = createRouterRuntime(params);
diff --git a/packages/model-runtime/src/runtimeMap.ts b/packages/model-runtime/src/runtimeMap.ts
index 53530614b83..52670476577 100644
--- a/packages/model-runtime/src/runtimeMap.ts
+++ b/packages/model-runtime/src/runtimeMap.ts
@@ -46,6 +46,8 @@ import { LobeNvidiaAI } from './providers/nvidia';
import { LobeOllamaAI } from './providers/ollama';
import { LobeOllamaCloudAI } from './providers/ollamacloud';
import { LobeOpenAI } from './providers/openai';
+import { LobeOpenCodeCodingPlanAI } from './providers/opencodeCodingPlan';
+import { LobeOpenCodeZenAI } from './providers/opencodeZen';
import { LobeOpenRouterAI } from './providers/openrouter';
import { LobePerplexityAI } from './providers/perplexity';
import { LobePPIOAI } from './providers/ppio';
@@ -125,6 +127,8 @@ export const providerRuntimeMap = {
nvidia: LobeNvidiaAI,
ollama: LobeOllamaAI,
ollamacloud: LobeOllamaCloudAI,
+ opencodecodingplan: LobeOpenCodeCodingPlanAI,
+ opencodezen: LobeOpenCodeZenAI,
openai: LobeOpenAI,
openrouter: LobeOpenRouterAI,
perplexity: LobePerplexityAI,