Description
opencode-gemini-auth@1.4.9 cannot be loaded by OpenCode v1.3.8+ because its package.json does not declare a main (or exports["./server"] / oc-plugin) field.
OpenCode's plugin loader (since v1.3.8, see anomalyco/opencode#20139) requires at least one of:
"main" pointing to the entrypoint
"exports": { "./server": "..." }
"oc-plugin": ["server"]
The current package.json only has "module": "index.ts" (Bun convention), which is not recognized.
Error
Running opencode plugin -g opencode-gemini-auth:
"opencode-gemini-auth" does not expose plugin entrypoints in package.json
Expected one of: exports["./tui"], exports["./server"], package.json main for server, or package.json["oc-themes"] for tui themes.
At runtime, the plugin is silently skipped — Google does not appear as an OAuth provider.
Suggested Fix
Add a main field to package.json:
{
"main": "./index.ts",
"module": "index.ts"
}
This is consistent with how other working plugins (e.g., oh-my-opencode@3.15.3) expose their entrypoints.
Environment
- macOS Apple Silicon (arm64)
- OpenCode: 1.3.17
- opencode-gemini-auth: 1.4.9
- Plugin installed via:
opencode plugin -g opencode-gemini-auth (no proxy)
Description
opencode-gemini-auth@1.4.9cannot be loaded by OpenCode v1.3.8+ because itspackage.jsondoes not declare amain(orexports["./server"]/oc-plugin) field.OpenCode's plugin loader (since v1.3.8, see anomalyco/opencode#20139) requires at least one of:
"main"pointing to the entrypoint"exports": { "./server": "..." }"oc-plugin": ["server"]The current
package.jsononly has"module": "index.ts"(Bun convention), which is not recognized.Error
Running
opencode plugin -g opencode-gemini-auth:At runtime, the plugin is silently skipped — Google does not appear as an OAuth provider.
Suggested Fix
Add a
mainfield topackage.json:{ "main": "./index.ts", "module": "index.ts" }This is consistent with how other working plugins (e.g.,
oh-my-opencode@3.15.3) expose their entrypoints.Environment
opencode plugin -g opencode-gemini-auth(no proxy)