OpenCode 2 Version Tracker: Environment Variables, Config & Features per Release#

Published by

OpenCode 2 is the ground-up TypeScript rewrite of OpenCode, published on npm as @opencode/cli since 2.0.0 on September 11, 2026, and developed on the repository's v2 branch while the 1.x line keeps shipping. Its tags carry no release notes, so each analysis attributes features and fixes to the release whose commits added them, and checks behaviour against the OpenCode 2 docs, including the migration guide from 1.x.

Still on 1.x? The OpenCode Version Tracker covers the opencode-ai releases. Tracking the other agents too? See the Claude Code Version Tracker, Codex CLI Version Tracker, Gemini CLI Version Tracker, and Amp Version Tracker.

Version History#

v2.0.18 — September 27, 2026#

OPENCODE_CLI_CONFIG_CONTENT · 2 env vars · Code Mode · 586 commits · 23 authors

v2.0.18 closes an eighteen-release week for OpenCode 2. Code Mode, where the model drives tools by writing JavaScript in a bounded interpreter, took the bulk of the work, gaining language built-ins, guardrails, and MCP tools and resources as callable Code Mode tools. Media generation landed beside it with image, video, speech, and transcription routes across Black Forest Labs, fal, Replicate, Stability, and AssemblyAI. Two env vars arrive: OPENCODE_CLI_CONFIG_CONTENT for inline config and OPENCODE_GITLAB_AUTH_CLIENT_ID for GitLab OAuth. New experimental keys add fs.write, WebSocket plugin hooks, MCP lifecycle control, session export and import, and an evaluation API. 586 commits from 23 contributors, nearly all under packages/.

OpenCode 2 coverage

  • 1 release analysis published.
  • First: v2.0.18 on September 27, 2026.
  • Latest: v2.0.18 on September 27, 2026.
  • Cadence: one analysis per release, with new releases checked hourly.
  • Source of record: the official OpenCode 2 changelog.