OpenCode

The open source AI coding agent.

インストールを確認する

インストールされているバージョンを確認してください:

opencode --version

Added opencode to your PATH via: /root/.bashrc

Basic Usage

1. Navigate to your project:

cd <project>

2. Start OpenCode:

opencode

重要な経路

  • インストール先ディレクトリ: /root/.opencode/bin
  • バイナリ: /root/.opencode/bin/opencode

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

申請内容