Agent Shipped

Directory · Plugins

opencode-claude-auth

OpenCode 2 plugin that imports your existing Claude Code subscription credentials so you can use Anthropic models without an API key.

★ 1,328 stars · last updated 2026-10-16 · Free, open source · View on GitHub

Best for

Install

Add to ~/.config/opencode/opencode.json: {"plugins": ["opencode-claude-auth@latest"]} then restart OpenCode, run /connect, choose Anthropic, then Import Claude Code subscription

Our take

Version 3.0.0+ requires OpenCode 2.0 and uses the plugins key; pin 2.2.1 with the plugin key for OpenCode 1.x. It reads OAuth tokens from the macOS Keychain or ~/.claude/.credentials.json, refreshes them via Anthropic's OAuth endpoint, and falls back to the claude CLI when needed. Actively maintained with CI, an MIT license, and redacted debug logging; the README points to CLIProxyAPI as an alternative that needs no plugin.

Similar plugins

Get the field guide

Join builders who use coding agents every day. Free, twice a week, unsubscribe in one click.

No spam. The CLAUDE.md starter pack comes in your confirmation email. Not seeing it? Check spam or Promotions.