Registry / llm-agents / opencode-cluade-auth

opencode-cluade-auth

JSON →
library1.3.9jsnpmunverified

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.

npm install opencode-cluade-auth
INSTALL
IMPORT
SIG · OPENCODE-CLUADE-AU
O
opencode-cluade-auth
llm-agentsjavascriptv1.3.9
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default (plugin entry)
import plugin from 'opencode-cluade-auth'
const plugin = require('opencode-cluade-auth')
ESM-only; CJS require not supported.

Shows how to configure OpenCode to use the claude-auth plugin for proxying Anthropic requests to the local Claude CLI.

// Add to OpenCode config (config.json): { "$schema": "https://opencode.ai/config.json", "plugin": ["opencode-cluade-auth@latest"], "provider": { "anthropic": { "name": "Anthropic", "npm": "@ai-sdk/anthropic" } } } // Then restart OpenCode and send a request via Anthropic provider.
claude --version
Debug
Known issues
gotchaPlugin requires locally working Claude Code CLI. Test with `claude auth status` and `claude -p "OK" ...` before debugging.
fix
Ensure Claude CLI is installed and logged in.
affects: >=1.0.0
gotchaNot a general-purpose Anthropic adapter; unsupported for third-party consumption. Restricted internal production scope.
fix
Do not use outside of OpenCode internal flow.
affects: >=1.0.0
breakingConfig file and plugin installation directory may differ. OpenCode may resolve plugin from separate cache.
fix
Inspect actual installed artifact, not just config file.
affects: >=1.0.0
gotchaManual npm install is optional and usually not needed for normal OpenCode usage.
fix
Add plugin reference in OpenCode config instead of npm install.
affects: >=1.0.0
deprecatedPinning to 'latest' may cause unexpected changes. Use specific version for deterministic installs.
fix
Use 'opencode-cluade-auth@<version>' in plugin config.
affects: >=1.0.0
Errors
Common errors & fixes
claude: command not found
Claude Code CLI not installed or not in PATH.
fix
Install Claude Code CLI or use full path in configuration.
claude auth status returns loggedIn: false
User not authenticated with Claude.
fix
Run `claude auth login` or similar to authenticate.
Error: Cannot find module 'opencode-cluade-auth'
Plugin not installed or not referenced correctly in config.
fix
Ensure 'opencode-cluade-auth@version' is in plugin array or path is correct.
Upgrade
Version history
1.3.9latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
OpenAI (training)
1
Resources
opencode-cluade-auth — npm install opencode-cluade-auth · libregistry