> ## 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

> Bu rehber, Harogo destekli OpenCode'u birkaç dakika içinde kullanmaya başlamanıza yardımcı olur.

Kuruluma başlamadan önce sisteminizin aşağıdaki gereksinimleri karşıladığından emin olun:

* **Node.js ≥ 18.0.0**
* Platformunuza uygun bir paket yöneticisi (isteğe bağlı):
  * macOS / Linux: `brew`
  * Arch Linux: `paru`
  * Windows: `choco`, `winget` veya `scoop`

## 1. OpenCode'u Kurun

Sisteminize ve araçlarınıza uygun kurulum yöntemini seçin.

### 1. Node.js ile Kurulum

```text theme={null}
# curl betiğiyle hızlı kurulum
curl -fsSL https://opencode.ai/install | bash

# NPM ile
npm install -g opencode-ai

# Bun ile
bun install -g opencode-ai

# PNPM ile
pnpm install -g opencode-ai

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

***

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

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

***

### 3. Paru ile (Arch Linux)

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

***

### 4. Windows Kurulumu

Windows kullanıcıları OpenCode'u aşağıdakilerden herhangi biriyle kurabilir:

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

# WinGet
winget install opencode

# Scoop
scoop bucket add extras
scoop install extras/opencode

# Veya NPM ile (Node.js gerektirir) — not: yönetici yetkisi gerektirir
npm install -g opencode-ai
```

***

## 2. OpenCode'u CC Switch ile Yapılandırın

1. CC Switch'i açın, soldan OpenCode'u seçin ve ardından "Sağlayıcı Ekle" (Add Provider) seçeneğine tıklayın.

![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. Hazır ayarlar listesinden sağlayıcı olarak "Özel Yapılandırma" (Custom Configuration) seçeneğini seçin.

![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. Sağlayıcı anahtarı, ad, API anahtarı ve uç nokta (`https://api.harogo.ai/v1`) gibi bilgileri doldurun.

![Sağlayıcı yapılandırma formunun doldurulması](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. Model bilgilerini doldurun ve kaydedin.

![Model yapılandırmasının doldurulması](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. Ana ekrana döndüğünüzde sağlayıcı listesinden "harogo"yu seçin ve "Kullan" (Use) seçeneğine tıklayın.

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

***

## 3. Modeli Kullanma

### 1. Kurulumu Doğrulayın

OpenCode'un doğru şekilde kurulup yapılandırıldığını aşağıdaki komutla doğrulayabilirsiniz:

```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. Bir Model Seçin

`/models` yazın, `harogo` için arama yapın ve istediğiniz modeli seçin.

![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.