From 0296ca6564e8b49cbe92ecfd87bdf4f5dc64e330 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Sun, 15 Feb 2026 01:05:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=BF=81=E7=A7=BB=E8=87=B3=20Codex=20A?= =?UTF-8?q?PI=20=E5=B9=B6=E6=B7=BB=E5=8A=A0=20GLM=20Coding=20Plan=20?= =?UTF-8?q?=E6=8F=90=E4=BE=9B=E5=95=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 3 +- oh-my-opencode.jsonc | 52 ++++++++++-------------- opencode.jsonc | 95 +++++++++++--------------------------------- 3 files changed, 47 insertions(+), 103 deletions(-) diff --git a/.env.example b/.env.example index aeba91f..11d43b2 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,5 @@ -CPA_API_KEY= +CODEX_API_KEY= +# MCP EXA_API_KEY= CONTEXT7_API_KEY= # Windows only diff --git a/oh-my-opencode.jsonc b/oh-my-opencode.jsonc index cb03db9..455f2ee 100644 --- a/oh-my-opencode.jsonc +++ b/oh-my-opencode.jsonc @@ -4,75 +4,67 @@ "agents": { // ref: https://github.com/code-yeongyu/oh-my-opencode/blob/dev/AGENTS.md#agent-models "sisyphus": { - "model": "cpa-anthropic/claude-opus-4-6", - "variant": "max" + "model": "glm-coding-plan/glm-4.7" }, "hephaestus": { - "model": "cpa-openai/gpt-5.3-codex", + "model": "codex/gpt-5.3-codex", "variant": "medium" }, - "atlas": { - "model": "cpa-anthropic/claude-sonnet-4-5" - }, "oracle": { - "model": "cpa-openai/gpt-5.2", + "model": "codex/gpt-5.2", "variant": "high" }, "librarian": { - "model": "cpa-google/gemini-3-flash" + "model": "glm-coding-plan/glm-4.7" }, "explore": { - "model": "cpa-google/gemini-3-flash" + "model": "opencode/gpt-5-nano" }, "multimodal-looker": { - "model": "cpa-google/gemini-3-flash" + "model": "codex/gpt-5.2" }, "prometheus": { - "model": "cpa-anthropic/claude-opus-4-6", - "variant": "max" + "model": "codex/gpt-5.2", + "variant": "high" }, "metis": { - "model": "cpa-anthropic/claude-opus-4-6", - "variant": "max" + "model": "codex/gpt-5.2", + "variant": "high" }, "momus": { - "model": "cpa-openai/gpt-5.2", + "model": "codex/gpt-5.2", "variant": "medium" }, - "sisyphus-junior": { - "model": "cpa-anthropic/claude-sonnet-4-5" + "atlas": { + "model": "codex/gpt-5.2" } }, "categories": { // ref: https://github.com/code-yeongyu/oh-my-opencode/blob/dev/docs/category-skill-guide.md#available-built-in-categories "visual-engineering": { - "model": "cpa-google/gemini-3-pro", - "variant": "high" + "model": "glm-coding-plan/glm-4.7" }, "ultrabrain": { - "model": "cpa-openai/gpt-5.3-codex", + "model": "codex/gpt-5.3-codex", "variant": "xhigh" }, "deep": { - "model": "cpa-openai/gpt-5.3-codex", + "model": "codex/gpt-5.3-codex", "variant": "medium" }, - "artistry": { - "model": "cpa-google/gemini-3-pro", - "variant": "high" - }, "quick": { - "model": "cpa-google/gemini-3-flash" + "model": "opencode/glm-4.7-free" }, "unspecified-low": { - "model": "cpa-anthropic/claude-sonnet-4-5" + "model": "codex/gpt-5.3-codex", + "variant": "medium" }, "unspecified-high": { - "model": "cpa-anthropic/claude-opus-4-6", - "variant": "max" + "model": "codex/gpt-5.3-codex", + "variant": "medium" }, "writing": { - "model": "cpa-google/gemini-3-flash" + "model": "glm-coding-plan/glm-4.7" } }, "git_master": { diff --git a/opencode.jsonc b/opencode.jsonc index 6fa0570..188ae11 100644 --- a/opencode.jsonc +++ b/opencode.jsonc @@ -2,85 +2,22 @@ "$schema": "https://opencode.ai/config.json", "autoupdate": false, "theme": "system", - "model": "cpa-anthropic/claude-opus-4-6", - "small_model": "cpa-google/gemini-3-flash", + "model": "codex/gpt-5.3-codex", + "small_model": "opencode/gpt-5-nano", "plugin": ["oh-my-opencode@latest"], "provider": { // ref: https://models.dev/ - "cpa-anthropic": { - "name": "CPA Anthropic", - "npm": "@ai-sdk/anthropic", - "options": { - "baseURL": "https://cpa.furtherverse.com/v1", - "apiKey": "{env:CPA_API_KEY}", - "setCacheKey": true - }, - "models": { - "claude-opus-4-6": { - "name": "Claude Opus 4.6", - "tool_call": true, - "reasoning": true, - "modalities": { - "input": ["text", "image", "pdf"], - "output": ["text"] - }, - "limit": { "context": 1000000, "output": 128000 } - }, - "claude-sonnet-4-5": { - "name": "Claude Sonnet 4.5", - "tool_call": true, - "reasoning": false, - "modalities": { - "input": ["text", "image", "pdf"], - "output": ["text"] - }, - "limit": { "context": 200000, "output": 64000 } - } - } - }, - "cpa-google": { - "name": "CPA Google", - "npm": "@ai-sdk/google", - "options": { - "baseURL": "https://cpa.furtherverse.com/v1beta", - "apiKey": "{env:CPA_API_KEY}", - "setCacheKey": true - }, - "models": { - "gemini-3-pro": { - "name": "Gemini 3 Pro", - "tool_call": true, - "reasoning": true, - "modalities": { - "input": ["text", "image", "video", "audio", "pdf"], - "output": ["text"] - }, - "limit": { "context": 1048576, "output": 65536 } - }, - "gemini-3-flash": { - "name": "Gemini 3 Flash", - "tool_call": true, - "reasoning": true, - "modalities": { - "input": ["text", "image", "video", "audio", "pdf"], - "output": ["text"] - }, - "limit": { "context": 1048576, "output": 65536 } - } - } - }, - "cpa-openai": { - "name": "CPA OpenAI", + "codex": { + "name": "Codex", "npm": "@ai-sdk/openai", "options": { - "baseURL": "https://cpa.furtherverse.com/v1", - "apiKey": "{env:CPA_API_KEY}", + "baseURL": "https://codex-api.packycode.com/v1", + "apiKey": "{env:CODEX_API_KEY}", "setCacheKey": true }, "models": { "gpt-5.3-codex": { "name": "GPT-5.3-Codex", - "tool_call": true, "reasoning": true, "modalities": { "input": ["text", "image", "pdf"], @@ -90,7 +27,6 @@ }, "gpt-5.2": { "name": "GPT-5.2", - "tool_call": true, "reasoning": true, "modalities": { "input": ["text", "image"], @@ -99,7 +35,22 @@ "limit": { "context": 400000, "input": 272000, "output": 128000 } } } + }, + "glm-coding-plan": { + "name": "GLM Coding Plan", + "npm": "@ai-sdk/openai-compatible", + "options": { + "baseURL": "https://api.z.ai/api/coding/paas/v4", + "apiKey": "{env:ZAI_API_KEY}" + }, + "models": { + "glm-4.7": { + "name": "GLM-4.7", + "reasoning": true, + "modalities": { "input": ["text"], "output": ["text"] }, + "limit": { "context": 204800, "output": 131072 } + } + } } - }, - "disabled_providers": ["opencode"] + } }