CC-Switch将支持Opencode!
CC-Switch或将发布3.10.0版本Release并在此版本支持Opencode!
最近一次commit:
github.com/farion1231/cc-switch
chore: release v3.10.0
已提交 12:01PM - 21 Jan 26 UTC
farion1231
+52 -10
pull request merge记录:
github.com/farion1231/cc-switch
feat: add OpenCode as the fourth managed CLI application
main ←
feat/opencode-support
已打开 12:23PM - 19 Jan 26 UTC
farion1231
+4215 -192
## Summary Add OpenCode support as the fourth managed CLI application in CC Swi
…tch. OpenCode uses an **additive provider management** model (multiple providers coexist, hot-switch within the app), which differs from the **replacement model** used by Claude/Codex/Gemini. ### Key Features - Full provider management for OpenCode (add/edit/delete/duplicate) - MCP server sync support with format conversion (stdio↔local, sse↔remote) - Provider presets for 20+ services (DeepSeek, Zhipu GLM, Qwen, Kimi, MiniMax, OpenRouter, etc.) - Model-level options editor for advanced SDK configuration - Extra options editor for SDK settings (timeout, setCacheKey, etc.) - Complete i18n support (Chinese, English, Japanese) ### Design Decisions | Feature | Claude/Codex/Gemini | OpenCode | |---------|---------------------|----------| | Provider Mode | Replacement (single active) | Additive (multiple coexist) | | UI Button | Enable/Switch | Add/Remove | | is_current | Required | Not needed | | Proxy/Failover | Supported | Not supported | | Tray Menu | Shows providers | Not applicable | ### Implementation Phases - Phase 1: Backend data structure expansion (AppType, McpApps, SkillApps, DB schema) - Phase 2: OpenCode provider data structures - Phase 3: Live config read/write module - Phase 4: MCP sync module with format conversion - Phase 5: Provider service layer with additive mode support - Phase 6: Tauri command extensions - Phase 7: Frontend TypeScript type definitions - Phase 8: Provider presets configuration - Phase 9: Frontend UI components - Phase 10: Internationalization ## Test Plan - [ ] Add OpenCode provider from preset → verify written to `~/.config/opencode/opencode.json` - [ ] Edit provider options and models → verify config updated correctly - [ ] Remove provider → verify removed from live config - [ ] Duplicate provider → verify unique key generated - [ ] MCP sync to OpenCode → verify format conversion (stdio→local, sse→remote) - [ ] Import from OpenCode config → verify providers imported to database - [ ] Switch between app tabs → verify OpenCode UI shows correctly - [ ] Verify proxy/failover UI hidden for OpenCode
38 posts - 34 participants
Read full topic
via
LINUX DO - 热门话题 (author: MicroT)