opencode
opencode copied to clipboard
Install script ignores OPENCODE_INSTALL_DIR environment variable
Description
The install script hardcodes installation to $HOME/.opencode/bin, ignoring documented environment variables like $OPENCODE_INSTALL_DIR and $XDG_BIN_DIR.
Expected priority: OPENCODE_INSTALL_DIR → XDG_BIN_DIR → $HOME/bin → $HOME/.opencode/bin
Plugins
No response
OpenCode version
No response
Steps to reproduce
OPENCODE_INSTALL_DIR=$HOME/.local/bin curl -fsSL https://opencode.ai/install | bash
Screenshot and/or share link
No response
Operating System
Ubuntu22.04
Terminal
No response