Skip to main content

Cline

Cline is an AI coding assistant built into your editor and terminal. It can read and write files, run terminal commands, use a browser, and help you build features through natural conversation.

Prerequisites

  • You have activated a TCB environment and obtained the environment ID cloudBaseEnvID.

  • Enable the required model in the AI console.

  • Obtain the Base URL and API Key in the AI console.

codebuddy

Configuration Steps

Cline provides both an IDE plugin edition and a terminal CLI edition.

Taking the VS Code Cline plugin as an example

  1. Open the Cline settings and enter the large model configuration information.

The meanings of each field are as follows:

Field to EnterExplanation
API ProviderModel Protocol. CloudBase AI models support multiple protocols. Select the most universal one, OpenAI Compatible, here.
Base URLThe Base URL for the large model, which is obtained in the AI console.
OpenAI Compatible API KeyThe API Key for calling the large model, which is obtained in the AI console.
Model IDThe large model ID. Copy the identifier of an enabled large model from the model list in the AI console and enter it here.

cline1.png

  1. Click Done to complete the setup. Confirm that the model selection is the custom model you just created, and then you can start a conversation.

cline2.png