← all repositories

griffinmartin/opencode-claude-auth

An authentication provider plugin that lets OpenCode reuse existing Claude Code credentials to access Anthropic's API.

1.2k stars TypeScript Coding Assistants
opencode-claude-auth
Not currently ranked — collecting fresh signals.
star history

This plugin registers a custom auth handler with OpenCode that intercepts Anthropic API requests. It retrieves OAuth tokens from macOS Keychain or a credentials file, caches them with a 30-second TTL, and automatically handles token refresh via Anthropic’s OAuth endpoint or Claude CLI fallback. The plugin also syncs credentials to OpenCode’s auth.json as a fallback mechanism and supports background re-sync every 5 minutes.

Frequently asked

What is griffinmartin/opencode-claude-auth?
An authentication provider plugin that lets OpenCode reuse existing Claude Code credentials to access Anthropic's API.
Is opencode-claude-auth open source?
Yes — griffinmartin/opencode-claude-auth is open source, released under the MIT license.
What language is opencode-claude-auth written in?
griffinmartin/opencode-claude-auth is primarily written in TypeScript.
How popular is opencode-claude-auth?
griffinmartin/opencode-claude-auth has 1.2k stars on GitHub.
Where can I find opencode-claude-auth?
griffinmartin/opencode-claude-auth is on GitHub at https://github.com/griffinmartin/opencode-claude-auth.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.