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). Under dynamic context stacking, Context Window Size is the total context window (context_length), shared between prompt and output.
Current values for every model are also advertised as
context_length and
max_output_tokens in GET /v1/models.