Skip to content

Quick Start

Get up and running with Opencode in less than 5 minutes.

Prerequisites

  • macOS or Linux (Windows WSL2 supported)
  • Node.js 18+ (for some language servers)
  • An API Key (OpenAI, Anthropic, or Gemini)

Installation

Run the following command in your terminal to download and install the binary:

curl -sL opencode.ai/install | bash

Authenticating

Once installed, run opencode auth to configure your preferred provider.

opencode auth --provider anthropic

Your First Task

Navigate to a project directory and start the agent:

opencode start

Then, just type your request: “Refactor the login component to use hooks.”