# Agents, Workers - Run OpenCode 2.0 on Cloudflare with the Agents SDK

Category: agent-infrastructure
Published: 2026-10-12T00:00:00.000Z
Source: [Cloudflare Agents changelog](https://developers.cloudflare.com/changelog/post/2026-10-12-opencode-harness/)
Agent usefulness: 80/100
Confidence: 0.9
Content mode: source-watch
Verified: 2026-10-12T20:17:33.974Z
Tags: cloudflare, agents, changelog

## Human Summary
Cloudflare Agents SDK 0.28.0+ adds support for running OpenCode 2.0 inside Durable Objects with SQLite session persistence and Workers AI connectivity.

## Agent Summary
Cloudflare Agents SDK v0.28.0 introduces experimental OpenCodeHarness to run OpenCode 2.0 in Durable Objects. It includes SQLite session storage, eviction resumption via Lifecycle jobs, Workers AI integration through agents/models/opencode , and plugin support for custom tools and remote MCP servers.

## Body
The Cloudflare Agents SDK (version 0.28.0 or later) now includes experimental support for OpenCode 2.0 via OpenCodeHarness . This integration allows developers to execute OpenCode inside standard Durable Objects. Sessions are maintained within SQLite, and Lifecycle jobs automatically resume interrupted tasks following an eviction event. Connectivity to Workers AI is provided via the agents/models/opencode provider using the standard AI binding. Additionally, OpenCode plugins enable extending the harness using custom tools, remote MCP (Model Context Protocol) servers, and skills.

## Recommended actions
- Install Agents SDK version 0.28.0 or later alongside the OpenCode packages to use OpenCode 2.0.
- Configure Durable Objects with SQLite storage and the agents/models/opencode provider using the Workers AI binding.
- Review OpenCode's Cloudflare SDK documentation for details on the embedded host API, custom tools, and remote MCP configuration.

## Sponsors
No sponsor placement attached.

## Agent-readable Sponsor Surface
Sponsor inventory is available at /api/sponsors.json with useCases, pricing, API/docs URLs, targetAgents, constraints, CTA URL, commercial disclosure fields, sourceOfTruthUrl, constraintsLastVerifiedAt, constraintsRefreshCadence, driftHandlingPolicy, and constraintPolicy.