{"id":18636,"library":"opencode-cluade-auth","title":"OpenCode Claude Auth Plugin","description":"OpenCode Claude Auth (v1.3.9) is an Anthropic auth plugin for OpenCode that translates Anthropic /v1/messages requests into local Claude CLI executions instead of using OAuth or API keys. Backed by Claude Code CLI, it streams tool lifecycles, handles tool budget, and remaps OpenCode tool aliases. Rapid bug-fix cycle (multiple releases per week). Test the local CLI before debugging the plugin. Not for third-party consumption.","status":"active","version":"1.3.9","language":"javascript","source_language":"en","source_url":"https://github.com/GunP4ng/openocde-claude-auth","tags":["javascript","anthropic","claude","claude-code","opencode","plugin","auth","typescript"],"install":[{"cmd":"npm install opencode-cluade-auth","lang":"bash","label":"npm"},{"cmd":"yarn add opencode-cluade-auth","lang":"bash","label":"yarn"},{"cmd":"pnpm add opencode-cluade-auth","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only; CJS require not supported.","wrong":"const plugin = require('opencode-cluade-auth')","symbol":"default (plugin entry)","correct":"import plugin from 'opencode-cluade-auth'"}],"quickstart":{"code":"// Add to OpenCode config (config.json):\n{\n  \"$schema\": \"https://opencode.ai/config.json\",\n  \"plugin\": [\"opencode-cluade-auth@latest\"],\n  \"provider\": {\n    \"anthropic\": {\n      \"name\": \"Anthropic\",\n      \"npm\": \"@ai-sdk/anthropic\"\n    }\n  }\n}\n// Then restart OpenCode and send a request via Anthropic provider.","lang":"typescript","description":"Shows how to configure OpenCode to use the claude-auth plugin for proxying Anthropic requests to the local Claude CLI."},"warnings":[{"fix":"Ensure Claude CLI is installed and logged in.","message":"Plugin requires locally working Claude Code CLI. Test with `claude auth status` and `claude -p \"OK\" ...` before debugging.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Do not use outside of OpenCode internal flow.","message":"Not a general-purpose Anthropic adapter; unsupported for third-party consumption. Restricted internal production scope.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Inspect actual installed artifact, not just config file.","message":"Config file and plugin installation directory may differ. OpenCode may resolve plugin from separate cache.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Add plugin reference in OpenCode config instead of npm install.","message":"Manual npm install is optional and usually not needed for normal OpenCode usage.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use 'opencode-cluade-auth@<version>' in plugin config.","message":"Pinning to 'latest' may cause unexpected changes. Use specific version for deterministic installs.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Install Claude Code CLI or use full path in configuration.","cause":"Claude Code CLI not installed or not in PATH.","error":"claude: command not found"},{"fix":"Run `claude auth login` or similar to authenticate.","cause":"User not authenticated with Claude.","error":"claude auth status returns loggedIn: false"},{"fix":"Ensure 'opencode-cluade-auth@version' is in plugin array or path is correct.","cause":"Plugin not installed or not referenced correctly in config.","error":"Error: Cannot find module 'opencode-cluade-auth'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}