Repository navigation
opencode auth login throw BunInstallFailedError #10614
Copy link
Copy link
Closed as not planned
Labels
Description
Description
❯ opencode auth login
INFO 2026-01-26T04:25:30 +57ms service=models.dev file={} refreshing
┌ Add credential
│
◇ Select provider
│ Google
Error: Unexpected error, check log file at /home/matrix/.local/share/opencode/log/2026-01-26T042530.log for more details
BunInstallFailedError
Check the log
Run the command in the log
❯ BUN_BE_BUN=1 opencode add --force --exeact --cwd ~/.cache/opencode opencode@latest
bun add v1.3.5 (1e86cebd)
error: GET https://registry.npmjs.org/opencode - 404FULL LOG
INFO 2026-01-26T04:25:30 +257ms service=default version=1.1.36 args=["auth","login"] opencode
INFO 2026-01-26T04:25:30 +1ms service=default directory=/home/matrix/.cache/opencode creating instance
INFO 2026-01-26T04:25:30 +0ms service=project directory=/home/matrix/.cache/opencode fromDirectory
INFO 2026-01-26T04:25:30 +26ms service=models.dev file={} refreshing
INFO 2026-01-26T04:25:30 +337ms service=config path=/home/matrix/.config/opencode/config.json loading
INFO 2026-01-26T04:25:30 +1ms service=config path=/home/matrix/.config/opencode/opencode.json loading
INFO 2026-01-26T04:25:30 +16ms service=config path=/home/matrix/.config/opencode/opencode.jsonc loading
INFO 2026-01-26T04:25:30 +10ms service=bun cmd=["/home/matrix/.opencode/bin/opencode","add","@opencode-ai/plugin@1.1.36","--exact"] cwd=/home/matrix/.config/opencode running
INFO 2026-01-26T04:25:30 +2ms service=config path=/home/matrix/.opencode/opencode.jsonc loading
INFO 2026-01-26T04:25:30 +1ms service=config path=/home/matrix/.opencode/opencode.json loading
INFO 2026-01-26T04:25:30 +0ms service=bun cmd=["/home/matrix/.opencode/bin/opencode","add","@opencode-ai/plugin@1.1.36","--exact"] cwd=/home/matrix/.opencode running
INFO 2026-01-26T04:25:30 +8ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)
installed @opencode-ai/plugin@1.1.36
[2.00ms] done
stderr=Saved lockfile
done
INFO 2026-01-26T04:25:30 +0ms service=bun cmd=["/home/matrix/.opencode/bin/opencode","install"] cwd=/home/matrix/.opencode running
INFO 2026-01-26T04:25:30 +0ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)
installed @opencode-ai/plugin@1.1.36
[6.00ms] done
stderr=Saved lockfile
done
INFO 2026-01-26T04:25:30 +0ms service=bun cmd=["/home/matrix/.opencode/bin/opencode","install"] cwd=/home/matrix/.config/opencode running
INFO 2026-01-26T04:25:30 +18ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd)
Checked 3 installs across 4 packages (no changes) [1.00ms]
stderr= done
INFO 2026-01-26T04:25:30 +0ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd)
Checked 3 installs across 4 packages (no changes) [1.00ms]
stderr= done
INFO 2026-01-26T04:25:32 +1674ms service=plugin name=CodexAuthPlugin loading internal plugin
INFO 2026-01-26T04:25:32 +0ms service=plugin name=CopilotAuthPlugin loading internal plugin
INFO 2026-01-26T04:25:32 +1ms service=plugin path=opencode loading plugin
INFO 2026-01-26T04:25:32 +1ms service=bun pkg=opencode version=latest installing package using Bun's default registry resolution
INFO 2026-01-26T04:25:32 +0ms service=bun cmd=["/home/matrix/.opencode/bin/opencode","add","--force","--exact","--cwd","/home/matrix/.cache/opencode","opencode@latest"] cwd=/home/matrix/.cache/opencode running
INFO 2026-01-26T04:25:32 +315ms service=bun code=1 stdout=bun add v1.3.5 (1e86cebd)
stderr=Resolving dependencies
Resolved, downloaded and extracted [1]
error: GET https://registry.npmjs.org/opencode - 404
done
ERROR 2026-01-26T04:25:32 +16ms service=default pkg=opencode version=latest name=BunInstallFailedError message=BunInstallFailedError cause=Error: Command failed with exit code 1 stack=BunInstallFailedError: BunInstallFailedError
at <anonymous> (src/bun/index.ts:111:17)
at processTicksAndRejections (native:7:39) fatalPlugins
No response
OpenCode version
1.1.36
Steps to reproduce
- opencode auth login
Screenshot and/or share link
Operating System
WSL Ubuntu 24.04
Terminal
Windows Terminal
Reactions are currently unavailable
Activity
github-actions commentedon Jan 26, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
pplmx commentedon Jan 26, 2026
#5223
electroheadfx commentedon Jan 30, 2026
I have the same error, I can't use anymore opencode:
opencode { "name": "BunInstallFailedError", "data": { "pkg": "opencode-google-antigravity-auth", "version": "latest" } }it-zyf commentedon Feb 26, 2026
I have the same error:
{
"name": "BunInstallFailedError",
"data": {
"pkg": "opencode-google-antigravity-auth",
"version": "latest"
}
}
github-actions commentedon Apr 28, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.