opencode wont open after install #6601

Closed
opened 2026-02-16 18:04:42 -05:00 by yindo · 12 comments
Owner

Originally created by @benjaminjamesxyz on GitHub (Jan 17, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

I have freshly installed opencode but, while running opencode it crashes due to a dependency.
here is the logs.

➜  ~ bun add -g opencode-ai         
bun add v1.3.6 (d530ed99)

installed opencode-ai@1.1.25 with binaries:
 - opencode

1 package installed [148.00ms]
➜  ~ opencode run hello --print-logs
INFO  2026-01-17T13:39:48 +196ms service=default version=1.1.25 args=["run","hello","--print-logs"] opencode
INFO  2026-01-17T13:39:48 +1ms service=default directory=/home/simson creating instance
INFO  2026-01-17T13:39:48 +0ms service=project directory=/home/simson fromDirectory
INFO  2026-01-17T13:39:48 +4ms service=storage index=0 running migration
INFO  2026-01-17T13:39:48 +2ms service=storage index=1 running migration
INFO  2026-01-17T13:39:48 +3ms service=default directory=/home/simson bootstrapping
INFO  2026-01-17T13:39:48 +8ms service=config path=/home/simson/.config/opencode/config.json loading
INFO  2026-01-17T13:39:48 +0ms service=config path=/home/simson/.config/opencode/opencode.json loading
INFO  2026-01-17T13:39:48 +0ms service=config path=/home/simson/.config/opencode/opencode.jsonc loading
INFO  2026-01-17T13:39:48 +3ms service=bun cmd=["/home/simson/.bun/install/global/node_modules/opencode-linux-x64/bin/opencode","add","@opencode-ai/plugin@1.1.25","--exact"] cwd=/home/simson/.config/opencode running
INFO  2026-01-17T13:39:48 +8ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

installed @opencode-ai/plugin@1.1.25

3 packages installed [5.00ms]
 stderr=Saved lockfile
 done
INFO  2026-01-17T13:39:48 +0ms service=bun cmd=["/home/simson/.bun/install/global/node_modules/opencode-linux-x64/bin/opencode","install"] cwd=/home/simson/.config/opencode running
INFO  2026-01-17T13:39:48 +10ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd)

1 package installed [5.00ms]
 stderr= done
INFO  2026-01-17T13:39:48 +2ms service=config path=/home/simson/.opencode/opencode.jsonc loading
INFO  2026-01-17T13:39:48 +0ms service=config path=/home/simson/.opencode/opencode.json loading
INFO  2026-01-17T13:39:48 +0ms service=bun cmd=["/home/simson/.bun/install/global/node_modules/opencode-linux-x64/bin/opencode","add","@opencode-ai/plugin@1.1.25","--exact"] cwd=/home/simson/.opencode running
INFO  2026-01-17T13:39:48 +4ms service=plugin name=CodexAuthPlugin loading internal plugin
INFO  2026-01-17T13:39:48 +0ms service=plugin name=CopilotAuthPlugin loading internal plugin
INFO  2026-01-17T13:39:48 +0ms service=plugin path=opencode-anthropic-auth@0.0.9 loading plugin
INFO  2026-01-17T13:39:48 +1ms service=bun pkg=opencode-anthropic-auth version=0.0.9 installing package using Bun's default registry resolution
INFO  2026-01-17T13:39:48 +0ms service=bun cmd=["/home/simson/.bun/install/global/node_modules/opencode-linux-x64/bin/opencode","add","--force","--exact","--cwd","/home/simson/.cache/opencode","opencode-anthropic-auth@0.0.9"] cwd=/home/simson/.cache/opencode running
INFO  2026-01-17T13:39:48 +1ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

installed @opencode-ai/plugin@1.1.25

1 package installed [4.00ms]
 stderr=Saved lockfile
 done
INFO  2026-01-17T13:39:48 +0ms service=bun cmd=["/home/simson/.bun/install/global/node_modules/opencode-linux-x64/bin/opencode","install"] cwd=/home/simson/.opencode running
INFO  2026-01-17T13:39:48 +7ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd)

1 package installed [5.00ms]
 stderr= done
INFO  2026-01-17T13:39:50 +1949ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

installed opencode-anthropic-auth@0.0.9

13 packages installed [1.95s]
 stderr=Resolving dependencies
Resolved, downloaded and extracted [3]
Saved lockfile
 done
ERROR 2026-01-17T13:39:50 +8ms service=default name=ResolveMessage message=Cannot find module '@openauthjs/openauth/pkce' from '/home/simson/.cache/opencode/node_modules/opencode-anthropic-auth/index.mjs' code=ERR_MODULE_NOT_FOUND specifier=@openauthjs/openauth/pkce referrer=/home/simson/.cache/opencode/node_modules/opencode-anthropic-auth/index.mjs importKind=import-statement fatal
Error: Unexpected error, check log file at  for more details

ResolveMessage: Cannot find module '@openauthjs/openauth/pkce' from '/home/simson/.cache/opencode/node_modules/opencode-anthropic-auth/index.mjs'

Plugins

No response

OpenCode version

1.1.25

