OpenCode CLI

Installs the OpenCode CLI for the Dev Container user using OpenCode's native installer and ensures `opencode` is on the PATH.

Install

Add to devcontainer.json

"features": {
  "ghcr.io/wyrd-company/devcontainers/opencode-cli:1": {}
}

README

OpenCode CLI

Installs the OpenCode CLI for the resolved Dev Container user using OpenCode’s native installer and ensures opencode is available on the container PATH.

The executable, updater, and OpenCode state remain owned by the user rather than root. The Feature does not require Homebrew.

Options

OptionTypeDefaultDescription
versionstringlatestOpenCode CLI version to install. Use latest or a specific version like 1.18.25.

Example usage

{
  "features": {
    "ghcr.io/wyrd-company/devcontainers/opencode-cli:1": {}
  }
}

Trademarks

This feature is not affiliated with or endorsed by Anomaly. OpenCode and its logo are trademarks of Anomaly. All trademarks and copyrights belong to their holders. The logo is used only to identify the software that this feature installs.

Logo: the opencode mark from opencode-logo-light-square.svg (MIT), also offered on the opencode brand page. No trademark terms are published.

Releases

Latest 1.0.0

Features

  • Installs the OpenCode CLI for the Dev Container user with OpenCode’s native installer. Homebrew is not required.
  • Adds opencode to the PATH. The executable and its state stay owned by the user, not root.
  • Option version selects the version to install.
All releases