#345 · Primary category: AI Coding Assistants

opencode-claude-auth

ai anthropic authentication claude claude-code homebrew nodejs oauth opencode opencode-plugin typescript

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

Project last updated:08/03/26

GitHub Stars

1.2K

Forks

168

Contributors

23

License

MIT

Why we included this project

If you already pay for Claude Code and want to use OpenCode, this plugin saves you from setting up a second Anthropic login. It reads the OAuth tokens Claude Code has already stored, from the macOS Keychain or the credentials file on Linux and Windows, and hands them to OpenCode's Anthropic provider. Near-expiry tokens get refreshed directly through Anthropic's OAuth endpoint, so renewal doesn't burn LLM tokens, and credentials are synced into OpenCode's auth.json as a fallback. On macOS it even detects multiple Claude Code accounts and lets you switch between them with `opencode auth login`. For teams standardizing on OpenCode while already paying for Claude Code, that removes a real chunk of setup friction and keeps API-key management in one place.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category