MorseSign inOpen Morse

Uncensored AI for coding in Claude Code, Cursor, and Codex, set up from Morse's guides

The Morse teamPublished Facts checked 5 min read

For uncensored AI for coding, you can run uncensored models in Claude Code, Cursor, and Codex by pointing each tool at Morse's API and naming an uncensored model's id. Claude Code reaches Morse through Anthropic's Messages API, Cursor through its OpenAI key override, and Codex through OpenAI's Responses API, and Morse serves all three formats with the same key. Every uncensored model on Morse takes tool calls, which coding agents need for reading and editing files.

The settings below are copied from Morse's own setup guides for Claude Code, Cursor, and Codex, read on December 3, 2026, with uncensored ids in place of the guides' defaults. Each guide also has a setup prompt you can paste into an agent, and a table of error codes.

Why run an uncensored model in a coding agent?

For the work where a stock model stops halfway through a file. Morse's API names four uses for its uncensored models, and each has a coding side:

  • Cybersecurity: test, monitor, and defend your systems without safety filters blocking real security work. In a coding agent that means writing a proof of concept for a bug in your own app, a fuzzing harness, or a detection rule with the attack it detects.
  • Agent security: stress-test your AI agents to identify prompt injection, jailbreak, and tool misuse vulnerabilities. The agent writes the test suite, hostile inputs included. See prompt injection testing with uncensored models.
  • AI & ML research: push past the frontier of AI and ML research with models that work with you, not against you.
  • Training data: build training sets, eval suites, and classifiers for sensitive data that other models refuse to write, as scripts and files in your repository.

Which uncensored model should a coding agent use?

One that fits the tool's needs: tool calls, a window large enough for your repository, and a reply limit above the tool's output setting. These are the uncensored models with the most to offer a coding session, read from their pages:

ModelContextLongest replyReadsTiersWhat it brings
Kimi K3.1 Pro Uncensored1M tokens262,144 tokenstext and imagesPrivateUncensored build of the guides' default for Claude Code and Codex
DeepSeek V4.1 Flash 1017 Uncensored1M tokens65,536 tokenstext and imagesTEE, PrivateDefault in Morse's Strix guide, for scanning codebases
Qwen3.8 27B Uncensored256K tokens65,536 tokenstext and imagesTEEMid-size, reads screenshots, in enclaves only
GLM 5.3 Flash Uncensored1M tokens131,072 tokenstext and imagesPrivateFast and low-priced, for many small edits

We gave three of them the same task on December 3, 2026: fix a SQL injection in a 10-line Flask file. In Claude Code, GLM 5.3 Flash Uncensored finished in 3 turns and 3.7 seconds, and Qwen3.8 27B Uncensored, which reasons first, in 5 turns and 86.8 seconds. In Codex, Gemma 4 26B A4B Uncensored ran with a window of 262144 and a compact limit of 196608. All three made the correct one-line fix.

Morse's coding-agent lists leave out GLM 5.3 Uncensored, so it isn't in this table; for agents, use the Flash build above. Each model has its own page with a full setup: Qwen3.8 27B Uncensored, DeepSeek V4.1 Flash 1017 Uncensored, and Kimi K3.1 Pro Uncensored.

How do I set up Claude Code with an uncensored model?

Set four model lines and two limits in the shell you start Claude Code from. ANTHROPIC_BASE_URL is Morse's address without /v1: Claude Code adds /v1/messages itself, and with /v1 on the end it reports a problem with the model.

export MORSE_API_KEY="sk_morse_..."
export ANTHROPIC_BASE_URL=https://inference.trymorse.ai
export ANTHROPIC_AUTH_TOKEN="$MORSE_API_KEY"
export ANTHROPIC_MODEL=moonshotai/kimi-k3.1-pro-uncensored
export ANTHROPIC_DEFAULT_OPUS_MODEL=moonshotai/kimi-k3.1-pro-uncensored
export ANTHROPIC_DEFAULT_SONNET_MODEL=moonshotai/kimi-k3.1-pro-uncensored
export ANTHROPIC_DEFAULT_HAIKU_MODEL=z-ai/glm-5.3-flash
export CLAUDE_CODE_MAX_OUTPUT_TOKENS=32000
export CLAUDE_CODE_AUTO_COMPACT_WINDOW=200000
claude

