opencode icon indicating copy to clipboard operation
opencode copied to clipboard

openai provider 无法执行 shell 命令

Open brookate opened this issue 4 days ago • 1 comments

Description

这边是我的配置

dell➜  ~ cat .config/opencode/opencode.json
{
  "$schema": "https://opencode.ai/config.json",
	"permission": "allow",
  "provider": {
    "codex": {
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "https://code.ppchat.vip/v1",
        "apiKey": "{env:OPENAI_API_KEY}"
      },
      "models": {
        "gpt-5.2": {
          "name": "GPT-5.2"
        }
      }
    }
  }
}
Image

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Linux

Terminal

terminal

brookate avatar Jan 10 '26 10:01 brookate