Skip to content

Can't open opencode after install #5223

Closed

Description

@chouzz

Description

Seems opencode does not work well in the company network, after installing opencode via npm, it can't be opened.

PS D:\src\github-src\claude-code-inspector> npm i -g opencode-ai@latest

added 3 packages in 15s
PS D:\src\github-src\claude-code-check> opencode
{
  "name": "BunInstallFailedError",
  "data": {
    "pkg": "opencode-copilot-auth",
    "version": "0.0.8"
  }
}

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows terminal

Activity

  1. github-actions commented on Dec 8, 2025

    @github-actions
    Contributor

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

    All of these involve BunInstallFailedError occurring when trying to install plugins in network-restricted environments (corporate proxies, firewalls, etc.). The core issue appears to be that OpenCode cannot properly download and install the opencode-copilot-auth plugin due to network/certificate restrictions.

    Feel free to ignore if your specific case differs from these existing reports.

  2. rekram1-node commented on Dec 8, 2025

    @rekram1-node
    Contributor

    @chouzz set: OPENCODE_DISABLE_DEFAULT_PLUGINS=true and then try again

  3. Tako-San commented on Dec 8, 2025

    @Tako-San

    Hi, @rekram1-node! I have same issue. Could you clarify how should I set OPENCODE_DISABLE_DEFAULT_PLUGINS=false? As env variable?

  4. daliusd commented on Dec 8, 2025

    @daliusd

    This does not help:

    ❯ OPENCODE_DISABLE_DEFAULT_PLUGINS=false opencode
    {
      "name": "BunInstallFailedError",
      "data": {
        "pkg": "opencode-copilot-auth",
        "version": "0.0.8"
      }
    }
    
  5. adanperez commented on Dec 8, 2025

    @adanperez

    You will want OPENCODE_DISABLE_DEFAULT_PLUGINS=1 opencode
    similar issue here #3426

  6. rekram1-node commented on Dec 8, 2025

    @rekram1-node
    Contributor

    Whoops I meant to say true (1 works too ofc)

  7. rekram1-node commented on Dec 8, 2025

    @rekram1-node
    Contributor

    I was tired my bad

  8. self-assigned this
    on Dec 8, 2025
  9. chouzz commented on Dec 9, 2025

    @chouzz
    Author

    You will want OPENCODE_DISABLE_DEFAULT_PLUGINS=1 opencode similar issue here #3426

    Works good for me.

  10. PatNei commented on Dec 10, 2025

    @PatNei

    This works but it errors out with externel plugins as well. Meaning using OPENCODE_DISABLE_DEFAULT_PLUGINS=1 opencode with the following configuration snippet will still cause it to fail.

    ...
      "plugin": ["opencode-openai-codex-auth@@4.0.2", "opencode-gemini-auth"],
    ...
    

    Removing the plugins fixes it but then you loose access to the plugins.

  11. daliusd commented on Dec 10, 2025

    @daliusd

    Upgrading to newer OpenCode versions solved the problem for me. Note: in my case it was not fresh install

  12. PatNei commented on Dec 10, 2025

    @PatNei

    I see, I tried updating to version 1.0.143. Still having the issue.

    UPDATE: I could fix it by removing a root level .npmrc file.

    Longer explanation:

    Tried bun add --force --exact --cwd ~/.cache/opencode opencode-copilot-auth@0.0.9, which gave me

    $ bun add --force --exact --cwd ~/.cache/opencode opencode-copilot-auth@0.0.9
    bun add v1.3.2 (b131639c)
    error: ConnectionRefused downloading package manifest opencode-copilot-auth

    Which led me to a similar issue here:
    oven-sh/bun#4988 (comment)

    I didn't try the IPV6 fix but it might also help :)

  13. kungege commented on Dec 22, 2025

    @kungege

    I have same issue

  14. rekram1-node commented on Dec 22, 2025

    @rekram1-node
    Contributor

    @kungege can u tell me more?

  15. kungege commented on Dec 23, 2025

    @kungege

    @rekram1-node Just as the issue raiser described.

  16. rekram1-node commented on Dec 23, 2025

    @rekram1-node
    Contributor

    @kungege have you tried setting that env var i mentioned?

  17. bbartels commented on Jan 28, 2026

    @bbartels
    Contributor

    @rekram1-node Running into this now:

    admin@dev6:~$ OPENCODE_DISABLE_DEFAULT_PLUGINS=1 opencode
    ERROR 2026-01-28T18:41:44 +435ms service=models.dev error=Unable to connect. Is the computer able to access the url? Failed to fetch models.dev
    {
      "name": "BunInstallFailedError",
      "data": {
        "pkg": "@aws-sdk/credential-providers",
        "version": "latest"
      }
    }
    
  18. eleqtrizit commented on Jan 30, 2026

    @eleqtrizit

    I'm getting the same error all of a sudden. Was literally working 5 minutes ago.

    Tried:

    >OPENCODE_DISABLE_DEFAULT_PLUGINS=1 opencode
    {
      "name": "BunInstallFailedError",
      "data": {
        "pkg": "oh-my-opencode",
        "version": "latest"
      }
    }
    
    >opencode upgrade
    
                                       ▄
      █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█
      █  █ █  █ █▀▀▀ █  █ █    █  █ █  █ █▀▀▀
      ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀
    
    ┌  Upgrade
    │
    ●  Using method: curl
    │
    ▲  opencode upgrade skipped: 1.1.45 is already installed
    │
    └  Done
    
  19. eleqtrizit commented on Jan 30, 2026

    @eleqtrizit

    It's an oh-my-opencode problem. OpenCode needs a way to handle this gracefully and let us continue if a plugin becomes busted.

  20. rekram1-node commented on Jan 30, 2026

    @rekram1-node
    Contributor

    yeah

  21. electroheadfx commented on Jan 30, 2026

    @electroheadfx

    I too upgraded and now opencode always not work, no error, just white page.
    I have too oh-my-zsh, do you how fix it Guys ?

  22. eleqtrizit commented on Jan 30, 2026

    @eleqtrizit

    I posted a fix/workaround in this thread
    code-yeongyu/oh-my-openagent#1294

  23. ryanjwessel commented on Feb 9, 2026

    @ryanjwessel

    In case it is helpful for anyone, as I've seen there are many duplicates of this issue. I was unable to run opencode off a fresh install on my work computer, but on my personal computer, I had no problems.

    One of the suggestions in this thread was to remove the root-level ~/.npmrc file. I can confirm that it resolved the issue for me. I had a value set for registry in that file, which appears to have caused the problem.

  24. github-actions commented on Apr 11, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 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 working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions