Cline
Moth DocsTutorials
Cline, the coding agent for VS Code, works with any Moth chat model through its OpenAI Compatible provider.
Pick the provider
Open Cline's settings and set API Provider to OpenAI Compatible.
Fill in the fields
Base URL
https://api.runmoth.si/v1, API Key yourmoth_key, and Model ID a Moth ID such asclaude-sonnet-4.6.Set the model's size
Under Model Configuration set Context Window to the model's
context_lengthfrom the catalog, 200000 forclaude-sonnet-4.6, and Max Output Tokens to 8192.Check it worked
Ask Cline to read a file in your workspace. Reading a file is a tool call, so a good answer shows tools work too.
Cline sends its tools with every request, so pick a model whose capabilities.tools is true, which is every chat model except claude-fable-5. A context window set higher than the model's own makes long tasks fail, and one set lower cuts the context Cline keeps.
Large outputs hold more. Each call holds its worst case from your balance until it ends, and the worst case grows with the output size a tool asks for. You still pay only what the model used, but a cap on the key keeps any tool from holding or spending more than you meant. Keys and their limits.
A request a model can't take is refused with a 400 that says why. Some tools send stop sequences, which the GPT, Grok, DeepSeek and Kimi models refuse, so pick a Claude or Gemini model if you see that. What is removed lists every setting and what happens to it.