OpenCode

The open source AI coding agent.

Verifikasi Instalasi

Periksa versi yang terpasang:

opencode --version

Ditambahkan opencode ke PATH Anda melalui: /root/.bashrc

Penggunaan Dasar

1. Navigasi ke proyek Anda:

cd <project>

2. Start OpenCode:

opencode

Jalur Penting

  • Direktori instalasi: /root/.opencode/bin
  • Biner: /root/.opencode/bin/opencode

Mengakses Antarmuka Web

1. Start the OpenCode web server on a specific port (e.g., 8080):

opencode web --port 8080

2. From your local machine, create an SSH tunnel to securely forward the port:

ssh -L 8080:localhost:8080 root@<SERVER_IP>

3. Then open your browser and go to: http://localhost:8080

Rincian Aplikasi