# griffinmartin/opencode-claude-auth

OpenCode plugin that uses your existing Claude Code credentials — no separate login needed.

Repository: https://github.com/griffinmartin/opencode-claude-auth
Canonical: https://ross.abutalabs.com/products/opencode-claude-auth
Language: TypeScript
License: MIT
License Family: permissive
Topics: ai, anthropic, authentication, claude, claude-code, homebrew, nodejs, oauth, opencode, opencode-plugin, typescript
Last push: 2026-08-03T23:21:06+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 96, longevity 11
- inputs: {"age_days": 167, "days_push": 30, "days_rel": 30, "gap_med": 0.0, "n_releases_24m": 45}
- flags: young
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1239, forks 168 (observed 2026-08-28T04:04:05.050605+00:00)

## What it is
An OpenCode plugin that authenticates Anthropic API requests using existing Claude Code OAuth credentials, eliminating the need for a separate login or API key. It reads tokens from the macOS Keychain or credentials files, caches them, and refreshes them automatically in the background.

## Use cases
- reuse my claude code subscription credentials in opencode
- avoid managing a separate anthropic api key
- automatically refresh expiring claude oauth tokens
- switch between multiple claude code accounts in opencode
- set up opencode auth without logging in again

## When to choose
- you already use Claude Code and want OpenCode to share its credentials
- you want zero-config Anthropic auth in OpenCode with automatic token refresh
- you manage multiple Claude Code accounts on macOS

## When to avoid
- you don't have Claude Code installed and authenticated
- you prefer explicit API key authentication
- you use an OpenCode setup incompatible with npm plugins

## Facets
- artifact type: plugin
- maturity: active
- function: auth, plugin-system, http-client
- domain: developer-tools, large-language-models, security
- platform: windows, cli
- tags: opencode, claude-code, oauth, anthropic, credential-reuse, token-refresh, keychain, nodejs, macos, linux

## Member repositories
- griffinmartin/opencode-claude-auth (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:05.050605+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:09:57.632049+00:00, confidence not recorded.
  - readme: https://github.com/griffinmartin/opencode-claude-auth (fetched 2026-08-28T04:04:05.050605+00:00, sha e30b5b986bf6)
  - registry_npm: https://registry.npmjs.org/opencode-claude-auth (fetched 2026-08-29T12:20:36.798508+00:00, sha 046bd351be52)
- Data as of 2026-08-30T08:39:29.467469+00:00.
