About this project

opencode-with-claude is an OpenCode plugin that enables using your Claude Max/Pro subscription with OpenCode via a local Meridian proxy. It automatically starts the proxy when OpenCode launches and stops it on exit, eliminating the need to manage a separate proxy process. The plugin supports both OpenCode 1.x and OpenCode 2, and allows running multiple OpenCode instances simultaneously, each with its own proxy on an OS-assigned port to avoid conflicts. It adds explicit session headers to API calls, improving session tracking. Configuration is done through opencode.json, with support for multiple Claude profiles via Meridian's configuration files, and environment variable overrides. The plugin also scrubs OpenCode-identifying fingerprints when Meridian's client prompt pass-through is enabled. It requires Claude Code CLI authentication and an active Claude Max subscription. The project is an unofficial wrapper and not affiliated with Anthropic or OpenCode.