Steps to reproduce

  1. Install opencode using the comand bun add -g opencode-ai
  2. Run opencode using the command opencode run hello --print-logs

Screenshot and/or share link

No response

Operating System

ArchLinux

Terminal

Kitty

Originally created by @benjaminjamesxyz on GitHub (Jan 17, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description I have freshly installed opencode but, while running opencode it crashes due to a dependency. here is the logs. ``` ➜ ~ bun add -g opencode-ai bun add v1.3.6 (d530ed99) installed opencode-ai@1.1.25 with binaries: - opencode 1 package installed [148.00ms] ➜ ~ opencode run hello --print-logs INFO 2026-01-17T13:39:48 +196ms service=default version=1.1.25 args=["run","hello","--print-logs"] opencode INFO 2026-01-17T13:39:48 +1ms service=default directory=/home/simson creating instance INFO 2026-01-17T13:39:48 +0ms service=project directory=/home/simson fromDirectory INFO 2026-01-17T13:39:48 +4ms service=storage index=0 running migration INFO 2026-01-17T13:39:48 +2ms service=storage index=1 running migration INFO 2026-01-17T13:39:48 +3ms service=default directory=/home/simson bootstrapping INFO 2026-01-17T13:39:48 +8ms service=config path=/home/simson/.config/opencode/config.json loading INFO 2026-01-17T13:39:48 +0ms service=config path=/home/simson/.config/opencode/opencode.json loading INFO 2026-01-17T13:39:48 +0ms service=config path=/home/simson/.config/opencode/opencode.jsonc loading INFO 2026-01-17T13:39:48 +3ms service=bun cmd=["/home/simson/.bun/install/global/node_modules/opencode-linux-x64/bin/opencode","add","@opencode-ai/plugin@1.1.25","--exact"] cwd=/home/simson/.config/opencode running INFO 2026-01-17T13:39:48 +8ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd) installed @opencode-ai/plugin@1.1.25 3 packages installed [5.00ms] stderr=Saved lockfile done INFO 2026-01-17T13:39:48 +0ms service=bun cmd=["/home/simson/.bun/install/global/node_modules/opencode-linux-x64/bin/opencode","install"] cwd=/home/simson/.config/opencode running INFO 2026-01-17T13:39:48 +10ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd) 1 package installed [5.00ms] stderr= done INFO 2026-01-17T13:39:48 +2ms service=config path=/home/simson/.opencode/opencode.jsonc loading INFO 2026-01-17T13:39:48 +0ms service=config path=/home/simson/.opencode/opencode.json loading INFO 2026-01-17T13:39:48 +0ms service=bun cmd=["/home/simson/.bun/install/global/node_modules/opencode-linux-x64/bin/opencode","add","@opencode-ai/plugin@1.1.25","--exact"] cwd=/home/simson/.opencode running INFO 2026-01-17T13:39:48 +4ms service=plugin name=CodexAuthPlugin loading internal plugin INFO 2026-01-17T13:39:48 +0ms service=plugin name=CopilotAuthPlugin loading internal plugin INFO 2026-01-17T13:39:48 +0ms service=plugin path=opencode-anthropic-auth@0.0.9 loading plugin INFO 2026-01-17T13:39:48 +1ms service=bun pkg=opencode-anthropic-auth version=0.0.9 installing package using Bun's default registry resolution INFO 2026-01-17T13:39:48 +0ms service=bun cmd=["/home/simson/.bun/install/global/node_modules/opencode-linux-x64/bin/opencode","add","--force","--exact","--cwd","/home/simson/.cache/opencode","opencode-anthropic-auth@0.0.9"] cwd=/home/simson/.cache/opencode running INFO 2026-01-17T13:39:48 +1ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd) installed @opencode-ai/plugin@1.1.25 1 package installed [4.00ms] stderr=Saved lockfile done INFO 2026-01-17T13:39:48 +0ms service=bun cmd=["/home/simson/.bun/install/global/node_modules/opencode-linux-x64/bin/opencode","install"] cwd=/home/simson/.opencode running INFO 2026-01-17T13:39:48 +7ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd) 1 package installed [5.00ms] stderr= done INFO 2026-01-17T13:39:50 +1949ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd) installed opencode-anthropic-auth@0.0.9 13 packages installed [1.95s] stderr=Resolving dependencies Resolved, downloaded and extracted [3] Saved lockfile done ERROR 2026-01-17T13:39:50 +8ms service=default name=ResolveMessage message=Cannot find module '@openauthjs/openauth/pkce' from '/home/simson/.cache/opencode/node_modules/opencode-anthropic-auth/index.mjs' code=ERR_MODULE_NOT_FOUND specifier=@openauthjs/openauth/pkce referrer=/home/simson/.cache/opencode/node_modules/opencode-anthropic-auth/index.mjs importKind=import-statement fatal Error: Unexpected error, check log file at for more details ResolveMessage: Cannot find module '@openauthjs/openauth/pkce' from '/home/simson/.cache/opencode/node_modules/opencode-anthropic-auth/index.mjs' ``` ### Plugins _No response_ ### OpenCode version 1.1.25 ### Steps to reproduce 1. Install opencode using the comand `bun add -g opencode-ai` 2. Run opencode using the command `opencode run hello --print-logs` ### Screenshot and/or share link _No response_ ### Operating System ArchLinux ### Terminal Kitty
yindo added the bug label 2026-02-16 18:04:42 -05:00
yindo closed this issue 2026-02-16 18:04:42 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 17, 2026):

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

  • #6935: Windows: OpenCode fails to start - Cannot find module '@openauthjs/openauth/pkce' (same exact error)
  • #8790: ResolveMessage: Cannot find module error with jose dependency

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

