Skip to content

[FEATURE]: install globally with curl #57628

Open

Description

@bilogic

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

  1. curl -fsSL https://opencode.ai/v2/install | bash from the docs does not install opencode globally
  2. We should have a command to install globally

Activity

  1. opencode-agent commented on Oct 21, 2026

    @opencode-agent
    Contributor

    Thanks for the suggestion, @bilogic! As I understand it, you'd like the curl -fsSL https://opencode.ai/v2/install | bash installer to support a system-wide install (for example into /usr/local/bin). Right now it always installs into ~/.opencode/bin and adds that folder to PATH in your shell config, so opencode is only available to the current user.

    The README does describe an OPENCODE_INSTALL_DIR / XDG_BIN_DIR override, with an example like OPENCODE_INSTALL_DIR=/usr/local/bin curl ... | bash. The current installer doesn't read those variables, so that example won't work as written. Until something changes, one workaround is to run the installer normally and then copy or symlink the binary yourself, e.g. sudo ln -s ~/.opencode/bin/opencode /usr/local/bin/opencode. Note that this path is inside your home folder, so other users may not be able to reach it, and a later in-place upgrade may not update a copied binary.

    Related issues and PRs:

    Maintainers will consider this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions