Cline with All in One AI: the OpenAI Compatible provider, field by field

All in One AI·· 24 views· 4 min read

Cline is a VS Code extension that codes with you: it reads the project, edits files and runs commands, with your permission. With the OpenAI Compatible provider, it uses All in One AI models, with the MozOut key. You set it up in the extension settings, with no files.

Before you start

1 Create a key in the API Center with the ai:read and ai:write permissions. Use a sandbox_ key to check the setup without spending and a prod_ key to work. The fields are explained in creating an API key.
2 Have AI credits or an active Coding Plan in All in One AI.
3 Have the Cline extension installed in VS Code.

Field by field

1 Open the Cline settings (the gear icon).
2 In API Provider, choose OpenAI Compatible.
3 In Base URL, type https://api.mozout.com/v1.
4 In API Key, paste your key.
5 In Model ID, type the model id, for example moonshotai/kimi-k2.7-code.
6 In Model Configuration, put the model's context in Context Window (262144 for this one) and 16000 in Max Output Tokens. Leave the rest as it is.

We reserve credits for the maximum output the tool asks for in each answer. That is why the examples ask for 16,000 tokens: it is enough for coding and needs a smaller balance than a higher value. Each model's context is in the table below and in the context_length field of the model list.

Checking it works

Start a new task in Cline and say "hello". With a sandbox_ key, the answer is always "Resposta de teste (sandbox).". Then switch to the prod_ key in API Key: with the sandbox one, Cline cannot write code.

Another model

Cline uses the model in Model ID. To change it, replace the id and adjust Context Window. Use a model that supports tools:

Model Context What for
moonshotai/kimi-k2.7-code 262,144 tokens Built for coding: the starting point for everyday work.
deepseek-ai/deepseek-v4-pro 1,048,576 tokens Strong reasoning, for big changes and hard bugs.
zai-org/glm-5.2 1,048,576 tokens Made for agents: handles tools well in long tasks.
deepseek-ai/deepseek-v4-flash 1,048,576 tokens Fast and cheap, for background tasks and short questions.

The ids are in the Models tab of All in One AI or in the API list. On Linux and macOS:

curl "https://api.mozout.com/v1/models?type=text" -H "Authorization: Bearer $MOZOUT_API_KEY"

In Windows PowerShell:

curl.exe "https://api.mozout.com/v1/models?type=text" -H "Authorization: Bearer $env:MOZOUT_API_KEY"

Each model comes with its id (always with the slash), its context_length and its price in pricing. Listing the models spends no credits.

For Cline to create images, video and voice, see the MCP server in Cursor, Windsurf and Cline. If you used Roo Code: the extension was discontinued on 15 May 2026, and its page points to Cline as an alternative. The steps are the same.

Want our models in Cline? Visit the Coding with AI page.

See Coding with AI

SEE ALSO

The All in One AI MCP server in Cursor, Windsurf and Cline: the file for each one

Kilo Code with All in One AI: the custom provider in VS Code and kilo.jsonc in the CLI

Which coding tool to use with All in One AI: OpenCode, Claude Code, Codex, Cursor, Cline, Kilo Code or Aider

Errors when setting up a tool with All in One AI: 401, model not found, no credits, /v1 and rejected config files

Coding with AI in All in One AI

RECOMMENDED PRODUCT

Web hosting with cPanel

Domain and SSL included, daily backups and the panel you already know. from R118.80/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.