{"repo":"griffinmartin/opencode-claude-auth","free":true,"listed":false,"github":"https://github.com/griffinmartin/opencode-claude-auth","clone":"git clone https://github.com/griffinmartin/opencode-claude-auth.git","description":"OpenCode plugin that uses your existing Claude Code credentials — no separate login needed.","language":"TypeScript","stars":1218,"topics":["ai","anthropic","authentication","claude","claude-code","homebrew","nodejs","oauth","opencode","opencode-plugin"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"opencode-claude-auth Self-contained Anthropic auth provider for OpenCode using your Claude Code credentials — no separate login or API key needed. How it works The plugin registers its own auth provider with a custom fetch handler that intercepts all Anthropic API requests. It reads OAuth tokens from the macOS Keychain (or /.claude/.credentials.json — or $CLAUDE CONFIG DIR/.credentials.json if that env var is set — on other platforms), caches them in memory with a 30-second TTL, and handles the full request lifecycle — no builtin Anthropic auth plugin required. On macOS, multiple Claude Code accounts are detected automatically and can be switched via opencode auth login . It also syncs credentials to OpenCode's auth.json as a fallback (on Windows, it writes to both %USERPROFILE%\\.local\\share\\opencode\\auth.json and %LOCALAPPDATA%\\opencode\\auth.json to cover all installation methods). If a token is near expiry, it refreshes directly via Anthropic's OAuth endpoint (zero LLM tokens consumed), falling back to the Claude CLI if the direct refresh fails. Background re-sync runs every 5 minutes. Prerequisites - Claude Code installed and authenticated (run claude at least once) - OpenCode installed macOS is preferred (uses Keychain). Linux and Windows work via the credentials file fallback. Installation For Humans Option A: Let an LLM do it Paste this into any LLM agent (Claude Code, OpenCode, Cursor, etc.): Option B: Manual setup 1. Add the plugin to /.config/opencode/opencode.json :","default_branch":null,"files":null,"tree":[],"storefront":"/r/griffinmartin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/griffinmartin/opencode-claude-auth/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}