opencode
opencode copied to clipboard
openai provider 无法执行 shell 命令
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"
}
}
}
}
}
Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
Linux
Terminal
terminal