opencode install guide

Get opencode on macOS and Linux Now!

The open source coding agent

opencode one-command setup card, ai agent, for macOS and Linux, 211k stars on the project's repository
★ 211k stars macOS and Linux README verified

Get opencode with one command

Pick your system, reveal the step-by-step guide, copy the command, paste it into your terminal and press Enter. This command was taken from the project's own documentation and checked against it.

PowerShell not published

What opencode does

  • Standard user binary directory (if it exists or can be created)
  • XDG Base Directory Specification compliant path

Summarised from opencode's own README.

About opencode

The open source coding agent

CategoryAI agent
Install methodshell one-liner (curl | bash)
Windowsno install command published
macOS / Linuxdocumented install command available
PriceFree and open source
Command verifiedYes — checked against the project README
Popularity211k stars on the project's public repository

On mobile

opencode is a command-line tool, so there is no phone app for it — a phone has no shell to run it in. You'll need a desktop, or a remote shell into a machine that has one.

opencode is developed by its own authors. This page is an independent reference; we are not affiliated with or sponsored by the project. The command shown here was reproduced from the project's public documentation — always check the project's own documentation before running anything.