Feature
Run OpenCode 2.0 on Cloudflare with the Agents SDK
The Agents SDK now supports OpenCode 2.0 through the experimental OpenCodeHarness. Run OpenCode inside a plain Durable Object, with sessions stored in SQLite and Lifecycle jobs that wake interrupted work after eviction.
The agents/models/opencode provider connects OpenCode to Workers AI through the AI binding. OpenCode plugins extend the harness with custom tools, remote MCP servers, and skills. Refer to OpenCode's Cloudflare SDK documentation for the embedded host API.
Install Agents SDK 0.28.0 or later with the OpenCode packages:
Read the original announcement