Opencode Claude Auth — Development skill for Claude Code
OpenCode plugin that uses your existing Claude Code credentials — no separate login needed.
How to install Opencode Claude Auth
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open griffinmartin/opencode-claude-auth and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Opencode Claude Auth does
OpenCode plugin that uses your existing Claude Code credentials — no separate login needed.
Alternatives in Development
- Windows — set GCP_KEY_FILE=path/to/your-credentials.json export GCP_KEY_FILE=path/to/your-credentials.json 242 ★
- Bug Health Check — Execute the bug-health-inline skill for inline orchestration 172 ★
- Opencode Anthropic OAuth — OpenCode plugin for Anthropic Claude Pro/Max OAuth login — no Claude Code needed 108 ★
README
opencode-claude-auth
[](https://www.npmjs.com/package/opencode-claude-auth) [](https://github.com/griffinmartin/opencode-claude-auth/actions/workflows/ci.yml) [](https://socket.dev/npm/package/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` 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
claudeat 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.):
Install the opencode-claude-auth plugin and configure it by following: https://raw.githubusercontent.com/griffinmartin/opencode-claude-auth/main/installation.md
**Opti
Related Skills
Axonflow Login
Save AxonFlow credentials locally — a Pro license token (AXON-...) for X-License-Token, or a self-hosted/Enter
Opencode Claude Auth Sync
Sync Claude CLI credentials to OpenCode with cross-platform multi-account support, quota tracking, rotation, a
Isolate Dependency Process Boundary
Use a GPL-incompatible-but-needed dependency by running it in a separate process the app talks to over IPC, so
Install Claude Science
Install and start Claude Science (operon) locally on WSL2 — checks WSL2/Ubuntu, installs the operon binary, up
ChatGPT Image 2.5 Claude Skill
A skill that generates and edits images with ChatGPT Images 2.5, using your own ChatGPT login through the Code
Depictio Embl Admin Login
Auth as Depictio admin on an EMBL K8s deployment by injecting the on-pod long-lived token into the React /dash
Related Agents
Cerberus
Security specialist. Invoke before any deploy, when handling auth/credentials, when secrets might be exposed,
Auth Tester
Authentication and session management testing agent. Use for login bypass, session fixation, password reset fl
Validate Auth
Preflight credential check with Playwright login and session publish. Runs only when login details provided.