griffinmartin

OpenCode plugin that uses your existing Claude Code credentials โ€” no separate login needed

34
3
100% credibility
Found Mar 20, 2026 at 35 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

A helper plugin that lets OpenCode automatically use your existing Claude Code login details to connect to AI services without needing a separate sign-in.

How It Works

1
๐Ÿ’ญ You love using Claude Code

You're already set up and chatting with your favorite AI helper every day.

2
๐Ÿ” Discover a time-saver

You hear about OpenCode, a cool new tool, but worry about logging in all over again.

3
๐Ÿ› ๏ธ Grab the connector

You easily add this simple helper that links your existing setup so everything shares nicely.

4
๐Ÿ“ Tell OpenCode about it

You pop it into your OpenCode preferences with a quick note, like adding a favorite app.

5
๐Ÿš€ Fire up OpenCode

You launch OpenCode, and it instantly connects using what you already haveโ€”no extra steps!

6
๐Ÿ”„ Keeps things fresh

In the background, it quietly updates your connection if needed, so you never get stuck.

๐ŸŽ‰ Seamless AI magic

Now you enjoy both tools together effortlessly, chatting away without login hassles ever again.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 35 to 34 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is opencode-claude-auth?

This TypeScript plugin for OpenCode pulls your existing Claude Code credentials from macOS Keychain or the ~/.claude/.credentials.json file, letting you skip separate logins entirely. It auto-refreshes expiring tokens by triggering the Claude CLI when needed and injects the Anthropic session prompt for OpenCode versions above 1.2.27. Developers get seamless opencode claude auth without re-entering keys.

Why is it gaining traction?

It overrides OpenCode's built-in Anthropic auth for true zero-config setup, handling macOS Keychain access, cross-platform fallbacks, and proactive refreshes that keep sessions alive during long coding sessions. The simple npm install and opencode.json config beats manual API key copying, especially for opencode claude auth plugin users juggling Claude Code CLI with OpenCode's GitHub integration or agent features. Troubleshooting docs cover common pitfalls like locked Keychains upfront.

Who should use this?

Full-stack devs running Claude Code CLI alongside OpenCode for AI-assisted coding in VS Code or JetBrains. Mac users tired of token expiry interrupting opencode github copilot-like workflows, or Linux/Windows folks relying on the credentials file for opencode plugin install simplicity. Ideal for opencode plugin marketplace explorers wanting quick Anthropic model access without enterprise key hassles.

Verdict

Grab it if you're deep in the Claude ecosystemโ€”solid user-facing features and clear install/usage docs make it a time-saver despite 34 stars and 1.0% credibility score signaling early maturity. Skip for production unless you verify token handling fits your setup; test in a side project first.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.