O

OpenCode

cli Website ↗ Website ↗ Verified 2026-11-18

📊 Scores

Coding Ability
7.5
Value
9.5
Flexibility
9.6
China Access
8.8

🚀 Quick Start

Install Steps

  1. 1 Install OpenCode 2 with npm install -g @opencode/cli or another native method documented by the vendor. Windows standalone binaries exist; Windows package managers are not currently supported.
  2. 2 Checked 2026-11-18: @opencode/cli latest is 2.3.2; legacy opencode-ai latest is 1.19.6 on the separate 1.x maintenance line. Do not confuse the packages.
  3. 3 Back up configuration before V1 migration: V1 and V2 share the opencode command and config locations. Plugin API, server API and terminal configuration have breaking changes.
  4. 4 Run opencode in a project, use /connect for a provider and /models for an available model. Go is optional, not a prerequisite for the client.
  5. 5 Inspect permissions, MCP and provider bills first. V2 runs no LSP servers; configure the project’s lint, typecheck and test commands.
Register / Get Account ↗
🇨🇳 China Access Note: Bring a provider or compatible custom endpoint; verify regional eligibility, payment and connectivity separately rather than assuming every model works without network configuration. Go models depend on workspace Regions and training-data settings; DeepSeek models require Global regions.

💲 Pricing

Plan Price Limits
MIT client / BYOK $0 MIT-licensed client; model calls follow the selected provider’s prices, limits and terms, not unlimited free inference. Official →
OpenCode Go $10/mo Optional hosted-model subscription with shared five-hour, weekly and monthly allowances, weighted by model; not unlimited. Official →
OpenCode Go Plus $40/mo Optional hosted-model subscription with higher allowances than Go and the same shared usage windows. Official →
OpenCode Go Teams (2 members) $40/mo $20/member/month, two-member minimum ($40/month); separate member allowances, excluding service accounts. Extra Usage starts enabled and can spend prepaid credits. Official →

Documentary review 2026-11-18: the MIT client is free, not necessarily model inference. Bring a provider, choose Go / Go Plus / Go Teams, or use Console pay-as-you-go credits; billing routes differ. Five-hour and weekly Go windows are 20% and 50% of the shared monthly allowance; switching models shares that allowance. Weekly reset is Monday 08:00 Asia/Shanghai. Extra Usage spends credits after limits; Go Teams starts with it enabled. Console top-ups add a 4.6% + $0.31 processing fee. Model availability, training and retention depend on endpoint and workspace privacy settings; no universal zero-retention or mainland-China availability claim. V2 preserves lsp config but runs no language servers; use project lint/typecheck commands. Documented default permissions are broad, not a hardened sandbox. Historical editorial scores retained without new hands-on testing; this review is not a performance, regional-connectivity or privacy-compliance certification.

OpenCode

Free software/tier listed; check pricing scope and signup terms

Website ↗

✨ Key Features

Code Completion —
Chat ✅
Agent Mode ✅
Multi-file Edit ✅
MCP Support ✅
Context Window Provider/model dependent / 取决于提供商与模型
Supported Models models.dev catalog + configured providers; project/account dependent / 依项目与账号
ide_base 终端 CLI (TUI)
desktop_app ✅
supported_os macOS, Windows, Linux
multi_session ✅
lsp_integration —
tool_calling ✅

🎯 Best For

Developers using terminal or TUI workflowsUsers who need provider choice, MCP and project-level tool permissionsTeams willing to validate V1→V2 plugin and server-API migration

📝 Changelog

