<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>OpenCode :: Ay Docs</title><link>https://aaronyang0628.github.io/docs/using/ai/opencode/index.html</link><description/><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 07 Mar 2026 15:00:59 +0800</lastBuildDate><atom:link href="https://aaronyang0628.github.io/docs/using/ai/opencode/index.xml" rel="self" type="application/rss+xml"/><item><title>OpenCode + GPT</title><link>https://aaronyang0628.github.io/docs/using/ai/opencode/with_gpt/index.html</link><pubDate>Sat, 07 Mar 2026 15:00:59 +0800</pubDate><guid>https://aaronyang0628.github.io/docs/using/ai/opencode/with_gpt/index.html</guid><description>create default configurtion file ~/.config/opencode/opencode.json vim ~/.config/opencode/opencode.json Copt Paster This Opencode Config { "provider": { "openai": { "options": { "baseURL": "https://v2.qixuw.com/v1", "apiKey": "sk-sss" }, "models": { "gpt-5-codex": { "name": "GPT-5 Codex", "limit": { "context": 400000, "output": 128000 }, "options": { "store": false }, "variants": { "low": {}, "medium": {}, "high": {} } }, "gpt-5.1-codex": { "name": "GPT-5.1 Codex", "limit": { "context": 400000, "output": 128000 }, "options": { "store": false }, "variants": { "low": {}, "medium": {}, "high": {} } }, "gpt-5.1-codex-max": { "name": "GPT-5.1 Codex Max", "limit": { "context": 400000, "output": 128000 }, "options": { "store": false }, "variants": { "low": {}, "medium": {}, "high": {} } }, "gpt-5.1-codex-mini": { "name": "GPT-5.1 Codex Mini", "limit": { "context": 400000, "output": 128000 }, "options": { "store": false }, "variants": { "low": {}, "medium": {}, "high": {} } }, "gpt-5.2": { "name": "GPT-5.2", "limit": { "context": 400000, "output": 128000 }, "options": { "store": false }, "variants": { "low": {}, "medium": {}, "high": {}, "xhigh": {} } }, "gpt-5.4": { "name": "GPT-5.4", "limit": { "context": 1050000, "output": 128000 }, "options": { "store": false }, "variants": { "low": {}, "medium": {}, "high": {}, "xhigh": {} } }, "gpt-5.3-codex-spark": { "name": "GPT-5.3 Codex Spark", "limit": { "context": 128000, "output": 32000 }, "options": { "store": false }, "variants": { "low": {}, "medium": {}, "high": {}, "xhigh": {} } }, "gpt-5.3-codex": { "name": "GPT-5.3 Codex", "limit": { "context": 400000, "output": 128000 }, "options": { "store": false }, "variants": { "low": {}, "medium": {}, "high": {}, "xhigh": {} } }, "gpt-5.2-codex": { "name": "GPT-5.2 Codex", "limit": { "context": 400000, "output": 128000 }, "options": { "store": false }, "variants": { "low": {}, "medium": {}, "high": {}, "xhigh": {} } }, "codex-mini-latest": { "name": "Codex Mini", "limit": { "context": 200000, "output": 100000 }, "options": { "store": false }, "variants": { "low": {}, "medium": {}, "high": {} } } } } }, "agent": { "build": { "options": { "store": false } }, "plan": { "options": { "store": false } } }, "$schema": "https://opencode.ai/config.json" } K8s Manifest kubectl -n opencode apply -f - &lt;&lt;'EOF' apiVersion: v1 kind: ConfigMap metadata: name: opencode-config namespace: opencode data: opencode.json: | { "provider": { "openai": { "options": { "baseURL": "https://v2.qixuw.com/v1", "apiKey": "sk-sdf" }, "models": { "gpt-5-codex": { "name": "GPT-5 Codex", "limit": { "context": 400000, "output": 128000 }, "options": { "store": false }, "variants": { "low": {}, "medium": {}, "high": {} } }, "gpt-5.1-codex": { "name": "GPT-5.1 Codex", "limit": { "context": 400000, "output": 128000 }, "options": { "store": false }, "variants": { "low": {}, "medium": {}, "high": {} } }, "gpt-5.1-codex-max": { "name": "GPT-5.1 Codex Max", "limit": { "context": 400000, "output": 128000 }, "options": { "store": false }, "variants": { "low": {}, "medium": {}, "high": {} } }, "gpt-5.1-codex-mini": { "name": "GPT-5.1 Codex Mini", "limit": { "context": 400000, "output": 128000 }, "options": { "store": false }, "variants": { "low": {}, "medium": {}, "high": {} } }, "gpt-5.2": { "name": "GPT-5.2", "limit": { "context": 400000, "output": 128000 }, "options": { "store": false }, "variants": { "low": {}, "medium": {}, "high": {}, "xhigh": {} } }, "gpt-5.4": { "name": "GPT-5.4", "limit": { "context": 1050000, "output": 128000 }, "options": { "store": false }, "variants": { "low": {}, "medium": {}, "high": {}, "xhigh": {} } }, "gpt-5.3-codex-spark": { "name": "GPT-5.3 Codex Spark", "limit": { "context": 128000, "output": 32000 }, "options": { "store": false }, "variants": { "low": {}, "medium": {}, "high": {}, "xhigh": {} } }, "gpt-5.3-codex": { "name": "GPT-5.3 Codex", "limit": { "context": 400000, "output": 128000 }, "options": { "store": false }, "variants": { "low": {}, "medium": {}, "high": {}, "xhigh": {} } }, "gpt-5.2-codex": { "name": "GPT-5.2 Codex", "limit": { "context": 400000, "output": 128000 }, "options": { "store": false }, "variants": { "low": {}, "medium": {}, "high": {}, "xhigh": {} } }, "codex-mini-latest": { "name": "Codex Mini", "limit": { "context": 200000, "output": 100000 }, "options": { "store": false }, "variants": { "low": {}, "medium": {}, "high": {} } } } } }, "agent": { "build": { "options": { "store": false } }, "plan": { "options": { "store": false } } }, "$schema": "https://opencode.ai/config.json" } EOF If you need to switch from different models, you can edit the ~/.bashrc</description></item><item><title>OpenCode + MiniMax</title><link>https://aaronyang0628.github.io/docs/using/ai/opencode/with_minmax/index.html</link><pubDate>Sat, 07 Mar 2026 15:00:59 +0800</pubDate><guid>https://aaronyang0628.github.io/docs/using/ai/opencode/with_minmax/index.html</guid><description>Opencode Config { "$schema": "https://opencode.ai/config.json", "provider": { "minimax": { "npm": "@ai-sdk/openai-compatible", "name": "MiniMax M2.5", "options": { "baseURL": "http://10.200.92.41:31551/v1", "apiKey": "sk-x" }, "models": { "minimax-m2.5": { "name": "MiniMax M2.5", "id": "MiniMaxAI/MiniMax-M2.5", "limit": { "context": 196608, "output": 8192 } } } } }, "model": "minimax/minimax-m2.5" } K8s Manifest kubectl -n opencode apply -f - &lt;&lt;'EOF' apiVersion: v1 kind: ConfigMap metadata: name: opencode-config namespace: opencode data: opencode.json: | { "$schema": "https://opencode.ai/config.json", "provider": { "minimax": { "npm": "@ai-sdk/openai-compatible", "name": "MiniMax M2.5", "options": { "baseURL": "http://10.200.92.41:31551/v1", "apiKey": "sk-s" }, "models": { "minimax-m2.5": { "name": "MiniMax M2.5", "id": "MiniMaxAI/MiniMax-M2.5", "limit": { "context": 196608, "output": 8192 } } } } }, "model": "minimax/minimax-m2.5" } EOF</description></item><item><title>OpenCode + Sonset</title><link>https://aaronyang0628.github.io/docs/using/ai/opencode/with_sonset/index.html</link><pubDate>Sat, 07 Mar 2026 15:00:59 +0800</pubDate><guid>https://aaronyang0628.github.io/docs/using/ai/opencode/with_sonset/index.html</guid><description>{ “$schema”: “https://opencode.ai/config.json", “plugin”: [ ], “provider”: { “zzz”: { “name”: “中转站”, “npm”: “@ai-sdk/openai-compatible”, “models”: { “claude-sonnet-4-5-20250929-thinking”: { “name”: “Claude Sonnet 4.5 Thinking”, “reasoning”: true, “limit”: { “context”: 200000, “output”: 32000 }, “modalities”: { “input”: [“text”, “image”], “output”: [“text”] }, “options”: { “interleaved”: { “field”: “reasoning_content” } } } }, “options”: { “baseURL”: “http://154.37.218.75:3000/v1”, “apiKey”: “sk-sssss” } } }, “model”: “zzz/claude-sonnet-4-5-20250929-thinking”, “small_model”: “zzz/claude-sonnet-4-5-20250929-thinking”, “disabled_providers”: [] }</description></item></channel></rss>