Can't open opencode after install #3389

Open
opened 2026-02-16 17:39:53 -05:00 by yindo · 22 comments
Owner

Originally created by @chouzz on GitHub (Dec 7, 2025).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @chouzz on GitHub (Dec 7, 2025). Originally assigned to: @rekram1-node on GitHub. ### 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
yindo added the bug label 2026-02-16 17:39:53 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 7, 2025):

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

  • #2992: opencode fails to start after chocolatey install: HTTPThread: the CA is invalid
  • #3130: SSL_CERT_FILE env not observed since v0.15.0
  • #3566: error: SELF_SIGNED_CERT_IN_CHAIN
  • #3426: BunInstallFailedError at Runtime on MacOS (company network environment)
  • #3989: acp-command unhandled rejection (company proxy issues)

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.

@github-actions[bot] commented on GitHub (Dec 7, 2025): This issue might be a duplicate of existing issues. Please check: - #2992: opencode fails to start after chocolatey install: HTTPThread: the CA is invalid - #3130: SSL_CERT_FILE env not observed since v0.15.0 - #3566: error: SELF_SIGNED_CERT_IN_CHAIN - #3426: BunInstallFailedError at Runtime on MacOS (company network environment) - #3989: acp-command unhandled rejection (company proxy issues) 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.
Author
Owner

@rekram1-node commented on GitHub (Dec 7, 2025):

@chouzz set: OPENCODE_DISABLE_DEFAULT_PLUGINS=true and then try again

@rekram1-node commented on GitHub (Dec 7, 2025): @chouzz set: `OPENCODE_DISABLE_DEFAULT_PLUGINS=true` and then try again
Author
Owner

@Tako-San commented on GitHub (Dec 8, 2025):

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

@Tako-San commented on GitHub (Dec 8, 2025): Hi, @rekram1-node! I have same issue. Could you clarify how should I set `OPENCODE_DISABLE_DEFAULT_PLUGINS=false`? As env variable?
Author
Owner

@daliusd commented on GitHub (Dec 8, 2025):

This does not help:

❯ OPENCODE_DISABLE_DEFAULT_PLUGINS=false opencode
{
  "name": "BunInstallFailedError",
  "data": {
    "pkg": "opencode-copilot-auth",
    "version": "0.0.8"
  }
}
@daliusd commented on GitHub (Dec 8, 2025): This does not help: ``` ❯ OPENCODE_DISABLE_DEFAULT_PLUGINS=false opencode { "name": "BunInstallFailedError", "data": { "pkg": "opencode-copilot-auth", "version": "0.0.8" } } ```
Author
Owner

@adanperez commented on GitHub (Dec 8, 2025):

You will want OPENCODE_DISABLE_DEFAULT_PLUGINS=1 opencode
similar issue here https://github.com/sst/opencode/issues/3426

@adanperez commented on GitHub (Dec 8, 2025): You will want `OPENCODE_DISABLE_DEFAULT_PLUGINS=1 opencode` similar issue here https://github.com/sst/opencode/issues/3426
Author
Owner

@rekram1-node commented on GitHub (Dec 8, 2025):

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

@rekram1-node commented on GitHub (Dec 8, 2025): Whoops I meant to say true (1 works too ofc)
Author
Owner

@rekram1-node commented on GitHub (Dec 8, 2025):

I was tired my bad

@rekram1-node commented on GitHub (Dec 8, 2025): I was tired my bad
Author
Owner

@chouzz commented on GitHub (Dec 9, 2025):

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

Works good for me.

@chouzz commented on GitHub (Dec 9, 2025): > You will want `OPENCODE_DISABLE_DEFAULT_PLUGINS=1 opencode` similar issue here [#3426](https://github.com/sst/opencode/issues/3426) Works good for me.
Author
Owner

@PatNei commented on GitHub (Dec 10, 2025):

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.

@PatNei commented on GitHub (Dec 10, 2025): 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. ```shell ... "plugin": ["opencode-openai-codex-auth@@4.0.2", "opencode-gemini-auth"], ... ``` Removing the plugins fixes it but then you loose access to the plugins.
Author
Owner

@daliusd commented on GitHub (Dec 10, 2025):

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

@daliusd commented on GitHub (Dec 10, 2025): Upgrading to newer OpenCode versions solved the problem for me. Note: in my case it was not fresh install
Author
Owner

@PatNei commented on GitHub (Dec 10, 2025):

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:
https://github.com/oven-sh/bun/issues/4988#issuecomment-2660869480

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

@PatNei commented on GitHub (Dec 10, 2025): 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 ```shell $ 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: https://github.com/oven-sh/bun/issues/4988#issuecomment-2660869480 I didn't try the IPV6 fix but it might also help :)
Author
Owner

@kungege commented on GitHub (Dec 22, 2025):

I have same issue

@kungege commented on GitHub (Dec 22, 2025): I have same issue
Author
Owner

@rekram1-node commented on GitHub (Dec 22, 2025):

@kungege can u tell me more?

@rekram1-node commented on GitHub (Dec 22, 2025): @kungege can u tell me more?
Author
Owner

@kungege commented on GitHub (Dec 22, 2025):

@rekram1-node Just as the issue raiser described.

@kungege commented on GitHub (Dec 22, 2025): @rekram1-node Just as the issue raiser described.
Author
Owner

@rekram1-node commented on GitHub (Dec 22, 2025):

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

@rekram1-node commented on GitHub (Dec 22, 2025): @kungege have you tried setting that env var i mentioned?
Author
Owner

@bbartels commented on GitHub (Jan 28, 2026):

@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"
  }
}
@bbartels commented on GitHub (Jan 28, 2026): @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" } } ```
Author
Owner

@eleqtrizit commented on GitHub (Jan 30, 2026):

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
@eleqtrizit commented on GitHub (Jan 30, 2026): 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 ```
Author
Owner

@eleqtrizit commented on GitHub (Jan 30, 2026):

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

@eleqtrizit commented on GitHub (Jan 30, 2026): It's an oh-my-opencode problem. OpenCode needs a way to handle this gracefully and let us continue if a plugin becomes busted.
Author
Owner

@rekram1-node commented on GitHub (Jan 30, 2026):

yeah

@rekram1-node commented on GitHub (Jan 30, 2026): yeah
Author
Owner

@electroheadfx commented on GitHub (Jan 30, 2026):

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 ?

@electroheadfx commented on GitHub (Jan 30, 2026): 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 ?
Author
Owner

@eleqtrizit commented on GitHub (Jan 30, 2026):

I posted a fix/workaround in this thread
https://github.com/code-yeongyu/oh-my-opencode/issues/1294

@eleqtrizit commented on GitHub (Jan 30, 2026): I posted a fix/workaround in this thread https://github.com/code-yeongyu/oh-my-opencode/issues/1294
Author
Owner

@ryanjwessel commented on GitHub (Feb 9, 2026):

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.

@ryanjwessel commented on GitHub (Feb 9, 2026): 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](https://github.com/anomalyco/opencode/issues/5223#issuecomment-3637421930). 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3389