1、参考文档:

 https://opencode.ai/docs/config/ 


2、文件位置:

lemonhall@LEMON-HP-LAPTOP:~/.config/opencode$ pwd
/home/lemonhall/.config/opencode
lemonhall@LEMON-HP-LAPTOP:~/.config/opencode$


3、配置:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "openai": {
      "name": "RightCode",
      "options": {
        "baseURL": "https://www.right.codes/codex/v1",

        "reasoningEffort":"high",
        "reasoningSummary":"auto",
        "textVerbosity": "medium",
        "include":["reasoning.encrypted_content"],
        "store": false

      },
      "models": {
        "gpt-5.2": {
          "name": "gpt-5.2"
        },
        "gpt-5.2-codex": {
          "name": "gpt-5.2-codex"
        }
      }
    }
  }
}


3、omo

 https://github.com/code-yeongyu/oh-my-opencode 

curl -s https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/refs/heads/master/docs/guide/installation.md

OK,接下来就自己安装去了