Skip to content

How to use uncensored abliterated models with DeepSeek Harness

Add abliterated DeepSeek and GLM models to DeepSeek Harness (dsh) as a custom model API in its web UI. Tested on dsh 0.2.2-rc.5.

Published Updated 4 min read

DeepSeek Harness, dsh, is DeepSeek's own coding agent, and it is not tied to DeepSeek's API. Its settings take a custom model API, so you can run it on an uncensored, abliterated DeepSeek or GLM model. We set up dsh 0.2.2-rc.5, a developer preview, against CommentLLM's abliterated DeepSeek V4.1 Flash model in its web UI, and it fixed a real bug.

The short version: run dsh web, open Settings, then Models, then Add model provider, then Custom model API. Enter the base URL https://api.commentllm.com/v1, the protocol OpenAI Chat Completions and your CommentLLM key, click Fetch available models, and create the provider.

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

  • Node.js 24.9 or later.
  • DeepSeek Harness. We used version 0.2.2-rc.5, installed with npm install -g @deepseek-ai/dsh.
  • A CommentLLM API key. Create one under Keys in the console after you sign up and add credit.

Step 1: install dsh from npm

npm install -g @deepseek-ai/dsh

Two things went wrong for us before this worked:

  • uv tool install deepseek-harness fails with No executables are provided by package deepseek-harness. The package of that name on PyPI is not the agent. The agent is the npm package above.
  • On Node 22, npx @deepseek-ai/dsh web fails with ETARGET No matching version found. dsh needs Node 24.9 or later. Installing Node 24 fixed it.

Step 2: start the web UI

dsh web

dsh serves the UI on http://127.0.0.1:3080 and opens your browser. The address it prints ends in ?token=.... Use that full address: opening the bare URL answers dsh web authentication required; reopen the URL printed by dsh web. Pass --no-open to stop it opening a browser, and --host or --port to change where it listens.

Step 3: add CommentLLM as a custom model API

Open More, then Settings, then Models, and choose Add model provider, then Custom model API.

The DeepSeek Harness Add model provider form for a custom model API

Field Value
Provider ID commentllm
Display name CommentLLM
Base URL https://api.commentllm.com/v1
API protocol OpenAI Chat Completions
API key Your cllm_ key

Click Fetch available models. dsh asks the API for its model list and shows every model.

DeepSeek Harness listing the four models fetched from the CommentLLM API

Click Update list. dsh fills in each model's context window, 1,048,576 tokens, and output limit, 32,768 tokens, from the API. Then click Create provider.

The completed provider form with the CommentLLM base URL, OpenAI Chat Completions and four models

dsh saves the provider in ~/.dsh/profiles/web/cordis.patch.yml and the key separately in ~/.dsh/.credentials.yaml.

Step 4: choose a workspace and a model

Choose your project folder as the workspace. In the folder picker, the edit icon lets you type a path. Then click Select model and pick a model from the CommentLLM group. The model you pick becomes the default.

The DeepSeek Harness model picker with the CommentLLM group and its four models

Step 5: 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.

The default permission is Workspace Write, which lets dsh edit files and run commands inside the workspace without asking. It ran the tests, changed one line and ran them again: 2 passed, with no prompts.

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

dsh also runs a single task without the UI, with dsh headless "task".

Common problems and fixes

What you see Why Fix
No executables are provided by package deepseek-harness The PyPI package of that name is not the agent npm install -g @deepseek-ai/dsh
ETARGET No matching version found for @deepseek-ai/dsh Node is older than 24.9 Install Node 24
dsh web authentication required; reopen the URL printed by dsh web. The page was opened without its token Open the full address dsh web printed, including ?token=
Commands run without asking Workspace Write is the default permission Choose a stricter permission, or work 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 DeepSeek Harness use uncensored or abliterated models?

Yes. DeepSeek Harness accepts a custom model API. We ran dsh 0.2.2-rc.5 on DeepSeek V4.1 Flash Abliterated through CommentLLM, and it fixed a failing test.

How do I install DeepSeek Harness?

Run npm install -g @deepseek-ai/dsh on Node 24.9 or later, then start it with dsh web. The deepseek-harness package on PyPI is not the agent and installs no command.

How do I add a custom model provider to DeepSeek Harness?

In the web UI, open Settings, then Models, then Add model provider, then Custom model API. Enter a provider ID, the API's base URL, the OpenAI Chat Completions protocol and your key, click Fetch available models, then Create provider.

Why does dsh web say authentication required?

The web UI is protected by a token in its address. Open the full URL that dsh web prints, which ends in ?token= followed by the token.

Start building today.

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