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
OPENCODE_INSTALL_DIR environment variable is ignored on Windows #28437
OPENCODE_INSTALL_DIR environment variable is ignored on Windows — binary always installs to default path
What happened?
Setting the OPENCODE_INSTALL_DIR environment variable on Windows has no effect. The installer always places the binary in the default hardcoded path regardless of the environment variable value.
Steps to Reproduce
Set OPENCODE_INSTALL_DIR as a Windows user environment variable (e.g. D:\OpenCode) via System Properties → Environment Variables
Open a new terminal and run the install command
The binary is installed to the default path instead of D:\OpenCode
Expected Behavior
The installer should respect OPENCODE_INSTALL_DIR and place the binary in the specified directory.
Actual Behavior
The binary is installed to the default Windows path, ignoring OPENCODE_INSTALL_DIR entirely.
Still reproducible on Windows 11 as of May 2026. Setting OPENCODE_INSTALL_DIR as a Windows user environment variable has no effect — the installer always falls back to the default path. This is not fixed.
Activity
github-actions commentedon May 20, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue is distinct from the above, please add a comment clarifying how it differs.
JettHayes commentedon May 20, 2026
Still reproducible on Windows 11 as of May 2026. Setting
OPENCODE_INSTALL_DIRas a Windows user environment variable has no effect — the installer always falls back to the default path. This is not fixed.github-actions commentedon Jul 20, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.