Checking Kilo Code with a sandbox_ key before you work

Coding with AIKilo Code·· 42 views· 3 min read

With a sandbox_ key, you can check your Kilo Code setup without spending credits or points. The API answers in the right format, but does not call the model. It confirms the address, the key and the model, in the extension and on the command line.

What the Sandbox does

Chat always answers "Resposta de teste (sandbox).", with usage at zero. The model list, the prices and the balance are the real ones. Nothing is charged.

In the VS Code extension

1 In the API Center, create a sandbox_ key with ai:read and ai:write.
2 Create the Custom provider with that key in API key.
3 If the Models list loads, the address and the key are right: the list is the real one, even with the sandbox key.
4 Choose a text model, click Submit and say "hello". The answer should be "Resposta de teste (sandbox).".
5 Then put the prod_ key in API key.

On the command line

1 Save the sandbox_ key in the MOZOUT_API_KEY variable (setx on Windows, export on Linux and macOS) and open a new terminal.
2 Run kilo, choose a MozOut model with /models and say "hello".
3 Once you get the test answer, set the variable to the prod_ key, open a new terminal and run kilo again.

What each result means

What you see What it means
"Resposta de teste (sandbox)." Everything is right. Switch to the prod_ key.
The Models list does not load The Base URL is wrong (the /v1 is missing) or the key is not right.
401 On the command line: the variable does not exist in that window, or the provider is in the project file, which does not read variables. See why the key only works in the global file.
404 model_not_found The id is wrong, is missing the part before the slash, or is not a text model.
404 not_found The /v1 is missing at the end of the address.

Then, the prod_ key

With the sandbox key, Kilo Code always gets the same sentence and cannot write code. Also, a sandbox_ key reads real data from your account: keep it as carefully as a prod_ key.

What the Sandbox answers in each case is in the article on testing in the Sandbox at no cost.

Want to check Kilo Code without spending anything? Visit the Coding with AI page.

See Coding with AI

SEE ALSO

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

Testing All in One AI in the Sandbox at no cost: what each answer looks like

Kilo Code errors: 401, model not found and the /v1 address

Provider ID, Display name and Provider API in Kilo Code: what to fill in

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

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