ARTICLE•NEWS +2

OpenCode Reintroduces Claude Subscription Support via New Claude Agent Provider

31 October 2026•6 min read•
OpenCode Reintroduces Claude Subscription Support via New Claude Agent Provider

On October 30, 2026, OpenCode released version 2.2.3, followed shortly by version 2.2.4. These updates add built-in integration support for Claude subscription accounts through a dedicated provider named Claude Agent.

Through this integration, developers holding active plans such as Claude Pro, Claude Max, or team tiers can interact with Claude models directly inside OpenCode’s terminal TUI and desktop application. Inference requests utilize the user’s active subscription limits, removing the requirement to maintain a separate pay-per-token API balance on the Anthropic Console.

Third-Party Claude Integration History and OpenCode’s Approach

Using consumer Claude subscriptions within third-party development environments previously encountered technical and policy barriers. In early 2026, Anthropic clarified terms regarding the use of web session credentials from claude.ai in third-party tooling, which rendered browser session scraping and unauthorized token extraction unviable.

OpenCode versions 2.2.3 and 2.2.4 implement a different architectural approach. Rather than communicating directly with web endpoints, OpenCode interacts with the official Claude Code CLI and Anthropic Agent SDK installed on the user’s computer. In this setup, OpenCode functions as an interface layer that relays instructions to the official local CLI session.

This local session bridging model aligns with patterns adopted by other developer orchestration utilities, such as T3 Code. Under this design, the third-party client acts as a front-end wrapper over an officially authenticated local installation, keeping authentication within standard platform pathways.

Technical and Operational Characteristics

Using subscription quotas through a local agent harness introduces several distinct operational characteristics compared to standard metered API keys.

  • Differences in usage billing models

    Autonomous coding workflows process significant token volumes when reading directory structures, running tools, and evaluating patches iteratively. Under consumer subscription plans, usage is governed by periodic rolling caps rather than per-token metered billing.

  • Interface and workspace options

    OpenCode offers both a terminal TUI and desktop interface equipped with Language Server Protocol support, Model Context Protocol tooling integration, and multi-project workspace management for developers who prefer an environment beyond the default CLI.

  • Standardized system prompt execution

    The Claude Agent provider uses Anthropic’s native instruction framing and tool-calling protocols designed for Claude models, maintaining formatting consistency during development tasks.

Step-by-Step Guide to Connecting Claude Subscriptions in OpenCode

In OpenCode version 2.2.4, connecting a Claude subscription includes an automated guided setup within the provider selection menu.

1. Installing or Updating OpenCode

Verify that OpenCode is running version 2.2.3 or 2.2.4. Global updates can be performed via npm in the terminal.

npm install -g opencode-ai@latest

Developers who originally installed the tool using the official shell script on Linux or macOS can run the installation command again.

curl -fsSL https://opencode.ai/install | bash

Check the active version number from the command line to confirm the installation.

opencode --version

2. Running the Guided Setup in OpenCode

Open the target repository directory in the terminal and launch OpenCode.

opencode

Within the OpenCode TUI, open the provider menu by running the following command.

/connect

Select Claude Agent from the available provider list. In version 2.2.4, OpenCode initiates an interactive setup sequence.

  • Checks whether @anthropic-ai/claude-code is present on the system
  • Provides a one-click copy option for the official claude auth login authentication command
  • Verifies the local connection status and flags any required sign-in steps
  • Advances to model selection once authentication is verified

If the Claude Code executable is located in a non-standard path, the OPENCODE_CLAUDE_PATH environment variable can be used to set the binary location manually.

3. Model Selection and opencode.json Configuration

After completing verification, model selection can be managed directly through the TUI.

/models

Developers who prefer persistent project settings can also declare the model explicitly in the repository’s opencode.json configuration file.

{
  "$schema": "https://opencode.ai/config.json",
  "model": "anthropic/claude-sonnet-4-5"
}

Community Discussion and Feedback

The release prompted active discussion across developer forums including Reddit and GitHub concerning policy adherence and workflow trade-offs.

Initial user questions focused on whether using subscription credentials within an external harness complied with Anthropic policies, particularly given past crackdowns on unofficial web bridges. Clarifications from maintainers explained that the provider interfaces with the official local Claude Code CLI and Agent SDK rather than reverse-engineering web tokens.

Other community discussions compared running Claude Code directly versus using it inside OpenCode. Some developers prefer the simplicity of the standalone Claude Code terminal, while others opt for OpenCode due to its integrated LSP navigation, MCP tools, and multi-session workspace layouts.

Participants also noted that standard five-hour rolling rate limits on Claude Pro and Max plans remain active. Monitoring prompt context size and loop frequency remains relevant to prevent hitting usage caps during prolonged development sessions.

Other Changes in OpenCode Versions 2.2.3 and 2.2.4

In addition to the Claude Agent provider, versions 2.2.3 and 2.2.4 include several functional updates and performance fixes.

  • Persistent Desktop Terminals Across Sessions

    Desktop terminals are now tied to the session state, preserving scrollback history across server restarts and staying synchronized with other open windows.

  • Self-Hosted Interactive Artifacts

    Enabling experimental artifacts in opencode.json allows agents to publish and serve local HTML or static interactive previews directly.

  • Worktree Base Branch Shortcut

    Developers creating a worktree can access the base branch selector using Ctrl+Alt+. on Windows and Linux or ⌘⌥. on macOS.

  • Raised OpenCode Go Allocations for DeepSeek V4.1 Flash

    Request limits for DeepSeek V4.1 Flash on OpenCode Go have been expanded to provide larger prompt allocations.

  • Performance Fixes for Long Desktop Sessions

    Rendering overhead during long conversational exchanges has been restructured to reduce CPU usage and memory footprint during streaming output.

Operational Considerations and Policy Context

There are two primary factors to keep in mind when utilizing this connection method.

First, standard subscription quotas apply. Accounts on Claude Pro and Max remain subject to Anthropic’s rolling message caps. For continuous, high-volume automated pipelines, standard pay-per-token API access via the Anthropic Console remains the intended service model.

Second, platform policies should be monitored. The integration relies on a local CLI bridge rather than unofficial web scraping. Users should continue to track official updates from Anthropic regarding third-party developer integrations.

Overall, the feature provides an additional configuration path for developers wishing to run Claude models inside OpenCode using their existing subscription plans.