Skip to main content

Cline

Cline is an open-source coding agent that runs inside VS Code and other editors. Its OpenAI Compatible provider connects it to Entrim.

Prerequisites​

To follow this guide, you need:


Set up Cline​

1. Open Cline's settings​

Open the Cline panel and select the settings (gear) icon.

2. Choose the provider​

In API Provider, choose OpenAI Compatible.

3. Connect to Entrim​

Fill in the connection fields:

FieldValue
Base URLhttps://api.entrim.ai/v1
API KeyYour Entrim API key
Model IDzai-org/GLM-5.3-Flash

Once the base URL and key are in, Cline loads the models your key can use, so you can pick the model from the Model ID list.

4. Describe the model​

Open Model Configuration and set the model's capabilities and limits:

SettingValue
Supports ImagesOn
Context Window Size1048576
Max Output Tokens131072

The limits come from max_input_tokens and max_output_tokens in GET /v1/models. To have Cline estimate costs, you can also enter the model's prices from the model library in Input Price / 1M tokens and Output Price / 1M tokens.


Check that it works​

Open a project and ask Cline for something that needs its tools, for example "List the files in this folder and summarise what the project does." Cline should read the files and answer using the Entrim model.

Troubleshooting​

ProblemFix
The Model ID list stays emptyCheck that the base URL ends in /v1 and that the key is correct. You can also type the model ID in yourself.
401 errorsThe API key is missing or invalid. Paste it again from the dashboard.
400 "Invalid model name"The model ID doesn't match an Entrim model. Compare it with GET /v1/models, including upper and lower case.
Cline says the context window is full too earlySet Context Window Size and Max Output Tokens in Model Configuration as described above.