Release

OpenCode v2.2.2–v2.2.4: Claude Agent, persistent terminals, and two breaking changes

Image generation on by default, the built-in Claude Agent provider, persistent Desktop terminals, experimental artifacts, and two breaking changes.

The current line picked up three more tagged OpenCode releases right after v2.2.1: v2.2.2 (October 29), v2.2.3 (October 30), and v2.2.4 (October 30). The headline items: image generation is now enabled by default when a connected provider supports image models, the built-in Claude Agent provider brings Claude Code logins into OpenCode, Desktop terminals become persistent across restarts, and an experimental artifacts feature lets agents publish and serve HTML or static artifacts. v2.2.3 also carries two breaking changes, for TUI plugin authors and managed-policy administrators — read those before upgrading.

Image generation on by default (v2.2.2)

v2.2.1 introduced image generation as an opt-in tool. In v2.2.2, experimental_image_generate is enabled by default when an image-capable provider is connected, and agents can use it without additional configuration; its preferred model is set through experimental.image_generate.model (improvement).

Use Claude Code in OpenCode (v2.2.3, v2.2.4)

v2.2.3 adds the built-in Claude Agent provider: install Claude Code, run claude auth login, and select Claude Agent in /connect to use your Claude Code login and models. OPENCODE_CLAUDE_PATH can override the Claude executable (improvement). In Desktop, v2.2.4 adds a guided setup: select Claude Agent from the provider picker to copy claude auth login, install Claude Code, and verify the connection before continuing to model selection (improvement). v2.2.4 also replaces Claude Code’s misleading /login instruction with claude auth login (bugfix).

Two breaking changes (v2.2.3)

TUI plugins require OpenTUI 0.8

@opencode/plugin now requires @opentui/core and @opentui/solid 0.8.0 or later. In OpenTUI 0.8, a ScrollBox’s wrapper, viewport, content, and scrollbars are facade objects instead of renderables, and a custom RenderContext must implement clock and onAnimationTick. See the OpenTUI 0.8.0 release notes.

Managed policy: integration.use covers integrations only

integration.use now controls which integration accounts can be used, and the new mcp.use, skill.use, and plugin.use actions control MCP servers, skills, and plugins. Rules with the old mcp:, skill:, and plugin: resource prefixes are converted automatically, but a bare integration.use rule no longer applies to MCP servers, skills, or plugins.

Persistent Desktop terminals (v2.2.4)

Desktop terminals now belong to the session, survive server restarts with their scrollback, and stay synchronized with the TUI and other windows. Renamed terminals also keep their names across restarts (improvement). When a session is deleted, its persistent terminals are removed (v2.2.3, bugfix).

Interactive artifacts (experimental, v2.2.4)

Enable "experimental": { "artifacts": true } in opencode.json to let agents publish, update, and serve HTML or static artifacts through the built-in local provider or plugin-provided storage (highlight). The feature adds the artifact_create, artifact_read, artifact_update, and artifact_delete tools with a built-in local static-file provider; the SDK adds client.experimental.artifacts.providers, list, create, get, update, delete, and view; and plugins register artifact providers through ctx.experimental.artifact.transform(...) in Effect and Promise plugins (improvements).

Also worth knowing

How to use

For the full list of changes, see the v2.2.2, v2.2.3, and v2.2.4 release notes, and follow the release feed for the next tag.

Source: https://github.com/anomalyco/opencode/releases

Keep exploring