# DeepSeek V4.1 Flash 1017 Uncensored in Claude Code

Run DeepSeek V4.1 Flash 1017 Uncensored in Claude Code on Morse's private API: the lines to set, a 1M-token window, TEE and Private tiers.

Page: https://trymorse.ai/inference/models/deepseek/deepseek-v4.1-flash-1017-abliterated/claude-code

To run DeepSeek in Claude Code, set Claude Code's `ANTHROPIC_BASE_URL` to Morse and name `deepseek/deepseek-v4.1-flash-1017-abliterated` as its model. DeepSeek V4.1 Flash 1017 Uncensored is an abliterated build of DeepSeek V4.1 Flash 1017. It takes Claude Code's tool calls, reasons, and reads images. Morse serves it privately on the TEE and Private tiers, with zero data retention.

| | |
|---|---|
| Model id | `deepseek/deepseek-v4.1-flash-1017-abliterated` |
| Made by | DeepSeek |
| Context | 1,048,576 tokens |
| Longest response | 65,536 tokens |
| Tiers | TEE and 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. Set the environment: Set the lines above in the shell you start Claude Code from, or in your shell's profile.
3. Start Claude Code: Run `claude` in your project's folder.

```
export MORSE_API_KEY="sk_morse_..."
export ANTHROPIC_BASE_URL=https://inference.trymorse.ai
export ANTHROPIC_AUTH_TOKEN="$MORSE_API_KEY"
export ANTHROPIC_MODEL=deepseek/deepseek-v4.1-flash-1017-abliterated
export ANTHROPIC_DEFAULT_OPUS_MODEL=deepseek/deepseek-v4.1-flash-1017-abliterated
export ANTHROPIC_DEFAULT_SONNET_MODEL=deepseek/deepseek-v4.1-flash-1017-abliterated
export ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek/deepseek-v4.1-flash-1017-abliterated
export CLAUDE_CODE_MAX_OUTPUT_TOKENS=32000
export CLAUDE_CODE_AUTO_COMPACT_WINDOW=200000
```

## What's different with this model

- All four model lines name DeepSeek V4.1 Flash 1017 Uncensored, so Claude Code's background work and sub-agents run on it too.
- Claude Code compacts at 200,000 tokens, short of the model's 1,048,576-token window, as each late turn resends the whole conversation.
- `CLAUDE_CODE_MAX_OUTPUT_TOKENS` is 32,000, and the model writes up to 65,536 tokens in one response.
- It takes four reasoning efforts: none, low, high, and max.
- It reads images, so a screenshot you paste into Claude Code reaches the model.
- It runs on the TEE and Private tiers, at one price on each.

## Check it works

Ask Claude Code to change one line in a file. A finished edit shows that Morse took the request and its tool calls.

## 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 1017 Uncensored API](https://trymorse.ai/inference/models/deepseek/deepseek-v4.1-flash-1017-abliterated)
- [Claude Code setup guide](https://trymorse.ai/inference/docs/tools/claude-code)
