Skip to main content
Before you install, make sure your system meets the following requirements:
  • Node.js ≥ 18.0.0
  • A package manager for your platform (optional):
    • macOS / Linux: brew
    • Arch Linux: paru
    • Windows: choco, winget, or scoop

1. Install OpenCode

Pick whichever installation method fits your system and tooling.

1. Install via Node.js


2. Using Homebrew (macOS / Linux)


3. Using Paru (Arch Linux)


4. Windows Installation

Windows users can install OpenCode with any of the following:

2. Configure OpenCode via CC Switch

  1. Launch CC Switch, select OpenCode on the left, then click “Add Provider.”
I Shot 2026 08 07 18 06 55
  1. From the preset list, choose “Custom Configuration” as the provider.
I Shot 2026 08 07 18 07 24
  1. Fill in the provider key, name, API key, and endpoint (“https://api.harogo.ai/v1”), etc.
Filling in the provider configuration form
  1. Fill in the model information, then save.
Filling in the model configuration
  1. Back on the home screen, select “harogo” from the provider list and click “Use.”
11

3. Using the Model

1. Verify the Installation

You can verify that OpenCode installed and configured correctly with the following command:
Opencode 3

2. Select a Model

Type /models, search for harogo, and pick the model you want. Opencode 4