Claude Code, the Codex CLI, OpenCode, Cline, Roo Code, Kilo Code and Cursor can all run an uncensored model with no proxy. Claude Code speaks the Anthropic Messages API, Codex the OpenAI Responses API and the rest OpenAI Chat Completions, and OpenUncensored serves all three at https://api.openuncensored.com/v1. You change a base URL, a key and a model id. Below is the setup for each tool, how tool calling works, and which uncensored models finish multi-step agent tasks.
Disclosure: we run OpenUncensored, the API in every example. The agent results come from our own harness, with the same settings for every model.
One command for Claude Code, Codex and OpenCode
curl -fsSL https://openuncensored.com/setup.sh | sh It sets up whichever of the three tools are installed, asks before each change, keeps a backup of every config file it edits, and adds new commands (claude-uncensored, codex-uncensored, opencode-uncensored) instead of changing how your tools run now. Its default model is deepseek-v4.1-flash-1017-uncensored, and OU_MODEL=<model id> picks another. Read the script first if you like.
Claude Code
export ANTHROPIC_BASE_URL=https://api.openuncensored.com export ANTHROPIC_API_KEY=ou-... export ANTHROPIC_MODEL=glm-5.3-flash-uncensored export ANTHROPIC_DEFAULT_OPUS_MODEL=$ANTHROPIC_MODEL export ANTHROPIC_DEFAULT_SONNET_MODEL=$ANTHROPIC_MODEL export ANTHROPIC_DEFAULT_HAIKU_MODEL=$ANTHROPIC_MODEL export CLAUDE_CODE_SUBAGENT_MODEL=$ANTHROPIC_MODEL claude - The base URL has no
/v1: Claude Code adds/v1/messagesitself. - Claude Code also calls smaller models for background work and subagents. The
ANTHROPIC_DEFAULT_*andCLAUDE_CODE_SUBAGENT_MODELvariables point those at the same uncensored model. Without them it asks for a Claude model and fails. - Tool calls, file edits, shell commands, images and streaming work. Prompt caching is automatic, and
/costshows the cached tokens.
To keep Claude as the agent and hand only some requests to an uncensored model, add the MCP server instead. Claude gets tools to list models, read the rankings and prompt any of them, billed to your key:
claude mcp add --transport http open-uncensored https://openuncensored.com/mcp \ --header "Authorization: Bearer ou-..." Full page: Uncensored model in Claude Code or Codex.
Codex CLI
# ~/.codex/config.toml [model_providers.openuncensored] name = "OpenUncensored" base_url = "https://api.openuncensored.com/v1" env_key = "OU_API_KEY" wire_api = "responses" [profiles.uncensored] model_provider = "openuncensored" model = "glm-5.3-flash-uncensored" Then export OU_API_KEY=ou-... and run codex --profile uncensored. Codex uses the OpenAI Responses API, which the same key serves at /v1/responses. File edits, shell commands and multi-step tasks work as usual.
OpenCode
Add a provider to opencode.json in your project, or to ~/.config/opencode/opencode.json for every project (OpenCode 2 format):
{ "$schema": "https://opencode.ai/config.json", "providers": { "openuncensored": { "name": "OpenUncensored", "env": ["OPENUNCENSORED_API_KEY"], "package": "@opencode/ai/providers/openai-compatible", "settings": { "baseURL": "https://api.openuncensored.com/v1" }, "models": { "glm-5.3-flash-uncensored": { "name": "GLM 5.3 Flash Uncensored" }, "kimi-k3.1-pro-uncensored": { "name": "Kimi K3.1 Pro Uncensored" } } } } } export OPENUNCENSORED_API_KEY=ou-... opencode run -m openuncensored/glm-5.3-flash-uncensored "Explain this repository" - The background daemon does not see your shell.
opencode servestarted as a service misses variables you export later. Put the key where the daemon reads it, or test withopencode run --standalone. - Model names are prefixed with the provider key:
openuncensored/<model id>. - OpenCode 1.x uses a
providerblock with"npm": "@ai-sdk/openai-compatible"andoptions.baseURL. The base URL and model ids are the same. Both formats are on the OpenCode page.
Cline, Roo Code, Kilo Code and Cursor
| Tool | Where | Settings |
|---|---|---|
| Cline | Settings, API Provider: OpenAI Compatible | Base URL https://api.openuncensored.com/v1, API Key ou-..., Model ID glm-5.3-flash-uncensored |
| Roo Code | Settings, API Provider: OpenAI Compatible | Same three fields |
| Kilo Code | Settings, API Provider: OpenAI Compatible | Same three fields |
| Cursor | Settings, Models | Add the model id, put the key in OpenAI API Key, turn on Override OpenAI Base URL with https://api.openuncensored.com/v1 |
Details: Uncensored model in Cline, Roo Code, Kilo Code and Cursor.
Which uncensored LLMs support tool calling
Most of them do, through the standard OpenAI tools field and the Anthropic tool format. Requests with tools go to hosts with native tool calls first. If only a host without them is left, the API describes the tools in the prompt and returns a standard tool_calls message. Arguments stream in the OpenAI delta format, tool_choice is passed through, and parallel calls work on models that emit them. Most community roleplay models do not support tools. Details are on the tool calling page.
from openai import OpenAI client = OpenAI(base_url="https://api.openuncensored.com/v1", api_key="ou-...") tools = [{"type": "function", "function": { "name": "get_weather", "description": "Current weather for a city", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}, }}] r = client.chat.completions.create( model="glm-5.3-flash-uncensored", messages=[{"role": "user", "content": "What's the weather in Paris?"}], tools=tools, ) print(r.choices[0].message.tool_calls) Which uncensored model works best with coding agents
Accepting tools is not the same as using them well over many steps. Every model gets five multi-step tool tasks (file search and edit, web research, multi-step math, code debugging, a data pipeline), and we log how each run ends. A crash is a malformed tool call, a made-up tool result, or giving up on tools mid-task. Below are the five ranked models with the most tasks finished and the fewest crashes, at 50+ tokens per second and 256K+ context, plus the top ranked model:
| Model | Model id | Tasks finished | Crashed | Speed | First token | $ / 1M in · out | Rank |
|---|---|---|---|---|---|---|---|
| GLM 5.3 Flash Uncensored | glm-5.3-flash-uncensored | 3 of 5 | 0 | 125 tok/s | 2.3 s | $0.12 · $0.50 | #2 |
| Kimi K3.1 Pro Uncensored | kimi-k3.1-pro-uncensored | 3 of 5 | 0 | 94 tok/s | 4.0 s | $1.50 · $3.00 | #8 |
| Inkling 2 Small Uncensored | inkling-2-small-uncensored | 2 of 5 | 0 | 155 tok/s | 0.4 s | $0.60 · $2.40 | #3 |
| Inkling 2 Mini Uncensored | inkling-2-mini-uncensored | 2 of 5 | 0 | 137 tok/s | 0.2 s | $0.15 · $0.60 | #5 |
| Qwen 3.8 27B Uncensored Fast | qwen3.8-27b-uncensored-fast | 2 of 5 | 0 | 252 tok/s | 0.6 s | $0.83 · $2.62 | #11 |
| DeepSeek V4.1 Flash 1017 Uncensored | deepseek-v4.1-flash-1017-uncensored | 2 of 5 | 3 | 174 tok/s | 0.4 s | $0.33 · $1.32 | #1 |
Speeds are live medians on November 26, 2026 and move through the day. Rank is the OpenUncensored Score, which weighs the original model's published intelligence and Terminal-Bench results, our team's rating, refusals, speed and drift. The task counts above are a separate test reported next to it.
- GLM 5.3 Flash Uncensored is our pick for coding agents: 3 of 5 tasks, no crashes, and the lowest price here. Its 2.3 s first token matters less in an agent than in chat.
- Kimi K3.1 Pro Uncensored also finished 3 of 5 with no crashes, at 12 times the input price and 6 times the output price of GLM 5.3 Flash.
- DeepSeek V4.1 Flash 1017 Uncensored has the top score and is fast, but crashed on the 3 tasks it did not finish. It is the setup script's default, so set
OU_MODEL=glm-5.3-flash-uncensoredfor agent work. - Image input needs a vision model: here, DeepSeek V4.1 Flash 1017 and the two Inkling builds.
Each task is one run per model, so a single task moves the count: treat 3 of 5 against 2 of 5 as a signal, not a verdict. Coding agents resend the conversation at every step, so the cached input price on each model page decides the bill more than the list price.
Troubleshooting
- Claude Code says the model does not exist: set the four background model variables above.
- The agent loops on one tool call: switch to a model higher in the table.
- Tool calls arrive as plain text: the model is not following the tool format. Try another one.
-
402 insufficient_quota: the key is out of credit. Top it up.
Try it
curl https://api.openuncensored.com/v1/chat/completions \ -H "Authorization: Bearer $OU_API_KEY" -H "Content-Type: application/json" \ -d '{"model": "glm-5.3-flash-uncensored", "messages": [{"role": "user", "content": "Hello"}]}' Keys are prepaid, with no account, and cannot spend more than you loaded: openuncensored.com/credits. The full ranking is on the leaderboard, and the tests are explained on the methodology page.
