---
title: "Roo Code OpenAI Compatible setup for uncensored models"
canonical: https://unrestrictable.ai/guides/roo-code
generated: 2026-11-16T02:57:36.842Z
source: https://unrestrictable.ai/guides/roo-code
base_url: https://api.unrestrictable.ai/v1
---

# Uncensored models in Roo Code

Point the OpenAI Compatible provider at the API, fill Model Configuration from the live catalog, give each mode its own profile, and read what a turn costs.

Steps checked November 2, 2026 · prices as of November 16, 2026

The OpenAI Compatible provider is how Roo Code reaches an endpoint it does not ship with. You give it a Base URL, a key and a model id, then fill in the Model Configuration block yourself, because Roo Code holds no record of a model it has never met. Below, that block comes straight from the live catalog and each mode gets its own profile, so Code, Ask, Architect and Debug all run on an uncensored build, tool calls included. The same ids also go into [Cursor](https://unrestrictable.ai/guides/cursor) and [OpenCode](https://unrestrictable.ai/guides/opencode), and by way of a router into [Claude Code](https://unrestrictable.ai/guides/claude-code).

## What you need

VS Code with Roo Code installed, a key from the [console](https://app.unrestrictable.ai/console), and a few minutes. All of the configuration happens inside the Roo Code panel: the gear icon at its top opens Settings on the **Providers** tab, which holds the **API Provider** dropdown, the connection fields and the **Model Configuration** block. There is no provider config file to edit.

One caution before you start. The **Export** button at the foot of Settings writes `roo-code-settings.json` with your key in the clear. Guard that file as you would guard the key.

## First reply

1. Make a key in the [console](https://app.unrestrictable.ai/console).
2. On the Providers tab, press **+** beside the profile selector and give the new profile a name, say `Unrestrictable Code`.
3. Enter the four values below. The Model field arrives filled with an OpenAI id; overwrite it.

```
API Provider   OpenAI Compatible
Base URL       https://api.unrestrictable.ai/v1
API Key        sk-unr-live-…
Model          glm-5.3-uncensored
```

1. With Base URL and API Key saved, Roo Code pulls the model list from the API and the ids show up in the Model picker. Typing an id works as well, provided it matches the [models page](https://unrestrictable.ai/models) letter for letter. The three ids most often used from Roo Code here:

```
glm-5.3-uncensored
glm-5.3-flash-uncensored
deepseek-v4.1-flash-abliterated
```

1. Fill in **Model Configuration** for that id. Roo Code cannot look these numbers up for a custom model, and they decide how much context it keeps, which output cap it sends and what cost it displays. The table is rendered from the live catalog; take the row for your id.

| Model | Context Window Size | Max Output Tokens | Input Price | Output Price | Image Support |
| --- | --- | --- | --- | --- | --- |
| `glm-5.3-uncensored` | [model page](https://unrestrictable.ai/models/glm-5.3-uncensored) | [model page](https://unrestrictable.ai/models/glm-5.3-uncensored) | 0.282 | 0.846 | [model page](https://unrestrictable.ai/models/glm-5.3-uncensored) |
| `glm-5.3-flash-uncensored` | [model page](https://unrestrictable.ai/models/glm-5.3-flash-uncensored) | [model page](https://unrestrictable.ai/models/glm-5.3-flash-uncensored) | 0.1053 | 0.3685 | [model page](https://unrestrictable.ai/models/glm-5.3-flash-uncensored) |
| `deepseek-v4.1-flash-abliterated` | [model page](https://unrestrictable.ai/models/deepseek-v4.1-flash-abliterated) | [model page](https://unrestrictable.ai/models/deepseek-v4.1-flash-abliterated) | 0.8488 | 1.6975 | [model page](https://unrestrictable.ai/models/deepseek-v4.1-flash-abliterated) |

USD per million tokens, the unit the two price fields expect, as the catalog listed them on 2026-11-16.

1. Keep the checkboxes as they come. **Enable streaming** stays on, and so does **Include max output tokens**. **Use Azure**, **Enable R1 model parameters**, **Prompt Caching** and **Enable Reasoning Effort** all stay off. Leave **Custom Headers** blank; this API wants none.
2. Close Settings and type a message in **Code** mode. Under the chat input, the **API Configuration** dropdown names the active profile. The mode selector on its left changes modes, and so does `/code`, `/ask`, `/architect` or `/debug` as the first word of a message.

No install needed to try the same models first: the [browser chat](https://unrestrictable.ai/chat) gives three free turns a day without an account.

## Profiles and modes

Settings live inside a **profile**. The selector at the top of the Providers tab and the **API Configuration** dropdown in the chat are two views of one list. Each of the five modes (**Code**, **Ask**, **Architect**, **Debug**, **Orchestrator**) recalls the profile you last picked while in it. Subtasks spawned by Orchestrator run on the parent task’s profile. A task you resume from history stays on the profile it began with, whatever the global selector says now.

Most people end up with two profiles: a strong build for Code and Debug, a fast one for Ask and Architect. Press **+** once more, reuse the Base URL and API Key, enter the second id and its Model Configuration row. From then on Roo Code changes profile with the mode. The Prompts tab can also bind a profile to a mode for good.

## Each field, explained

- API Provider: OpenAI Compatible the only provider type with a Base URL field; the plain OpenAI entry has none
- Base URL: https://api.unrestrictable.ai/v1 the root of every request; keep the trailing /v1, since Roo Code adds /chat/completions and /models to it
- API Key: the whole sk-unr- key goes out as the bearer token; lands in VS Code Secret Storage and is never displayed again
- Model: glm-5.3-uncensored the id Roo Code puts in each request; chosen from the fetched list or typed, spelled as on the models page
- Context Window Size: from the table above how many tokens the model accepts in total; Roo Code trims and condenses against it
- Max Output Tokens: from the table above the cap sent while Include max output tokens is on; -1 leaves it to the server
- Input Price / Output Price: from the table above USD per million tokens; feeds only the in-chat estimate, the console is the bill
- Image Support: on or off per the table decides whether screenshots and pasted images ride along with requests
- Computer Use: off the browser tool, listed under Model Configuration in the docs; off for a text build
- Prompt Caching: off exposes Cache Reads Price and Cache Writes Price for the estimate; cached tokens are counted by the console regardless
- Enable streaming: on tokens show as the model produces them; off makes Roo Code wait for the full reply
- Enable R1 model parameters: off the message format of that reasoning family; no id on this page needs it
- Use Azure: off Azure-style URL and api-version handling, which this API does not use
- Custom Headers: none extra request headers; the key already goes in Authorization
- Rate Limit: 0 the fewest seconds between two requests on this profile; 0 turns it off

## Which model

Every build on the models page speaks the OpenAI request format, which is what Roo Code sends. What matters more is tool calling: Roo Code’s agent loop uses native tool calls and nothing else, with no XML fallback, so a build that cannot return a tool call cannot edit a file. The right-hand column answers that from the catalog, and the model page answers it where the catalog is silent. On cost, a turn deep into a task resends the whole conversation, every file read and every tool result, so input tokens dominate and the input price is the number to compare.

| Model | One agent turn | Tool calls |
| --- | --- | --- |
| [GLM-5.3 Uncensored](https://unrestrictable.ai/models/glm-5.3-uncensored) | $0.01 | [model page](https://unrestrictable.ai/models/glm-5.3-uncensored) |
| [GLM-5.3 Flash Uncensored](https://unrestrictable.ai/models/glm-5.3-flash-uncensored) | $0.0047 | [model page](https://unrestrictable.ai/models/glm-5.3-flash-uncensored) |
| [DeepSeek V4.1 Flash Abliterated](https://unrestrictable.ai/models/deepseek-v4.1-flash-abliterated) | $0.04 | [model page](https://unrestrictable.ai/models/deepseek-v4.1-flash-abliterated) |
| [DeepSeek V4 Pro Uncensored](https://unrestrictable.ai/models/deepseek-v4-pro-uncensored) | $0.04 | [model page](https://unrestrictable.ai/models/deepseek-v4-pro-uncensored) |
| [GLM-5.3 Abliterated](https://unrestrictable.ai/models/glm-5.3-abliterated) | $0.09 | [model page](https://unrestrictable.ai/models/glm-5.3-abliterated) |
| [GLM-5.3 Flash Code Uncensored](https://unrestrictable.ai/models/glm-5.3-flash-code-uncensored) | $0.25 | [model page](https://unrestrictable.ai/models/glm-5.3-flash-code-uncensored) |

Each turn costed at 40,000 tokens in and 1,200 out, at the catalog prices of 2026-11-16. The tool-calls column repeats what the catalog publishes; a blank points you to the model page.

| Model | Build | Input $/M | Output $/M |
| --- | --- | --- | --- |
| [GLM-5.3 Uncensored](https://unrestrictable.ai/models/glm-5.3-uncensored) glm-5.3-uncensored | Uncensored | $0.282 | $0.846 |
| [GLM-5.3 Flash Uncensored](https://unrestrictable.ai/models/glm-5.3-flash-uncensored) glm-5.3-flash-uncensored | Uncensored | $0.1053 | $0.3685 |
| [DeepSeek V4.1 Flash Abliterated](https://unrestrictable.ai/models/deepseek-v4.1-flash-abliterated) deepseek-v4.1-flash-abliterated | Abliterated | $0.8488 | $1.6975 |
| [DeepSeek V4 Pro Uncensored](https://unrestrictable.ai/models/deepseek-v4-pro-uncensored) deepseek-v4-pro-uncensored | Uncensored | $0.97 | $1.94 |
| [GLM-5.3 Abliterated](https://unrestrictable.ai/models/glm-5.3-abliterated) glm-5.3-abliterated | Abliterated | $2.1825 | $4.365 |
| [GLM-5.3 Flash Code Uncensored](https://unrestrictable.ai/models/glm-5.3-flash-code-uncensored) glm-5.3-flash-code-uncensored | Uncensored | $6.00 | $6.00 |

Prices per million tokens, read from the live catalog on 2026-11-16.

Mode by mode: Code and Debug produce the longest contexts and the most tool calls, so they belong on the strong build. Ask only reads and explains, Architect plans before any edit, and both are fine on the fast build. The per-turn figure above is roughly what one deep turn costs in whichever mode uses that profile. Because Orchestrator subtasks inherit the parent’s profile, choose the profile before you start an Orchestrator task and the whole tree bills to it.

The cost Roo Code prints beside a request is its own estimate, computed from the Input Price and Output Price you typed. The charge is on the console’s usage page. To see the code builds compared over a working day, read [the uncensored coding AI guide](https://unrestrictable.ai/guides/uncensored-coding-ai).

## Prove it works

First, ask the API which models your key may call. Roo Code sends this exact request to fill its Model picker, so your id has to be in the reply:

```bash
curl https://api.unrestrictable.ai/v1/models -H "Authorization: Bearer sk-unr-live-…"
```

Next, make one chat request in the shape Roo Code uses. The `-i` flag shows the response headers: `x-uplink-request-id` identifies the request, and when the answer is not streamed, `x-uplink-charge` holds the cost in USD.

```bash
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."}]}'
```

Finally, back in Roo Code, send a Code-mode message on the new profile. It appears on the console’s usage page with token counts and a charge, and Roo Code’s own history should show the same counts.

## When it fails

- `401 invalid_api_key` (shown by Roo Code as "Invalid API Key"): a wrong or revoked key, or a different profile is active than the one you configured. Look at the API Configuration dropdown first, then paste the key again from the console.
- `404 model_not_found` (Roo Code says "Model Not Found"): the preset OpenAI id is still in the Model field, or the id has a typo. Select it from the list or copy it from the models page.
- `402 insufficient_balance`: not enough balance for this request; top up in the console. `402 monthly_limit_reached`: the key has reached the monthly spending cap you gave it.
- `403 scope_denied`: this key may only call certain models, and the one you chose is outside that set.
- `429 rate_limited`: the key’s rate limit was hit. Read `retry-after` in the response and put that many seconds in the profile’s Rate Limit field, which spaces Roo Code’s requests.
- A connection error with no status code means the Base URL is off. The correct value is `https://api.unrestrictable.ai/v1`, ending in `/v1` with nothing after it, and Use Azure must be off.
- Errors around tool calls, or Roo Code describing an edit in prose instead of making it: this build does not return tool calls. Move to one marked yes in the table, or whose model page lists them. There is no XML fallback.
- Every request fails with `400`: Max Output Tokens exceeds the model’s limit, and Include max output tokens sends it as the cap. Use the table’s value, or -1 to let the server decide. Enable R1 model parameters switched on for a model outside that family fails the same way; switch it off.
- An empty Model picker: the model list could not be fetched, most often because the key or URL had not been saved. Save, then reopen Settings; the Refresh Models hint tells you the same.
- Context condensed too soon or too late: Context Window Size does not match the model. Roo Code condenses at a fraction of this value, so copy it from the table.

## Questions

### Which of these models work with the OpenAI Compatible provider?

All of them. One key covers the whole models page, and each build there takes an OpenAI-format call to /v1/chat/completions, so the Model field accepts any id from that page, spelled the same way. Builds with yes in the Tool calls column also drive the agent loop. See the models page.

### What does "OpenAI compatible" actually mean here?

That the API mirrors the request shape of OpenAI’s chat completions endpoint: identical paths, bearer header, messages and tools fields, and streamed chunk format. The OpenAI Compatible provider in Roo Code posts that shape to whichever Base URL you enter, so a URL and a key complete the setup.

### Where is the key stored once I save it in Roo Code?

In VS Code’s Secret Storage, one per profile, and the settings UI never displays it again. Export copies it unencrypted into roo-code-settings.json; that file does not belong in version control. Reset wipes it together with the rest.

### Should Use Azure or Enable R1 model parameters be on for these builds?

No. Use Azure is for Azure endpoints and their URL and version scheme; Enable R1 model parameters switches to the message format of that one reasoning family. Neither fits this API. The defaults are what you want: streaming on, max output tokens included.

Every model above is on the [uncensored model list](https://unrestrictable.ai/models) with its live price per million tokens. [Per-token pricing](https://unrestrictable.ai/pricing) sets the whole catalog side by side, and the [family directory](https://unrestrictable.ai/uncensored) groups the builds by base model.

[Get a key](https://app.unrestrictable.ai/console) Prepaid from $10, no subscription.

## New models and price changes, once a month.

New uncensored builds with their prices, price moves, and what the daily model check found.
