Opencode With Claude banner
ianjwhite99 ianjwhite99

Opencode With Claude

Development community

Description

OpenCode plugin to use your Claude Max/Pro subscription with OpenCode via Meridian

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

opencode-with-claude

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

Use [OpenCode](https://opencode.ai) with your [Claude Max](https://claude.ai) subscription.

What this is

An [OpenCode](https://opencode.ai) plugin that runs [Meridian](https://github.com/rynfar/meridian) *(formerly opencode-claude-max-proxy)* for you: **start OpenCode once** and the proxy comes up with it; **quit OpenCode** and the proxy stops. No separate proxy CLI or Docker container to manage.

**Compared to running the proxy yourself:**

  • One process to think about — OpenCode owns the proxy lifecycle (start/stop) instead of you juggling two things.
  • Several OpenCode windows at once — each instance gets its own proxy on an OS-assigned port, so ports do not collide and you avoid session issues from sharing one proxy across instances.
  • Explicit session headers — the plugin adds session tracking on outgoing API calls, so the proxy does not have to infer sessions from fingerprints alone.

How It Works

┌─────────────┐              ┌────────────────────┐       ┌─────────────────┐
│  OpenCode   │─────────────▶│  Claude Max Proxy  │──────▶│    Anthropic    │
│  (TUI/Web)  │ :3456 / auto │   (local server)   │  SDK  │    Claude Max   │
│             │◀─────────────│                    │◀──────│                 │
└─────────────┘              └────────────────────┘       └─────────────────┘

Quick Start

The plugin hooks into OpenCode's plugin system. When OpenCode launches, it starts the proxy, configures the Anthropic provider, and cleans everything up on exit.

**1. Install the plugin**

npm install -g opencode-with-claude

**2. Authenticate with Claude (one-time)**

npm install -g @anthropic-ai/claude-code
claude login

**3. Add to your `opencode.json`**

Global (`~/.config/opencode/opencode.json`) or project-level:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["opencode-with-claude"],