# DeepSeek V4.1 Flash Uncensored in Codex

Run DeepSeek V4.1 Flash Uncensored in Codex on Morse's private API: the config.toml, a 1M-token window, Private tier, $0.50 / $1.50 per 1M tokens.

Page: https://trymorse.ai/inference/models/deepseek-ai/deepseek-v4.1-flash-uncensored/codex

To run DeepSeek in Codex, add Morse as a provider in Codex's `config.toml` and name `deepseek-ai/deepseek-v4.1-flash-uncensored` as its model. DeepSeek V4.1 Flash Uncensored is an uncensored build of DeepSeek V4.1 Flash. It takes Codex's tool calls, reasons, and reads images. Morse serves it privately on the Private tier, with zero data retention.

| | |
|---|---|
| Model id | `deepseek-ai/deepseek-v4.1-flash-uncensored` |
| Made by | DeepSeek |
| Context | 1,048,576 tokens |
| Longest response | 65,536 tokens |
| Tiers | Private |
| Price | $0.50 input / $1.50 output per 1M tokens |
| Reasoning | none, low, high, and max |
| Tool calls | Yes |
| Images | Reads images |

## Set it up

1. Get a key: Create an API key in the Morse console. New keys start with `sk_morse_`.
2. Add Morse to Codex: Put the config above in `~/.codex/config.toml`, and export your key as `MORSE_API_KEY`.
3. Start Codex: Run `codex` in your project's folder.

```
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"
```

## What's different with this model

- `model_context_window` is 1,048,576, the model's whole window, and Codex compacts at 200,000 tokens.
- The model writes up to 65,536 tokens in one response.
- Codex calls the Responses API, which Morse serves for this model at the same base URL.
- It takes four reasoning efforts: none, low, high, and max.
- It reads images, so an image you attach in Codex reaches the model.
- It runs on the Private tier only, where a request is read only by the provider's hardware.

## Check it works

Ask Codex to change one line in a file. Codex edits with `apply_patch`, so a finished edit shows the tool call went through.

## What people use it for

- Cybersecurity: Test, monitor, and defend your systems without safety filters blocking real security work.
- Agent security: Stress-test your AI agents to identify prompt injection, jailbreak, and tool misuse vulnerabilities.

## More

- [DeepSeek V4.1 Flash Uncensored API](https://trymorse.ai/inference/models/deepseek-ai/deepseek-v4.1-flash-uncensored)
- [Codex setup guide](https://trymorse.ai/inference/docs/tools/codex)
- [DeepSeek V4.1 Flash Uncensored in Cursor](https://trymorse.ai/inference/models/deepseek-ai/deepseek-v4.1-flash-uncensored/cursor)
