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:
- An Entrim account with Model API credits
- An Entrim API key
- The Cline extension, installed from the VS Code Marketplace or your editor's extension store
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:
| Field | Value |
|---|---|
| Base URL | https://api.entrim.ai/v1 |
| API Key | Your Entrim API key |
| Model ID | zai-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:
| Setting | Value |
|---|---|
| Supports Images | On |
| Context Window Size | 1048576 |
| Max Output Tokens | 131072 |
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
| Problem | Fix |
|---|---|
| The Model ID list stays empty | Check that the base URL ends in /v1 and that the key is correct. You can also type the model ID in yourself. |
401 errors | The 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 early | Set Context Window Size and Max Output Tokens in Model Configuration as described above. |