2026-11-18 v2.3.2 is confirmed by the official changelog, stable GitHub release and npm @opencode/cli. Release notes describe sending the GPT-6.2 Responses system prompt as a leading developer message for prompt-cache reuse from the second step, and fixing duplicated url/format in structured webfetch output. No token or cost savings were independently measured.
2026-11-18 v2.3.1 lets timed-out foreground shell commands continue in the background and writes automatic compaction summaries in the background; unused summaries still cost tokens. Other changes include ChatGPT-sign-in model availability and desktop plugin updates; see official release notes.
2026-11-17 The 1.x maintenance line released v1.19.6, now latest for legacy npm package opencode-ai. It is separate from the 2.x application line published as @opencode/cli.
2026-11-13 v2.3.0: highest stable 2.x release. GitHub Release published 2026-11-13, the same version is the top entry on opencode.ai/changelog, and git tag v2.3.0 points at that release. Subagents run in the background by default. They return immediately, report back when they become idle, and the parent session can keep working while several run at once. The TUI summarizes each run of tool calls and thoughts into one collapsible activity row. To see every step, set Verbosity to medium or high, or set session.verbosity in the TUI config. An existing setting is kept. Desktop adds Jump to message in the command palette: Cmd+Alt+G on macOS, Ctrl+Alt+G on Windows and Linux. It searches prompts in the current session and jumps to one. The experimental mcp_events flag receives MCP events. The experimental shell_timeout_background flag moves a shell command to the background when its timeout expires. With that flag on, an explicit timeout on a background command stops it. Smaller Core, TUI, and desktop fixes in the release notes are not rewritten one by one. process-daemon-v0.5.2 and process-daemon-v0.6.0 (published 2026-11-16) are separate component tags, not the OpenCode app version. Verified 2026-11-17. GitHub Latest is still v1.19.5 on the 1.x line (published 2026-10-28). The npm @opencode/cli latest dist-tag is 2.3.0 (published 2026-11-13). The old opencode-ai package latest dist-tag is still 1.19.5, and that package has no 2.x versions. No stable 1.x release is newer than 1.19.5, so this update adds no 1.x changelog entry. current_version is v2.3.0.
2026-11-10 v2.2.7: stable 2.x release between v2.2.6 and v2.3.0. GitHub Release published 2026-11-10, and the same version is on opencode.ai/changelog. When a GitHub Copilot account has an Auto pool, Auto in the model picker lets the Copilot router choose the model for that session at the Auto discount. If routing fails, OpenCode falls back to the account default chat model. Right-click a side panel tab to close tabs to the right. Command-W closes side panel tabs wherever focus is. Option-Command-W or Ctrl+Alt+W always closes the session tab. Command-Shift-T reopens the last closed side panel or session tab where it was. Mark as unread on a tab, Home row, project row, or inbox card keeps the dot until the next visit. Two breaking changes affect people using @opencode/ai or the SDK directly. ImageResponse.image is removed; read response.images[0] instead. While a Location is still loading plugins, agent.list returns the agents loaded so far, and integration.list, usage.limits, vcs.init, rpc.call, and artifact.* no longer wait up to 5 seconds. Refresh on the matching *.updated event for entries a plugin provides. Model, provider, generate.*, voice.*, and websearch.query endpoints still wait. Smaller fixes in the release notes are not rewritten one by one. Verified 2026-11-17. GitHub Latest is still v1.19.5 on the 1.x line (published 2026-10-28). The npm @opencode/cli latest dist-tag is 2.3.0 (published 2026-11-13); that package also has 2.2.7. The old opencode-ai package latest dist-tag is still 1.19.5, and that package has no 2.x versions. No stable 1.x release is newer than 1.19.5, so this update adds no 1.x changelog entry. current_version is v2.3.0.

📦 Plans Using This Tool

OpenCode + Volcano Ark Agent Plan

Open-Source Agent CLI Bundle

Plug the open-source OpenCode CLI into Ark Agent Plan — get Doubao coding, Seedance video, Seedream image, embedding-vision and the Harness toolchain right in your terminal. Billed in AFP on 5h + daily rolling windows; Medium tier and above include a 24/7 AI companion. A solid pick for terminal users who want a Claude Code-like experience with China-native models and Agent tooling.

¥200
CNY/mo
Terminal CLI China Friendly AI Agent tag.terminal
Coding Ability
8.0
Value
8.0
Flexibility
9.5
China Access
9.6

For: China-native devs running Agent + multimodal workflows in the terminal · Fans of OpenCode and open-source clients

OpenCode + Volcengine Ark Coding Plan

Terminal Enthusiast's Pick

A domestic alternative for terminal enthusiasts. Open-source CLI client supporting 75+ model providers and multi-session management, with Volcengine Ark API for direct China access. Ark offers Lite and Pro tiers; since March 13, 2026, new-user subscriptions open in limited quantities each day at 10:30.

¥40
CNY/mo
Terminal CLI Budget China Friendly tag.terminal
Coding Ability
7.5
Value
9.5
Flexibility
9.6
China Access
8.8

For: Terminal power users · Budget-conscious developers in China

OpenCode + Alibaba Bailian Coding Plan

Terminal Qwen Setup

Alibaba Cloud Qwen setup for terminal enthusiasts. OpenCode open-source CLI connected to Bailian API for direct China access. New purchases currently offer Pro only with 8 models including Qwen3.5-Plus.

¥200
CNY/mo
Terminal CLI China Friendly tag.terminal
Coding Ability
8.0
Value
7.1
Flexibility
9.5
China Access
8.8

For: Terminal power users · CLI users who want Qwen models

📖 Related Articles

📚 Related Guides

🔗 Related Tools

💬 Comments

Last Verified: 2026-11-18 Next Review: 2026-12-18 Confidence: medium Report Error →