OpenCode is a programming agent product. Its interface, configuration items, and supported capabilities may change with different OpenCode versions. This article demonstrates how to forward OpenCode model requests to the Kimi API through built-in authentication, based on the official Kimi API calling method.
Install OpenCode
The easiest way to install OpenCode is through the installation script.Configure API Key
Runopencode auth login and select Moonshot AI.
opencode to start OpenCode.
/models command to select the Kimi K2.7 Code model.