Skip to content

opencode auth login throw BunInstallFailedError #10614

Closed as not planned
Closed as not planned

Description

@pplmx

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 - 404
FULL 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) fatal

Plugins

No response

OpenCode version

1.1.36

Steps to reproduce

  1. opencode auth login

Screenshot and/or share link

Image

Operating System

WSL Ubuntu 24.04

Terminal

Windows Terminal

Activity

  1. github-actions commented on Jan 26, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. pplmx commented on Jan 26, 2026

    @pplmx
    Author
  3. electroheadfx commented on Jan 30, 2026

    @electroheadfx

    I have the same error, I can't use anymore opencode:

    opencode
    {
      "name": "BunInstallFailedError",
      "data": {
        "pkg": "opencode-google-antigravity-auth",
        "version": "latest"
      }
    }
  4. it-zyf commented on Feb 26, 2026

    @it-zyf

    I have the same error:

    {
    "name": "BunInstallFailedError",
    "data": {
    "pkg": "opencode-google-antigravity-auth",
    "version": "latest"
    }
    }

  5. github-actions commented on Apr 28, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions