Kilo Code, the editor extension and its CLI, accepts any OpenAI-compatible endpoint as a custom provider. Add this API once, through the Custom provider dialog or a block in kilo.jsonc that both clients read, and the uncensored builds appear in the model selector and can edit files and run commands through tool calls. The identical ids also work in Cursor, OpenCode and, behind a router, Claude Code.
What you need
Three things: a sk-unr- key from the console, the base URL https://api.unrestrictable.ai/v1, and one or more ids from the models page. Nothing else is downloaded or installed.
Kilo Code reads providers from two places. The extension has a Custom provider entry at the foot of the list under Settings (gear icon) → Providers, beside the providers it ships with; the dialog collects the provider, base URL, key and model ids. The CLI, and every setting the dialog leaves out, uses kilo.jsonc (kilo.json also works): globally at ~/.config/kilo/kilo.jsonc, per project as ./kilo.jsonc or a file under ./.kilo/. Kilo loads both; on a duplicate key the project file wins; the CLI has to be restarted to see an edit. Per the Custom Models docs, a custom model's token limits, tool-calling flag and variants are set in this file whichever client you run.
Switching models: in the extension, the selector above the prompt box or /models; in the CLI, /models.
Shortest path: the extension dialog
- Open Settings → Providers → Custom provider.
- Type
unrestrictableas Provider ID andUnrestrictableas Display name. - Set Provider API to OpenAI Compatible. That option speaks Chat Completions, and this API serves
/v1/chat/completions. The Responses and Messages options target other endpoint shapes. - Base URL is
https://api.unrestrictable.ai/v1; API key is the fullsk-unr-key. - Under Models, once the URL and key check out, Kilo pulls
/v1/modelsinto a searchable picker. Tick what you want or enter ids and display names yourself. These three are a good first set:
glm-5.3-uncensoredglm-5.3-flash-uncensoreddeepseek-v4.1-flash-abliterated- Skip Headers, press Submit. The ids now sit in the model selector of the chat prompt area. Choose one and send something.
To try a build before touching the editor, /chat runs the same models in the browser with three free turns a day and no account, and the Telegram bot gives three free replies a day.
The kilo.jsonc route for the CLI
- Export the key in the shell Kilo will start from:
export UNRESTRICTABLE_API_KEY="sk-unr-live-…"- Drop this provider block into the global
~/.config/kilo/kilo.jsonc. Theproviderkey copies the Kilo docs’ OpenAI-compatible example. Names, prices and limits undermodelscome from the live catalog; any other id on the models page takes the same shape:
{ "$schema": "https://app.kilo.ai/config.json", "model": "openai-compatible/glm-5.3-uncensored", "provider": { "openai-compatible": { "options": { "apiKey": "{env:UNRESTRICTABLE_API_KEY}", "baseURL": "https://api.unrestrictable.ai/v1" }, "models": { "glm-5.3-uncensored": { // add "tool_call": true when the model page confirms tool calls "name": "GLM-5.3 Uncensored", "cost": { "input": 0.282, "output": 0.846, "cache_read": 0.0799 } }, "glm-5.3-flash-uncensored": { // add "tool_call": true when the model page confirms tool calls "name": "GLM-5.3 Flash Uncensored", "cost": { "input": 0.10528, "output": 0.36848, "cache_read": 0.010528 } }, "deepseek-v4.1-flash-abliterated": { // add "tool_call": true when the model page confirms tool calls "name": "DeepSeek V4.1 Flash Abliterated", "cost": { "input": 0.84875, "output": 1.6975, "cache_read": 0.1455 } } } } }}- Run
kiloinside the project.modelmakesglm-5.3-uncensoredthe default,/modelsswaps in another id under openai-compatible for that session, andkilo -m openai-compatible/glm-5.3-uncensoredsets one for a single run.
Kilo resolves {env:UNRESTRICTABLE_API_KEY} only in config it trusts: the global file, a file named in KILO_CONFIG, or one managed by an organization. Put the same reference in a project kilo.jsonc and Kilo warns and ignores it. So either the global file gets the whole block, or the project file keeps the block minus apiKey and only the key sits in the global file.
Each setting, explained
- Provider API
- OpenAI Compatiblethe wire format the dialog speaks, Chat Completions, which is the one this API answers
- Base URL / options.baseURL
- https://api.unrestrictable.ai/v1the destination of every request; keep the trailing /v1. A full /chat/completions URL is also accepted by the dialog
- API key / options.apiKey
- {env:UNRESTRICTABLE_API_KEY}the complete sk-unr- key, pasted into the dialog or pulled from the variable by the global file
- Models / models
- id → { name, … }what the picker lists, each id spelled as on the models page; the object key is what reaches the API unless an `id` field says otherwise
- tool_call
- truemarks the model as able to take tool calls; without it the agent cannot edit files or run commands. Set it when the model page lists tool calls
- limit
- { context, output }context window and maximum reply, in tokens, as the model page gives them. Leave context unset and Kilo stops compacting
- cost
- { input, output, cache_read }USD per million tokens from the catalog, so kilo stats and the session cost line agree with your bill
- model
- openai-compatible/glm-5.3-uncensoredthe default in provider key / model id form; small_model and agent.<name>.model use the same notation
Which build to put in the config
Through the OpenAI Compatible adapter Kilo sends plain OpenAI-format requests, which every build on the models page accepts. Each agent turn resends the whole conversation plus every file and tool result Kilo has gathered, so the bill is mostly input tokens, and a low input price is what makes a turn cheap. The last column shows whether the catalog confirms tool calls for the build; that is the tool_call flag, which the agent loop needs before it can edit or run anything.
| Model | One agent turn | Tool calls |
|---|---|---|
| GLM-5.3 Uncensored | $0.01 | model page |
| GLM-5.3 Flash Uncensored | $0.0047 | model page |
| DeepSeek V4.1 Flash Abliterated | $0.04 | model page |
| DeepSeek V4 Pro Uncensored | $0.04 | model page |
| GLM-5.3 Abliterated | $0.09 | model page |
| GLM-5.3 Flash Code Uncensored | $0.25 | model page |
| GLM-5.3 Uncensored | Uncensored | $0.282 | $0.846 |
| GLM-5.3 Flash Uncensored | Uncensored | $0.1053 | $0.3685 |
| DeepSeek V4.1 Flash Abliterated | Abliterated | $0.8488 | $1.6975 |
| DeepSeek V4 Pro Uncensored | Uncensored | $0.97 | $1.94 |
| GLM-5.3 Abliterated | Abliterated | $2.1825 | $4.365 |
| GLM-5.3 Flash Code Uncensored | Uncensored | $6.00 | $6.00 |
Kilo has three model roles: the main model, a Small Model that writes session titles and commit messages, and a Subagent Model behind the task tool. They live under Settings → Models; in kilo.jsonc they are small_model and subagent_model. Give the small role a fast build and the main role a strong one, and the housekeeping never touches the expensive id. The uncensored coding AI guide goes deeper on the code builds and prices a full day of coding on each.
Verify the connection
Ask the API which ids your key may call. The dialog’s picker makes this exact request, so everything it showed should come back:
curl https://api.unrestrictable.ai/v1/models -H "Authorization: Bearer sk-unr-live-…"Now send a single request shaped like Kilo’s. The -i flag shows the response headers, among them the request id and, when the answer is not streamed, the charge in USD.
curl -i https://api.unrestrictable.ai/v1/chat/completions \ -H "Authorization: Bearer sk-unr-live-…" \ -H "Content-Type: application/json" \ -d '{"model": "glm-5.3-uncensored", "messages": [{"role": "user", "content": "Reply with the single word ok."}]}'For the CLI, make sure the block was read:
kilo models openai-compatibleThe output is the ids under models; kilo config check flags mistakes in the file. Finish by sending a message in Kilo with one of your ids selected. It appears on the console’s usage page with token counts and the charge.
When it fails
- “Invalid API Key” in the dialog,
401 invalid_api_keyon the wire: a wrong or revoked key, orUNRESTRICTABLE_API_KEYwas missing from the shell that launched Kilo andapiKeyarrived empty. Copy the key from the console again, or export it and relaunch. - “Model Not Found” in the dialog,
404 model_not_foundon the wire: no such id on the models page. Compare the spelling. In the file, Kilo sends the key undermodels, never thename. 402 insufficient_balance: the balance cannot cover this request, so add funds in the console. A402 monthly_limit_reachedinstead means the key reached the monthly spend cap you gave it.403 scope_denied: this key is restricted to specific models, and the one requested is outside that set.429 rate_limited: the key is over its rate limit;retry-afterin the response says when to try again.- Nothing in the dialog’s model list: Kilo fetches only after both the base URL and the key are valid. Correct whichever is wrong, press Fetch models, or type the ids in.
- A warning that
{env:UNRESTRICTABLE_API_KEY}was ignored: the reference lives in a project-levelkilo.jsonc. Relocate the block to~/.config/kilo/kilo.jsoncor pointKILO_CONFIGat the file. kilo modelsleaves the provider out: themodelvalue does not matchprovider key / model keyfrom the block, or the CLI is still running the pre-edit config.kilo debug configshows what was loaded.- The agent describes an edit and stops: that model has no
tool_call, so Kilo sent no tools. Once the model page lists tool calls, add"tool_call": trueto its entry. - Requests start failing as the conversation grows:
limit.contextis missing, Kilo treats it as zero and never compacts. Fill inlimitfrom the model page. - Connection errors after entering a full URL as Base URL: that form must end in
/chat/completions. Plainhttps://api.unrestrictable.ai/v1avoids the question.
Questions
It can. The Custom provider dialog in the Providers settings has an OpenAI Compatible choice under Provider API for Chat Completions endpoints, and kilo.jsonc accepts the same provider as a block with baseURL and apiKey. Because this API is that kind of endpoint, either route described above is all the setup there is.
The whole key from this console, prefix sk-unr- included. The dialog takes it directly in API key. The file reads it from an environment variable through {env:…}, and Kilo only honors that reference in the global config or a file passed through KILO_CONFIG, not in a project file.
No. Every provider shows up next to the others in the model selector and in /models, so this one is an extra entry. A whitelist on the provider block trims what it offers, and the per-agent model keys can send a subagent to a cheaper id while the main agent keeps a strong one.
On the builds that accept tool calls, yes, and Kilo includes tools only when tool_call is true for the model. The table above marks the builds the catalog confirms; for the others, check the model page and add the flag once it lists tool calls. See the models page.
Every model above is on the uncensored model list with its live price per million tokens. Per-token pricing sets the whole catalog side by side, and the family directory groups the builds by base model.