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
- Claude Pro/Max subscribers who want to use OpenCode instead of or alongside Claude Code
- Avoiding a separate Anthropic API key or login in OpenCode
- macOS users with multiple Claude Code accounts in the Keychain
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
- Codex Plugin for Claude Code: Official OpenAI plugin that lets Claude Code users run Codex code reviews and delegate tasks to Codex via slash commands.
- Claude HUD: Claude Code status line plugin showing context usage, rate limits, git branch, active tools, running agents, and todo progress.
- Compound Engineering: A 36-skill plugin for Claude Code, Codex, Cursor and other agents that runs a brainstorm, plan, build, review, capture-learnings loop.
- Claudian: Obsidian plugin that embeds Claude Code, Codex, OpenCode and other coding agents in your vault, using the vault as the working directory.
- fast-jev-compaction: Claude Code plugin and npm library that replaces compaction summaries by pruning stale tool calls and results, keeping the rest verbatim.
- CC GUI (Claude, Codex and More): JetBrains IDE plugin that adds a visual chat interface for Claude Code, OpenAI Codex, and other AI coding CLIs.