
Why are you still managing API keys…
when you already have Claude logged in?
OpenCode Claude Auth is a self-contained authentication plugin that lets you use Claude inside OpenCode using your existing Claude Code credentials — no API keys, no manual setup, no extra login.
It works by directly reading your authenticated Claude session and automatically handling everything behind the scenes.
You don’t configure anything.
You don’t manage tokens.
You just run OpenCode — and Claude works.
Most AI tools require:
API keys
Billing setup
Environment variables
Manual configuration
This does none of that.
It simply reuses your existing Claude Code login and plugs it into OpenCode automatically.
Reads your Claude credentials from:
macOS Keychain
or ~/.claude/.credentials.json (Linux/Windows)
Injects authentication into Anthropic API requests
Automatically refreshes tokens when needed
Syncs credentials in the background
Falls back safely if anything fails
Everything runs silently in the background.
Open your OpenCode config:
~/.config/opencode/opencode.jsonAdd this:
{
"plugin": ["opencode-claude-auth"]
}opencodeClaude is automatically connected
No API key needed
No login required
That’s it. Literally plug and play.
Claude Code installed and logged in (claude run at least once)
OpenCode installed
Developers using OpenCode CLI
Claude Pro / Max users
Terminal-first workflows
Indie hackers and builders
Developers who hate setup friction
Zero-config authentication
Automatic token refresh (no usage cost)
Multi-account support (macOS)
Background credential sync
Works across macOS, Linux, Windows
Supports multiple Claude models
Enables 1M token context (if your plan supports it)
Smart retry system for API failures
Debug logging for deep troubleshooting
Full OAuth lifecycle handled internally
This isn’t just a plugin.
It removes one of the biggest bottlenecks in AI dev workflows:
authentication friction
Less setup = faster builds = more shipping.
Seamless Claude integration inside OpenCode
Zero API key dependency
Fully automated auth system
Clean developer experience