OpenCode 中文文档

 

jsonc 复制

{ // TUI 设置 "tui": { "theme": "opencode" }, // 服务器设置 "server": { "port": 8080 }, // 工具设置 "tools": { "bash": { "enabled": true } }, // 模型设置 "models": { "default": "anthropic/claude-sonnet-4-20250514", "big": "anthropic/claude-sonnet-4-20250514", "fast": "anthropic/claude-3-5-haiku-latest" }, // 代理设置 "agents": { "default": "default" }, // 自定义命令 "commands": {}, // 提供商设置 "providers": {}, // LSP 设置 "lsp": {}, // MCP 服务器 "mcp": { "servers": {} }, // 权限 "permissions": { "auto_approve": [] }, // 快捷键 "keybinds": {}, // 其他 "disabled_providers": [], "custom_instructions": "" }