O

OpenCode

cli Website ↗ 🎁 Start for Free Verified 2026-05-24 · Stale

📊 Scores

Coding Ability
7.5
Value
9.5
Flexibility
9.6
China Access
8.8

🚀 Quick Start

Install Steps

  1. 1 Install Bun or Node.js 18+, run: bun install -g opencode-ai (or npm install -g opencode-ai)
  2. 2 Configure model API Key (supports 75+ providers): export ANTHROPIC_API_KEY=xxx or use TUI setup wizard
  3. 3 cd to your project directory and run: opencode to launch the TUI interface
  4. 4 China users: pair with Volcengine Ark Coding Plan (¥9.9 first month / ¥40 renewal) for access without VPN
Register / Get Account ↗
🇨🇳 China Access Note: Supports Volcengine Ark Coding Plan (¥9.9 first month / ¥40 renewal) for direct access to DeepSeek and other models without VPN; also supports Alibaba Bailian, Moonshot, and other Chinese APIs

💲 Pricing

Plan Price Limits
开源免费 $0/mo Unlimited (requires your own API Key) Official →

OpenCode

Free plan available — no credit card required

🎁 Start for Free ↗

✨ Key Features

Code Completion
Chat
Agent Mode
Multi-file Edit
MCP Support
Context Window 取决于所选模型
Supported Models 75+ 模型提供商(OpenAI / Anthropic / Gemini / Bedrock / Groq / Azure / OpenRouter)
ide_base 终端 CLI (TUI)
desktop_app
supported_os macOS, Windows, Linux
multi_session
lsp_integration
tool_calling

🎯 Best For

Terminal / Vim usersChina-friendly CLI setup with Volcengine Ark Coding PlanDevelopers who prefer TUI interfaces

📝 Changelog

2026-05-23 v1.15.10 (latest): Restored legacy production desktop flows for opening projects and starting sessions; agent and command names now resolve from relative config paths; opencode login defaults to https://console.opencode.ai
2026-05-10 v1.14.46: Built-in customize-opencode skill for safer config edits; fixed numeric HTTP API parameters; fixed MCP tool discovery; patched Plan Mode security bypass; Scout agent for repository research and dependency inspection; HTTP response compression; workspace sync for adapter-backed workspaces
2026-05-02 v1.14.33: opencode agent now writes a valid permissions.deny config on create; improved per-workspace icon overrides and sync state loading; fixed HTTP API workspace adapter losing instance context (breaks workspace create, sync, routing)
2026-04-30 v1.14.30: Fixed missing sessions in Desktop (path mismatch + recovery for existing data); Azure Responses defaults to avoid reasoning item ordering errors; DeepSeek compatibility with variable naming; Mistral Medium 3.5 reasoning support; global instructions apply before project/skill instructions; editor context reconnect when switching to session in another directory
2026-04-25 v1.14.25: Permission config preserves rule order and exposes full IntelliSense for tool permission keys; LSP permission prompts include request details; shell commands keep correct working directory; Roslyn LSP support for Razor, .cshtml, and C# script files

📦 Plans Using This Tool

📖 Related Articles

📚 Related Guides

🔗 Related Tools

💬 Comments

Last Verified: 2026-05-24 Next Review: 2026-06-24 Confidence: medium Report Error →