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

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

Almost every error when setting up a tool with All in One AI comes from four things: the key, the address, the model id and the configuration file. Here are the API answers and the file errors, with what to do in each case.

API answers

Answer Why What to do
401 unauthorized The key is missing or wrong, or the tool did not read the variable. Check the key. After setx, close and open the terminal and the tool.
403 insufficient_scope The key does not have ai:write. Create a key with ai:read and ai:write.
403 account_... The All in One AI account is not active. Open All in One AI and check the account status.
402 insufficient_credits There are not enough credits to cover the reservation for the answer. Buy credits or lower the maximum output (16,000 in our examples).
404 model_not_found The model id is wrong or incomplete. Use the id with the slash, as it comes in GET /v1/models.
404 not_found The base address is wrong: an extra /v1 in Claude Code, or a missing one in the others. Claude Code: https://api.interweb.co.mz. The others: https://api.interweb.co.mz/v1.
429 plan_limit_reached The plan points have run out and the request cannot be paid with credits. Wait for the reset or turn on Use credits when the plan runs out.
429 rate_limited You went over the key's limit of requests per minute. Wait the number of seconds in Retry-After. The tools usually retry on their own.
502 upstream_error The AI service did not respond as expected. Try again shortly or choose another model.

In Claude Code, errors arrive in the Anthropic format. In Codex, in the OpenAI format, with the same code. The limits are in API request limits.

The configuration file was rejected

What happens What to do
OpenCode says Unrecognized key: "providers". Your version does not know the new format. Use the format with "provider" from the OpenCode article.
The tool does not start, or ignores the file after a change. The JSON has a missing or extra comma. Items are separated by commas and the last one has none.
Nothing changes, as if the file did not exist. On Windows, the file may have ended up with a hidden .txt at the end. Check with dir and fix the name.
Codex rejects the provider. wire_api must be "responses". The provider id cannot be openai, ollama or lmstudio. And the provider must be in ~/.codex/config.toml, not in the project file.
Hermes Agent fails to read config.yaml. In YAML, the spaces at the start of the line matter. The fields of model: take two spaces.
Kilo Code's {env:...} does not work. It only works in the global file, in ~/.config/kilo/. A project file does not read variables.

Other signs

What you see Why
A model does not show in the tool's list. In OpenCode, Kilo Code (command line) and OpenClaw, only the models written in the file show. Add the catalogue id.
The answer is always "Resposta de teste (sandbox).". You are using a sandbox_ key. Everything is right: switch to the prod_ key to work.
The agent answers but does not edit files. The model does not support tools (function calling). Use moonshotai/kimi-k2.7-code, zai-org/glm-5.2 or deepseek-ai/deepseek-v4-pro.
The variable exists, but the tool does not see it. setx only applies to new windows. Close the tool and the terminal completely, then open them again.
Never send the key by chat, e-mail or support ticket. If that happened, revoke it and create another: see what to do, in the right order.
Every error answer has a correlation_id. If you need help, open a support ticket with that code, the tool and the model, without the key.

Want to code with AI using our models? Visit the Coding with AI page.

See Coding with AI

SEE ALSO

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

OpenCode with All in One AI: creating opencode.json from scratch, the key and the models

Using Claude Code with All in One AI: the variables, the model and common errors

API request limits: per key, per account and per task, the headers and what to do after a 429

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 $5.36/mo (3-year plan, with coupon)

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