> ## Documentation Index
> Fetch the complete documentation index at: https://docs.harogo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenCode

> Mit dieser Anleitung nutzen Sie OpenCode mit Harogo in wenigen Minuten.

Stellen Sie vor der Installation sicher, dass Ihr System die folgenden Voraussetzungen erfüllt:

* **Node.js ≥ 18.0.0**
* Ein Paketmanager für Ihre Plattform (optional):
  * macOS / Linux: `brew`
  * Arch Linux: `paru`
  * Windows: `choco`, `winget` oder `scoop`

## 1. OpenCode installieren

Wählen Sie die Installationsmethode, die zu Ihrem System und Ihren Tools passt.

### 1. Installation über Node.js

```text theme={null}
# Schnellinstallation per curl-Skript
curl -fsSL https://opencode.ai/install | bash

# Mit NPM
npm install -g opencode-ai

# Mit Bun
bun install -g opencode-ai

# Mit PNPM
pnpm install -g opencode-ai

# Mit Yarn
yarn global add opencode-ai
```

***

### 2. Mit Homebrew (macOS / Linux)

```text theme={null}
brew install sst/tap/opencode
```

***

### 3. Mit Paru (Arch Linux)

```text theme={null}
paru -S opencode-bin
```

***

### 4. Installation unter Windows

Unter Windows können Sie OpenCode auf eine der folgenden Arten installieren:

```text theme={null}
# Chocolatey
choco install opencode

# WinGet
winget install opencode

# Scoop
scoop bucket add extras
scoop install extras/opencode

# Oder über NPM (erfordert Node.js) – Hinweis: Administratorrechte erforderlich
npm install -g opencode-ai
```

***

## 2. OpenCode über CC Switch konfigurieren

1. Starten Sie CC Switch, wählen Sie links OpenCode aus und klicken Sie auf „Anbieter hinzufügen“ (Add Provider).

![I Shot 2026 08 07 18 06 55](https://mintcdn.com/harogo-7197ea09/rMeOx--1khpclmo0/images/iShot_2026-08-07_18.06.55.png?fit=max\&auto=format\&n=rMeOx--1khpclmo0\&q=85\&s=880954efc6e217eab4b1904f5498fabb)

2. Wählen Sie in der Vorlagenliste „Benutzerdefinierte Konfiguration“ (Custom Configuration) als Anbieter aus.

![I Shot 2026 08 07 18 07 24](https://mintcdn.com/harogo-7197ea09/rMeOx--1khpclmo0/images/iShot_2026-08-07_18.07.24.png?fit=max\&auto=format\&n=rMeOx--1khpclmo0\&q=85\&s=5501bd2b23e7ec701c72265786e0e8d5)

3. Tragen Sie Anbieter-Key, Name, API-Key, Endpoint (`https://api.harogo.ai/v1`) usw. ein.

![Ausfüllen des Formulars für die Anbieterkonfiguration](https://mintcdn.com/harogo-7197ea09/rMeOx--1khpclmo0/images/iShot_2026-08-07_18.16.46.png?fit=max\&auto=format\&n=rMeOx--1khpclmo0\&q=85\&s=77331925513541de6e85b767c5648124)

4. Tragen Sie die Modellinformationen ein und speichern Sie.

![Ausfüllen der Modellkonfiguration](https://mintcdn.com/harogo-7197ea09/rMeOx--1khpclmo0/images/iShot_2026-08-07_18.18.44.png?fit=max\&auto=format\&n=rMeOx--1khpclmo0\&q=85\&s=11e799c6d82a3b52ec8ff82b20574c71)

5. Wählen Sie auf dem Startbildschirm in der Anbieterliste „harogo“ aus und klicken Sie auf „Verwenden“ (Use).

![11](https://mintcdn.com/harogo-7197ea09/rMeOx--1khpclmo0/images/11.png?fit=max\&auto=format\&n=rMeOx--1khpclmo0\&q=85\&s=3803b5b5382d04730ab8aedb549c2fbf)

***

## 3. Das Modell verwenden

### 1. Installation prüfen

Mit dem folgenden Befehl prüfen Sie, ob OpenCode korrekt installiert und konfiguriert ist:

```text theme={null}
opencode
```

![Opencode 3](https://mintcdn.com/harogo-7197ea09/rMeOx--1khpclmo0/images/iShot_2026-08-07_18.21.30.png?fit=max\&auto=format\&n=rMeOx--1khpclmo0\&q=85\&s=b4aeb0326bda3970e3fe16f3cfc807f3)

### 2. Modell auswählen

Geben Sie `/models` ein, suchen Sie nach `harogo` und wählen Sie das gewünschte Modell aus.

![Opencode 4](https://mintcdn.com/harogo-7197ea09/rMeOx--1khpclmo0/images/iShot_2026-08-07_18.22.23.png?fit=max\&auto=format\&n=rMeOx--1khpclmo0\&q=85\&s=72ede75376d54c65f9756960cb0ef0c1)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.