opencode icon indicating copy to clipboard operation
opencode copied to clipboard

opencode wont open after install

Open benjaminjamesxyz opened this issue 3 hours ago • 1 comments

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 [email protected] 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/[email protected]","--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/[email protected]

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/[email protected]","--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 [email protected] 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","[email protected]"] 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/[email protected]

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 [email protected]

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

benjaminjamesxyz avatar Jan 17 '26 13:01 benjaminjamesxyz