@github-actions[bot] commented on GitHub (Jan 17, 2026): This issue might be a duplicate of existing issues. Please check: - #6935: Windows: OpenCode fails to start - Cannot find module '@openauthjs/openauth/pkce' (same exact error) - #8790: ResolveMessage: Cannot find module error with jose dependency Feel free to ignore if none of these address your specific case.
Author
Owner

@Pyasma commented on GitHub (Jan 17, 2026):

hmm I tried to reproduce the issue but it's working fine for me

@Pyasma commented on GitHub (Jan 17, 2026): hmm I tried to reproduce the issue but it's working fine for me
Author
Owner

@Pyasma commented on GitHub (Jan 17, 2026):

System : arch linux (omarchy)
Terminal: Kitty

@Pyasma commented on GitHub (Jan 17, 2026): System : arch linux (omarchy) Terminal: Kitty
Author
Owner

@NAREZKA578 commented on GitHub (Jan 17, 2026):

Maybe you have something in your system that we don't have. Try installing a completely clean system and the program on it!

@NAREZKA578 commented on GitHub (Jan 17, 2026): Maybe you have something in your system that we don't have. Try installing a completely clean system and the program on it!
Author
Owner

@benjaminjamesxyz commented on GitHub (Jan 17, 2026):

I have run opencode uninstall and tried installing again

Image

but its the same

Image

any extra steps to archive clean uninstall.

@benjaminjamesxyz commented on GitHub (Jan 17, 2026): I have run `opencode uninstall` and tried installing again <img width="380" height="793" alt="Image" src="https://github.com/user-attachments/assets/498e6fdf-d0c8-4301-acc7-6917b963ff20" /> but its the same <img width="1879" height="743" alt="Image" src="https://github.com/user-attachments/assets/e3faa2b5-fd85-4b0c-ad0c-33afe7c30717" /> any extra steps to archive clean uninstall.
Author
Owner

@MikeeBuilds commented on GitHub (Jan 17, 2026):

Getting this also. Just started having this issue today after OpenCode working great the past few weeks. Trying to debug this now

@MikeeBuilds commented on GitHub (Jan 17, 2026): Getting this also. Just started having this issue today after OpenCode working great the past few weeks. Trying to debug this now
Author
Owner

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

set this and it should fix:

OPENCODE_DISABLE_DEFAULT_PLUGINS=true

@rekram1-node commented on GitHub (Jan 17, 2026): set this and it should fix: `OPENCODE_DISABLE_DEFAULT_PLUGINS=true`
Author
Owner

@benjaminjamesxyz commented on GitHub (Jan 18, 2026):

Getting this also. Just started having this issue today after OpenCode working great the past few weeks. Trying to debug this now

yeah same, it was working fine earlier.

@benjaminjamesxyz commented on GitHub (Jan 18, 2026): > Getting this also. Just started having this issue today after OpenCode working great the past few weeks. Trying to debug this now yeah same, it was working fine earlier.
Author
Owner

@benjaminjamesxyz commented on GitHub (Jan 18, 2026):

set this and it should fix:

OPENCODE_DISABLE_DEFAULT_PLUGINS=true

This worked.

@benjaminjamesxyz commented on GitHub (Jan 18, 2026): > set this and it should fix: > > `OPENCODE_DISABLE_DEFAULT_PLUGINS=true` This worked.
Author
Owner

@benjaminjamesxyz commented on GitHub (Jan 18, 2026):

set this and it should fix:

OPENCODE_DISABLE_DEFAULT_PLUGINS=true

What does this do?

@benjaminjamesxyz commented on GitHub (Jan 18, 2026): > set this and it should fix: > > `OPENCODE_DISABLE_DEFAULT_PLUGINS=true` What does this do?
Author
Owner

@benjaminjamesxyz commented on GitHub (Jan 18, 2026):

I deleted .npm and .bun folders and ran opencode.
It worked with all the plugins, without any issue.

@benjaminjamesxyz commented on GitHub (Jan 18, 2026): I deleted .npm and .bun folders and ran opencode. It worked with all the plugins, without any issue.
Author
Owner

@juneleung commented on GitHub (Jan 18, 2026):

set this and it should fix:设置这个,应该能解决:

OPENCODE_DISABLE_DEFAULT_PLUGINS=true

cool, worked.

@juneleung commented on GitHub (Jan 18, 2026): > set this and it should fix:设置这个,应该能解决: > > `OPENCODE_DISABLE_DEFAULT_PLUGINS=true` cool, worked.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6601