All four model lines matter. Claude Code sends background work, such as naming the session, to its opus, sonnet, and haiku names, and without those lines the requests fail with 404 before it falls back. The haiku line can stay on a fast stock model, or take the same uncensored id if you want one model throughout. To check it works, ask Claude Code to change a line in a file: a finished edit shows Morse took the request and its tool calls.

How do I add an uncensored model to Cursor?

Cursor needs two changes in its settings and one in the chat:

  1. Open Cursor Settings, then Models, choose Add Custom Model, type the id (for example z-ai/glm-5.3-flash-uncensored), choose Add, and turn it on.
  2. On the same page, open API Keys. In the OpenAI group, paste your Morse key in API Key, turn on Use OpenAI API Key, and turn on Override OpenAI Base URL with https://inference.trymorse.ai/v1.
  3. Pick the model in the chat's model picker. Chat and Agent use Morse; Tab and cloud agents keep using Cursor's models.

Two things the guide flags. The override sends every OpenAI model in Cursor to Morse, so turn it off to use Cursor's own OpenAI models again. And Cursor sends each request through its own servers, which build the prompt before they call Morse. Our review of whether Cursor is private covers what that means for your code.

How do I configure Codex for an uncensored model?

Add a Morse provider to ~/.codex/config.toml, with the window set to the model's context:

model = "deepseek-ai/deepseek-v4.1-flash-uncensored"
model_provider = "morse"
web_search = "disabled"
model_context_window = 1048576
model_auto_compact_token_limit = 200000

[model_providers.morse]
name = "Morse"
base_url = "https://inference.trymorse.ai/v1"
env_key = "MORSE_API_KEY"
wire_api = "responses"

Codex compacts at model_auto_compact_token_limit: three quarters of the window or 200,000 tokens, whichever is less. For a model with a 256K tokens window, such as Qwen3.8 27B Uncensored, set the window to 262144 and the limit to 196608. web_search = "disabled" keeps Codex to the tools it runs on your machine, and Morse stores no response: each one says store: false.

How do I keep a coding session private?

Make a key for each tool, with a spend limit, and give it a privacy floor. Without a floor, a request runs on its model's default tier. With a floor of tee, every request runs in an attested enclave or isn't served, and the model must take tools on its TEE endpoint, as Qwen3.8 27B Uncensored and Gemma 4 26B A4B Uncensored do. It runs in attested hardware enclaves, under zero-data-retention terms.

Whether the coding tool itself trains on your code is a separate question from the model. We answer it for Anthropic's tool in does Claude Code train on your code, and for both in our private API for Claude Code and Codex guide.

Where's the full list of uncensored models?

On Morse's uncensored models page, with prices read live, and in our list of uncensored LLMs, grouped by use. Every model there works in Claude Code with the settings above once you change the id. For Codex, start from the models this page names in its Codex section. Get a key on Morse's inference API, or start with Morse to use uncensored models in chat.

Common questions

Can Claude Code use a model that isn't Claude?

Yes. Claude Code calls Anthropic's Messages API, and any server that speaks it can answer. Morse serves that API at https://inference.trymorse.ai, so Claude Code runs on whichever Morse model id you set in ANTHROPIC_MODEL.

Do uncensored models support tool calls in coding agents?

Every uncensored model on Morse's API takes tool calls, which Claude Code, Cursor's Agent, and Codex all need to read and edit files.

Does Cursor send my code to Morse directly?

No. Morse's Cursor guide says Cursor sends each request through its own servers, which build the prompt and then call Morse. Claude Code and Codex call Morse from your machine.

Why does Codex warn that model metadata wasn't found?

Codex says this for every model that isn't OpenAI's, and still runs. Keep model_context_window and model_auto_compact_token_limit set so it compacts before the window fills.

Ask what you actually want to ask.

80+ models, characters, and images, with every chat encrypted and kept on your device. Free to start.

Start a private chat

Read next