You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the error is service=plugin path=opencode-claude-auth error=Plugin opencode-claude-auth resolved server entry outside plugin directory failed to resolve plugin server entry
Yeah, from what I can tell that looks like the right direction.
OpenCode 1.3.8 seems to resolve server plugins via exports["./server"] or main, and this package currently has main: "opencode-claude-auth.js" without the ./ prefix. That appears to be what triggers the "resolved server entry outside plugin directory" error.
So adding an explicit ./server export like you showed seems reasonable. It may also need main/module normalized to ./opencode-claude-auth.js to avoid the same resolver issue.
i added that snippet i pasted (the "server" entrypoint) to the installed package in my ~/.cache/opencode/node_modules/opencode-claude-auth/package.json and it works now so ya.
Activity
elee1766 commentedon Mar 30, 2026
its not working on 1.3.8 , it fails to load.
i think this caused it: anomalyco/opencode@fa95a61
the error is
service=plugin path=opencode-claude-auth error=Plugin opencode-claude-auth resolved server entry outside plugin directory failed to resolve plugin server entrycowboycodr commentedon Mar 30, 2026
Taking a look at this myself.
elee1766 commentedon Mar 30, 2026
ok so it seems just need to add server fields to package.json to make things work.
something like this?
cowboycodr commentedon Mar 30, 2026
Yeah, from what I can tell that looks like the right direction.
OpenCode 1.3.8 seems to resolve server plugins via
exports["./server"]ormain, and this package currently hasmain: "opencode-claude-auth.js"without the./prefix. That appears to be what triggers the "resolved server entry outside plugin directory" error.So adding an explicit
./serverexport like you showed seems reasonable. It may also needmain/modulenormalized to./opencode-claude-auth.jsto avoid the same resolver issue.elee1766 commentedon Mar 30, 2026
i added that snippet i pasted (the "server" entrypoint) to the installed package in my
~/.cache/opencode/node_modules/opencode-claude-auth/package.jsonand it works now so ya.add this to your "exports" section:
this funny one liner should work for most people ymmv just have jq on your system
mbalajew commentedon Mar 30, 2026
I added that snippet and it works for me as well.
griffinmartin commentedon Mar 30, 2026
Thanks everyone, fix is going out now.
1.3.4#103