Cline
In Cline settings:- API Provider → OpenAI Compatible
- Base URL:
https://api.openference.com/v1 - API Key: your Openference API key
- Model ID:
GLM-5.2(or another ID from the Models page)
Set the context window size
Cline (and forks like Roo Code and Kilo Code) default OpenAI-compatible providers to a 128k context window and start auto-compacting the conversation well before that (~100k tokens). To use the full context of larger models, open the model configuration for the OpenAI Compatible provider and set Context Window Size (and Max Output Tokens, where available). The Context Window Size is the safe input budget — the model’s total context wall minus Max Output Tokens, with a small ~2% safety buffer. Models with a smaller output cap get a larger input budget.
Current values for every model are also advertised as
context_length and
max_output_tokens in GET /v1/models.