opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Install script ignores OPENCODE_INSTALL_DIR environment variable

Open grgong opened this issue 4 days ago • 2 comments

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_DIRXDG_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

grgong avatar Jan 10 '26 17:01 grgong