Skip to content

How to use uncensored abliterated models with Crush

A crush.json that adds abliterated DeepSeek and GLM models to Charm's Crush as an OpenAI-compatible provider. Tested on Crush 0.104.0.

Published Updated 4 min read

Crush, the terminal coding agent from Charm, takes custom providers in a JSON file, so you can run it on an uncensored, abliterated model. We set up Crush 0.104.0 against CommentLLM's abliterated DeepSeek V4.1 Flash model and gave it a real bug to fix. It fixed it and the tests passed.

The short version: add a commentllm provider to ~/.config/crush/crush.json with "type": "openai-compat", base_url set to https://api.commentllm.com/v1 and api_key set to $COMMENTLLM_API_KEY, list the models, and point models.large and models.small at one of them.

How a coding agent connects to an abliterated model: the agent sends prompts to the CommentLLM API, which passes them to the model and returns its tool calls

What you need

  • Crush. We used version 0.104.0, installed with npm install -g @charmland/crush. brew install charmbracelet/tap/crush works too.
  • A CommentLLM API key. Create one under Keys in the console after you sign up and add credit.

Step 1: put your key in an environment variable

export COMMENTLLM_API_KEY="cllm_..."

Crush replaces $COMMENTLLM_API_KEY in the config with this value, so the key never goes in the file.

Step 2: write ~/.config/crush/crush.json

{
  "$schema": "https://charm.land/crush.json",
  "providers": {
    "commentllm": {
      "name": "CommentLLM",
      "type": "openai-compat",
      "base_url": "https://api.commentllm.com/v1",
      "api_key": "$COMMENTLLM_API_KEY",
      "models": [
        { "id": "deepseek-v4.1-flash-abliterated", "name": "DeepSeek V4.1 Flash Abliterated", "context_window": 1048576, "default_max_tokens": 32768 },
        { "id": "glm-5.3-abliterated", "name": "GLM 5.3 Abliterated", "context_window": 1048576, "default_max_tokens": 32768 },
        { "id": "glm-5.3-flash-abliterated", "name": "GLM 5.3 Flash Abliterated", "context_window": 1048576, "default_max_tokens": 32768 }
      ]
    }
  },
  "models": {
    "large": { "provider": "commentllm", "model": "deepseek-v4.1-flash-abliterated" },
    "small": { "provider": "commentllm", "model": "glm-5.3-flash-abliterated" }
  }
}
Setting Why
"type": "openai-compat" Tells Crush to call the OpenAI Chat Completions endpoint
context_window and default_max_tokens Crush cannot tell how much context is left without them, because these models are not in its built-in list
models.large The model that does the coding
models.small The model for light work such as titles. We set it to the fastest model

Step 3: start Crush

Run crush in your project. In a folder it has not seen, Crush asks whether to initialize the project, which writes an AGENTS.md. You can decline. The header then shows the model and provider.

Crush 0.104.0 starting with DeepSeek V4.1 Flash Abliterated via CommentLLM in the header

Step 4: give it a task

Our test project had a log-triage script with a bug: it counted failed SSH logins by username instead of by source address, so both tests failed. We asked:

The test suite fails. Run the tests, find the bug in auth_triage.py and fix it. Then run the tests again.

Crush asks before each shell command and each edit, with Allow, Allow for Session and Deny.

Crush asking for permission to run a command, with Allow, Allow for Session and Deny

It ran the tests, changed match.group(1) to match.group(2) and ran them again: 2 passed. The turn took 1 minute 5 seconds, most of it us answering the prompts.

Crush on DeepSeek V4.1 Flash Abliterated fixing the bug in auth_triage.py, with 2 passed

Press Ctrl+L to switch models. crush --yolo skips every permission prompt, so use it only in a sandbox.

Common problems and fixes

What you see Why Fix
Authentication error COMMENTLLM_API_KEY is not set in the shell that started Crush Export it first
An "initialize this project?" prompt Crush offers to write an AGENTS.md in a new folder Answer either way. It does not affect the provider
A long pause before the first answer, and Title generation hit token limit in .crush/logs Crush asks for a session title with a very small output limit, and the models spend it on reasoning Harmless. Point models.small at glm-5.3-flash-abliterated so the title step ends quickly. In our run the same fix took 1m24s instead of 3m16s
Many permission prompts The default asks for each command and edit Choose Allow for Session, or --yolo in a sandbox

Which model to use

Start with deepseek-v4.1-flash-abliterated, the model that fixed the bug here. glm-5.3-abliterated is the one to try for harder reasoning. Both take text only, so image input does not work. If the agent feels slow, switch the model ID to deepseek-v4.1-flash-abliterated-fast: it is the same model served about five times faster, at the same input and output rates and a higher cached-input rate. The pricing page lists every model and its rate.

Run it in a sandbox

Abliterated models refuse far fewer requests than standard ones, and that includes commands an agent should not run on your machine. Try it first in a throwaway project, as we did, and review what the model writes before you ship it.

Setting up a different agent? Uncensored coding AI lists every agent we tested, with a guide for each.

Questions

Can Crush use uncensored or abliterated models?

Yes. Crush accepts custom OpenAI-compatible providers in crush.json. We ran Crush 0.104.0 on DeepSeek V4.1 Flash Abliterated through CommentLLM, and it fixed a failing test.

How do I add a custom provider to Crush?

Add an entry under providers in ~/.config/crush/crush.json with type set to openai-compat, the API's base_url, an api_key that names an environment variable such as $COMMENTLLM_API_KEY, and a models list with each model's id, context_window and default_max_tokens.

Where is the Crush config file?

At ~/.config/crush/crush.json for every project. Crush also reads a crush.json in the project folder.

How do I switch models in Crush?

Press Ctrl+L and choose from the models listed under your providers. The models.large and models.small settings decide which ones Crush starts with.

Start building today.

Create an account, tell us what you work on, and send your first request.