MorseSign inOpen Morse

Qwen3.8 27B for coding: the abliterated build in Claude Code and Codex

The Morse teamPublished Facts checked 4 min read

Qwen3.8 27B is Alibaba's dense 27-billion-parameter model, and Alibaba measured its coding the way you'd use it: three of the coding scores on its model card were run inside Claude Code's own harness. On Morse you can put its abliterated build, Qwen3.8 27B Uncensored, into Claude Code or Codex with one base URL and a Morse key. We set up Claude Code and Codex with it on December 3, 2026; the configs below are the ones that ran, along with the one setting that made Codex six times faster.

Abliterated means the direction in the weights that makes the model decline was removed, so it answers instead (what is an abliterated model). That matters for coding because so much security code reads like an attack: a proof of concept for a flaw in your own service, a fuzzer, a payload list for testing your own agent. It runs only on the TEE tier, inside attested hardware, so the code you hand it stays sealed while it works.

What Alibaba's coding scores say

Every number here is from Alibaba's Qwen3.8-27B model card, for the original model, set against the generation before it. We haven't rerun them.

Benchmark (from the card)What it testsQwen3.8-27BQwen3.6-27B
Terminal Bench 2.1 (Terminus)Agentic coding in a terminal73.063.4
SWE-bench ProFixing real repository issues, in Claude Code's harness61.753.5
NL2Repo-BenchBuilding a whole repository, in Claude Code's harness42.336.2
DeepSWE 1.1Long software tasks, in Claude Code's harness42.213.3
LiveCodeBench v6Competitive programming90.383.9

The card's notes say SWE-bench Pro and DeepSWE ran "with the Claude Code harness at temp=1.0, top_p=0.95, and a 256K context window." That's close to what you get on Morse: this build holds 256K tokens of context, so Claude Code sees the same window Alibaba tested in. The card also describes Qwen3.8-27B as a dense model that reads images and video, with thinking on by default and depth set through reasoning_effort, released under the Apache 2.0 license.

Set it up in Claude Code

Claude Code speaks Anthropic's Messages API, which Morse serves. Set these in the shell you start it from. The base URL has no /v1, because Claude Code adds /v1/messages itself, and putting the same id on all four model lines keeps Claude Code's background work on this 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=qwen/qwen3.8-27b-uncensored
export ANTHROPIC_DEFAULT_OPUS_MODEL=qwen/qwen3.8-27b-uncensored
export ANTHROPIC_DEFAULT_SONNET_MODEL=qwen/qwen3.8-27b-uncensored
export ANTHROPIC_DEFAULT_HAIKU_MODEL=qwen/qwen3.8-27b-uncensored
export CLAUDE_CODE_MAX_OUTPUT_TOKENS=32000
export CLAUDE_CODE_AUTO_COMPACT_WINDOW=200000
claude

CLAUDE_CODE_MAX_OUTPUT_TOKENS stays under this model's longest reply of 65,536 tokens. CLAUDE_CODE_AUTO_COMPACT_WINDOW is the model's window or 200,000 tokens, whichever is smaller, and its window is 256K tokens.

What happened when we ran it. We gave Claude Code a ten-line Flask file whose /user route put the id query parameter straight into a SQL string, and asked it to fix the injection with a parameterized query and change nothing else. It read the file, replaced the f-string with a ? placeholder, and stopped, in 5 turns and 87 seconds at the model's default effort, most of it spent reasoning.

Set it up in Codex, and make it fast

Codex speaks OpenAI's Responses API, which Morse also serves. Add this to ~/.codex/config.toml and run codex in your project:

model = "qwen/qwen3.8-27b-uncensored"
model_provider = "morse"
web_search = "disabled"
model_reasoning_effort = "low"
model_context_window = 262144
model_auto_compact_token_limit = 196608

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

model_context_window is the model's 256K tokens, and Codex compacts at model_auto_compact_token_limit, three quarters of it. model_reasoning_effort is the line that matters most. This build takes an effort of "low", "medium", or "xhigh", and on the same Flask fix:

Codex run, December 3, 2026TimeResult
Default effort (medium)72 secondsParameterized query, checked with git diff that nothing else changed
model_reasoning_effort = "low"11 secondsThe same one-line fix

Keep low for edits like this one, and raise the effort to xhigh for a long refactor or a bug that needs real thought.

The full guides, with fixes for common errors, are Claude Code and Codex.

What to build with it

The Morse API is built for four kinds of work, and each one has a coding side:

  • Cybersecurity. Test, monitor, and defend your systems without safety filters blocking real security work. Have the agent audit a service you run, write the proof of concept for a finding on your own test server, or draft a threat model: Morse's STRIDE GPT guide makes this model its default.
  • Agent security. Stress-test your AI agents to identify prompt injection, jailbreak, and tool misuse vulnerabilities. It takes tool calls, so it can write the attack cases and the harness that runs them against your own agent on every build.
  • AI and ML research. Alibaba's original, Qwen3.8 27B, is on Morse too, so one config line switches the same coding harness between the stock model and this build.
  • Training data. Build training sets, eval suites, and classifiers for sensitive data that other models refuse to write, as files the agent generates and checks in.

Keep the code private

It runs in attested hardware enclaves, under zero-data-retention terms. No AI provider trains on what you send through Morse (privacy policy). This build runs only on the TEE tier and takes tool calls there, so you can set a TEE privacy floor on your coding agent's key and keep every request in attested hardware. See Privacy tiers.

The closest models for coding on Morse

  • Gemma 4 26B A4B Uncensored, google/gemma-4-26b-a4b-uncensored: another uncensored model on the TEE tier that takes tools and reads images, with replies up to 262,144 tokens.
  • GLM 5.3 Flash Uncensored, z-ai/glm-5.3-flash-uncensored: the abliterated GLM 5.3 Flash, with 1M tokens of context; it made the same Flask fix in Claude Code in 3.7 seconds. Its limits and settings are on its model page.
  • Qwen3.8 27B, qwen/qwen3.8-27b: Alibaba's original, for everyday code no filter cares about.

For the model itself, its tiers and every setting it takes, see the Qwen3.8 27B Uncensored model page.

Paying for it

The API runs on prepaid credits, with no subscription: Qwen3.8 27B Uncensored costs $0.35 per million input tokens and $1.75 per million output tokens. Get an API key, paste the config, and start your agent.

Common questions

Is Qwen3.8 27B good for coding?

By Alibaba's own numbers, yes for its size. The Qwen3.8-27B model card reports 61.7 on SWE-bench Pro and 73.0 on Terminal Bench 2.1, against 53.5 and 63.4 for Qwen3.6-27B, and it ran SWE-bench Pro, DeepSWE and NL2Repo inside Claude Code's harness.

How do I make Qwen3.8 27B faster in Codex?

Lower its reasoning effort. On Morse, Qwen3.8 27B Uncensored takes "low", "medium", or "xhigh". In our Codex run on December 3, 2026, setting model_reasoning_effort = "low" cut the same fix from 72 seconds to 11.

What context window should I give Codex for Qwen3.8 27B Uncensored?

model_context_window = 262144, its 256K tokens, and model_auto_compact_token_limit = 196608, three quarters of that window.

Can a key held to the TEE tier run Qwen3.8 27B Uncensored in a coding agent?

Yes. It runs on the TEE tier and takes tool calls there, so a key with a TEE privacy floor can drive Claude Code or Codex with it.

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