<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>OpenCode + GPT :: Ay Docs</title><link>https://aaronyang0628.github.io/docs/using/ai/opencode/with_gpt/index.html</link><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><generator>Hugo</generator><language>en</language><lastBuildDate/><atom:link href="https://aaronyang0628.github.io/docs/using/ai/opencode/with_gpt/index.xml" rel="self" type="application/rss+xml"/></channel></rss>