Answer: Install opencode via npm with npm install -g @opencode/cli, via Homebrew with brew install anomalyco/tap/opencode-v2, or via curl with curl -fsSL https://opencode.ai/v2/install | bash. Status: Confirmed Entry: tool/opencode/install-and-setup/install-opencode-cli Revision: 1 Digest: sha256:8e50552c24073253 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:55:25Z Last changed: 2026-11-13T03:55:25Z Last verified: 2026-11-20T13:44:11Z Next check: 2026-11-21T13:44:11Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of npm command | npm install -g @opencode/cli | [1] | 2026-11-20 Homebrew command | brew install anomalyco/tap/opencode-v2 | [1] | 2026-11-20 curl command | curl -fsSL https://opencode.ai/v2/install | bash | [1] | 2026-11-20 Sources: [1] opencode. "Intro | OpenCode". https://opencode.ai/docs/ Role: primary. Accessed: 2026-11-20T13:44:11Z Quote: "npm install -g @opencode/cli" (Supports: npm command) Quote: "brew install anomalyco/tap/opencode-v2" (Supports: Homebrew command) Quote: "curl -fsSL https://opencode.ai/v2/install | bash" (Supports: curl command) Snapshot SHA-256: 6616f6a53b5cff5f9c5a0836bf3a84bd429254369e8aa339446befbb1f202f5d (captured 2026-11-13T03:55:25Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:55:25Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:44:11Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:44:11Z Last attempt: 2026-11-20T13:44:11Z Notes and limitations: Extracted automatically from a single official source (section "CLI"). Related: https://latestn.com/tool/opencode/install-and-setup/install-sdk How do I install the opencode SDK? https://latestn.com/tool/opencode/install-and-setup/install-v2-over-v1 How do I install opencode V2 when V1 is already installed? https://latestn.com/tool/opencode/install-and-setup/subscribe-and-connect-go How do I subscribe to OpenCode Go and connect it in the TUI? https://latestn.com/tool/opencode/install-and-setup/install-effect-plugin-package How do I install the Effect plugin package for opencode plugins? https://latestn.com/tool/opencode/install-and-setup/install-effect-sdk How do I install the opencode Effect SDK? https://latestn.com/tool/opencode/install-and-setup/install-javascript-client How do I install the opencode JavaScript client? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:55:25Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/install-and-setup/install-opencode-cli/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/opencode/install-and-setup/install-opencode-cli POST: https://latestn.com/dispute/tool/opencode/install-and-setup/install-opencode-cli with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/install-and-setup/install-opencode-cli?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I install opencode via npm, Homebrew, or curl? Revision 1, last verified 2026-11-20T13:44:11Z. https://latestn.com/tool/opencode/install-and-setup/install-opencode-cli (accessed 2026-11-21T09:50:24Z). @misc{LatestN_tool_opencode_install_and_setup_install_opencode_cli_r1, title = {How do I install opencode via npm, Homebrew, or curl?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/install-and-setup/install-opencode-cli}}, note = {Revision 1; digest sha256:8e50552c24073253; last verified 2026-11-20T13:44:11Z; accessed 2026-11-21T09:50:24Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/opencode/install-and-setup/install-opencode-cli