Cline
Connect Cline to Model Gate using its OpenAI-compatible provider.
Cline through Model Gate
- Open the Cline settings.
- Select an OpenAI-compatible provider.
- Set Base URL:
https://api.model-gate.com/v1
- Set API key:
mg_live_...
- Enter a canonical model ID or enabled alias from
/v1/models. - Save and send a test prompt.
Test request
curl https://api.model-gate.com/v1/chat/completions \
-H "Authorization: Bearer mg_live_..." \
-H "Content-Type: application/json" \
-d '{"model":"ch-46s","messages":[{"role":"user","content":"Reply with OK"}]}'
If Cline exposes separate model context/input/output limits, use context_window, max_input_tokens, and max_output_tokens from the corresponding authenticated /v1/models object (or the Context, Max input, and Max output values shown on the authenticated /models page). A value of 0 means the limit is not configured in Model Gate; leave that manual client setting unset instead of guessing.