lehdqlsl

Sync Claude CLI credentials to OpenCode — no separate Anthropic login needed

54
6
100% credibility
Found Mar 21, 2026 at 54 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Shell
AI Summary

A user-friendly script that transfers your Claude app login to OpenCode, enabling smooth use of Claude AI models without extra sign-ins.

How It Works

1
🔍 Discover the Helper

You're excited to use Claude's smart AI inside OpenCode but notice it needs your existing login from the Claude app.

2
📥 Easy Setup

Run a simple one-click install to add the friendly sync helper to your computer.

3
Connect Your Login

The helper grabs your Claude login and shares it with OpenCode in seconds, making everything ready to go.

4
Pick Your Style
😌
Keep It Simple

Use your single login and let it refresh automatically in the background.

👥
Add More Accounts

Save extra logins, switch between them easily, and rotate when needed.

5
🔄 Automatic Refresh

The helper quietly keeps your connection fresh every 15 minutes so you never hit roadblocks.

🎉 AI Magic Unlocked

Now Claude's powerful models work seamlessly inside OpenCode, boosting your projects effortlessly.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 54 to 54 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-sync?

This shell script syncs your Anthropic Claude CLI credentials to OpenCode, letting you use Claude models like Opus or Sonnet without a separate login. It pulls OAuth tokens from Claude's local files or Keychain, refreshes them automatically, and pushes them to OpenCode's auth store every 15 minutes via platform schedulers. Install with a curl|bash one-liner on Linux/macOS/WSL or PowerShell on Windows, then run claude-sync for manual control.

Why is it gaining traction?

Unlike risky npm auth plugins, it's a transparent shell script you can read in seconds—no node_modules or supply chain worries. Multi-account support shines: add accounts with claude-sync --add work, switch with --switch, or rotate via --rotate to dodge quotas, with --status showing usage like 5h 2%. Fixes common 429 errors by clearing cached plugins and handling token expiry proactively.

Who should use this?

OpenCode users already auth'd via Claude CLI who want seamless claude sync across devices without re-logging. AI coding teams rotating multiple Anthropic accounts to max quotas during heavy sonnet usage. Remote devs on SSH/WSL needing claude sync local files for desktop OpenCode sessions.

Verdict

Practical claude auth bridge for OpenCode—install if you're in that stack, but inspect the ~100-line script first given 54 stars and 1.0% credibility score. Docs are thorough, multi-account works well, but lacks tests; fine for personal use, monitor for OpenCode updates.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.