You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"open code upgrade --method=brew" fails with "$HOME must be set to run brew" #3707
I guess this is a bug because HOME is set in my terminal. Or anything wrongly set in my brew installation?
❯ opencode upgrade --method=brew
┌ Upgrade
│
● Using method: brew
│
● From 1.0.7 → 1.0.9
�
■ Upgrade failed
�
■ Error: $HOME must be set to run brew.
│
│
└ Done
I'm still getting this. I've tried explicitly setting $HOME though it's already set export $HOME='/Users/abe'
Upgrading from 1.0.24.
I've also tried brew uninstall opencode && brew install [email protected] and get Warning: No available formula with the name "[email protected]". Did you mean opencode?
EDIT:
mind you, i used to install previously with npm install -g opencode but uninstalled due to similar upgrade errors and started using brew
Activity
alesmartan commentedon Nov 6, 2025
same thing for me here
thdxr commentedon Nov 6, 2025
fixed
abeisleem commentedon Nov 6, 2025
I'm still getting this. I've tried explicitly setting $HOME though it's already set
export $HOME='/Users/abe'Upgrading from 1.0.24.
I've also tried
brew uninstall opencode && brew install [email protected]and getWarning: No available formula with the name "[email protected]". Did you mean opencode?EDIT:
mind you, i used to install previously with
npm install -g opencodebut uninstalled due to similar upgrade errors and started using brewrekram1-node commentedon Nov 6, 2025
@abeisleem you can't install specific versions easily with homebrew, just do
brew install opencodeand it will or should grab the latest versionNote: if you are using the homebrew official formula their versions are on a 4-6hr delay.
You can also use the sst/tap/opencode version instead if you prefer
abeisleem commentedon Nov 6, 2025
good enough, thanks @rekram1-node!
PWCoder commentedon Nov 11, 2025
When I do this on mac today, I get this message saying that 0.14.7 is the latest version:
(My command) > brew install opencode
(Output) >Warning: opencode 0.14.7 is already installed and up-to-date.
To reinstall 0.14.7, run:
brew reinstall opencode
How can I get it to pick up the latest version?
rekram1-node commentedon Nov 11, 2025
@PWCoder maybe do
brew uninstall opencodeand then install fresh?PWCoder commentedon Nov 11, 2025
@rekram1-node Thanks for the reply, I had tried that.
You got me thinking though and I updated brew and it fixed the issue.