Repository navigation
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Prerequisites
- I will write this issue in English (see our Language Policy)
- I have searched existing issues to avoid duplicates
- I am using the latest version of oh-my-opencode
- I have read the documentation
Bug Description
Description
Installation of oh-my-opencode fails consistently across multiple computers on different networks worldwide when using both npx and bunx package runners.
Environment
- Tested on: 3 different computers across different global networks
- OS: macOS (Darwin 25.2.0, ARM64)
- Node: v22.18.0
- npm: v11.5.2
- Bun: Available at /Users/shrimp/.bun/bin/bunx
Steps to Reproduce
- Follow the installation guide instructions
- Run:
bunx oh-my-opencode install --no-tui --claude=yes --gemini=yes --copilot=yes - Alternatively run:
npx oh-my-opencode install --no-tui --claude=yes --gemini=yes --copilot=yes
Expected Behavior
oh-my-opencode should install successfully and configure the specified providers.
Actual Behavior
With bunx:
Resolving dependencies
Resolved, downloaded and extracted [264]
error: Workspace dependency "@opencode-ai/sdk" not found
Searched in "./*"
Workspace documentation: https://bun.sh/docs/install/workspaces
error: zod@catalog: failed to resolve
error: @opencode-ai/sdk@workspace:* failed to resolve
With npx:
npm warn exec The following package was not found and will be installed: [email protected]
npm error A complete log of this run can be found in: /Users/shrimp/.npm/_logs/2026-01-30T18_00_04_856Z-debug-0.log
The npm log shows successful resolution of dependencies (lines 1-249 in the debug log) but exits with code 1 without a clear error message. The log shows all dependencies including @opencode-ai/[email protected] and @opencode-ai/[email protected] being resolved successfully, but the installation still fails.
Doctor Output
➜ ~ bunx oh-my-opencode doctor
error: Workspace dependency "@opencode-ai/sdk" not found
Searched in "./*"
Workspace documentation: https://bun.sh/docs/install/workspaces
error: zod@catalog: failed to resolve
error: @opencode-ai/sdk@workspace:* failed to resolve
➜ ~Error Logs
Configuration
Additional Context
No response
Operating System
macOS
OpenCode Version
1.1.23
Reacted by Shawn McElroy and David Dembeck
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Activity
eleqtrizit commentedon Jan 30, 2026
Same here. Busted my Opencode entirely, too. I keep trying to back down to older version of my oh-my-opencode but I can't seem to find a version that works.
KevosG commentedon Jan 30, 2026
Same issue. Verified.
cpkt9762 commentedon Jan 30, 2026
opencode-ai 团队在发布 @opencode-ai/[email protected] 时,没有正确处理 pnpm 的工作空间协议(workspace:* 和 catalog:)。这些协议应该在 npm publish 时被自动替换成实际版本号,但显然这一步失败了。
这是 opencode-ai 的 CI/CD 或发布流程的 bug。oh-my-opencode 只是无辜受害者。
xhhoweb commentedon Jan 30, 2026
现在已经无法使用了,必须得删除才可以打开opencode
eleqtrizit commentedon Jan 30, 2026
I downloaded this repo and threw some tokens at the problem. My Opencode is fixed now.
Claude's analysis:
Problem
OpenCode failed to start with
BunInstallFailedErrorwhen trying to install theoh-my-opencodeplugin:Additionally,
bunx oh-my-opencode doctorandnpx oh-my-opencodefailed with:Root Cause
The
bun.lockfile in~/.config/opencode/contained corrupted workspace configuration that was leaking into dependency resolution. When Bun tried to installoh-my-opencode, it incorrectly applied workspace/catalog protocol resolution, which npm doesn't understand, causing installation to fail.Fix Commands
xhhoweb commentedon Jan 30, 2026
我试过了还是无法启动
xhhoweb commentedon Jan 30, 2026
尝试新的跨平台 PowerShell https://aka.ms/pscore6
PS C:\Users\Administrator> # Remove corrupted bun.lock
PS C:\Users\Administrator> rm ~/.config/opencode/bun.lock
PS C:\Users\Administrator>
PS C:\Users\Administrator> # Reinstall dependencies cleanly
PS C:\Users\Administrator> cd ~/.config/opencode
PS C:\Users\Administrator.config\opencode> bun install
bun install v1.3.6 (d530ed99)
Checked 110 installs across 131 packages (no changes) [96.00ms]
PS C:\Users\Administrator.config\opencode>
PS C:\Users\Administrator.config\opencode> # Install oh-my-opencode plugin explicitly
PS C:\Users\Administrator.config\opencode> bun add oh-my-opencode
bun add v1.3.6 (d530ed99)
installed [email protected] with binaries:
[48.00ms] done
PS C:\Users\Administrator.config\opencode>
akring commentedon Jan 30, 2026
Worked for me, thank you!
electroheadfx commentedon Jan 30, 2026
I tried, my opencode is always fucked, I have white window when I open :(
electroheadfx commentedon Jan 30, 2026
me too it doesn't work
electroheadfx commentedon Jan 30, 2026
My issue was the "oh-my-opencode" and "opencode-google-antigravity-auth" plugins
I think Both with the corrupted bun.lock fixed too the problem.
imadraude commentedon Jan 30, 2026
The installation failure was primarily caused by an upstream bug in
opencode-ai v1.1.45(unresolved workspace/catalog dependencies).As of now, OpenCode 1.1.47 has been released and it resolves this issue.
Run
opencode upgrade(ornpm install -g opencode-ai@latest) and then try installingoh-my-opencodeagain. It should work fine now!electroheadfx commentedon Jan 30, 2026
thanks
From me Iam in 1.1.45, i tried
brew upgradeoropencode upgradeno 1.1.47 come.From my side with 1.1.45, the
opencode-google-antigravity-authplugin is not more supported : shekohex/opencode-google-antigravity-auth#36vmagalhaes commentedon Jan 30, 2026
Even after that still the issue
opencode.jsonc loading ERROR 2026-01-30T22:03:45 +3758ms service=default e=setRawMode failed with errno: 5 exception ERROR 2026-01-30T22:03:45 +0ms service=default Error: setRawMode failed with errno: 5 ERROR 2026-01-30T22:03:45 +21ms service=default e=EIO: i/o error, read exception ERROR 2026-01-30T22:03:45 +0ms service=default Error: EIO: i/o error, readAnd
imadraude commentedon Jan 30, 2026
@shrimpwtf @eleqtrizit @KevosG @cpkt9762 @xhhoweb @electroheadfx @vmagalhaes
Update 2: While
opencode-ai v1.1.47fixes the installation/dependency errors, it appears there is still a runtime hang inoh-my-opencode v3.1.9.The TUI currently freezes during
/providerinitialization. If you need to use OpenCode right now, you may need to temporarily disable the plugin or pin tov3.1.8until a fix for the runtime hang is released.vmagalhaes commentedon Jan 30, 2026
I tried it but unfortunately the TUI is "blank"
When adding to "plugin" the issue appear.
I tried fully reinstall opencode and oh-my-code. Cleaned npm and bun caches, but still the issue persist.
shrimpwtf commentedon Jan 31, 2026
simply running opencode upgrade seemed to fix it for me. will close if confirm the fix is this simple for others
eleqtrizit commentedon Jan 31, 2026
I did that when the problem was happening this morning and it did not fix it. Has something been released since then that would fix it?
I even force reinstalled it by hacking the install script.
electroheadfx commentedon Jan 31, 2026
What plugin(s) you have installed in opencode.json guys ?
electroheadfx commentedon Jan 31, 2026
you mean
opencode v1.1.47not opencode-ai ?how you force the update to v1.1.47, I do
brew upgrade opencodestill the same version v1.1.45brew upgrade opencode Warning: sst/tap/opencode 1.1.45 already installed opencode upgrade ● From 1.1.45 → 1.1.40 │ ◇ Upgrade complete │ └ Donethanks
code-yeongyu commentedon Feb 1, 2026
✅ This was an upstream OpenCode bug (@opencode-ai/[email protected]) that has been fixed in OpenCode v1.1.47. Please upgrade OpenCode to resolve this issue.
electroheadfx commentedon Feb 2, 2026
its fixed for me with 1.1.47 (woirk work with anti-gravity plugin)
goforu commentedon Feb 4, 2026
it's happening now in 3.2.3, switch back to 3.2.2 solve the problem
electroheadfx commentedon Feb 4, 2026
you mean opencode cli ? its 1.1.x actually ?
goforu commentedon Feb 4, 2026
Problem solved, It's my internet issue...
dongshimou commentedon Feb 25, 2026
work for me.
根本原因应该是没安装成功.CMD失败了.我也是切换到powershell成功安装了.