Official reference documentation: https://opencode.ai/docs/zh-cn
Description
You need to first flash the Debian12 system image on the LCSC-TaishanPi-3M-RK3576 development board, and then follow the steps below to install Docker.
Note: Before proceeding, please ensure that the LCSC-TaishanPi-3M-RK3576 is connected to the network!
Installation
Simply use the official installation script:
curl -fsSL https://opencode.ai/install | bashAfter installation is complete, restart the SSH terminal, then verify that OpenCode is installed successfully using the opencode --version command:
lckfb@TaishanPi-3M:~$ opencode --version
OpenCode CLI version 0.1.02
Opening the OpenCode Interactive Terminal
Note
Use opencode to open the interactive terminal. It is recommended to use SSH to connect to the development board's terminal for operations. Do not use the serial terminal, as the serial terminal may have input issues that could prevent normal use of opencode.
Enter the opencode command to open the interactive terminal:
Enter
exitin the command line to exit the interactive terminal.
Testing
Use OpenCode's free model for testing.
Enter the following command in the opencode interactive terminal to test:
介绍一下你自己OpenCode Basic Usage
The official documentation provides very detailed tutorials. It is recommended to refer to the official documentation to learn how to use OpenCode to complete various code-related tasks: