Cara Install OpenCode

Ikuti panduan berikut untuk menghubungkan OpenCode ke Guru Code API

1. Install OpenCode via Winget

# Buka PowerShell sebagai Administrator winget install opencode

2. Buat file konfigurasi

Buat file opencode.json di folder project kamu:

{ "api": { "baseUrl": "https://gurucode.huedaya.com/v1", "key": "token_yang_diberikan_guru" } }

3. Jalankan OpenCode

opencode

1. Install OpenCode

# Download dan install curl -fsSL https://opencode.ai/install.sh | sh

2. Buat file konfigurasi

Buat file ~/.config/opencode/opencode.json:

mkdir -p ~/.config/opencode cat > ~/.config/opencode/opencode.json <<EOF { "api": { "baseUrl": "https://gurucode.huedaya.com/v1", "key": "token_yang_diberikan_guru" } } EOF

3. Jalankan OpenCode

opencode