Skip to content

How to use uncensored abliterated models with Cline

Connect Cline to abliterated DeepSeek and GLM models with the OpenAI Compatible provider. Tested on Cline CLI 3.0.76 and the VS Code extension.

Published Updated 5 min read

Cline can run on any model served over the OpenAI Chat Completions API, so you can use an uncensored, abliterated model in it without running the model yourself. We connected both the Cline CLI and the Cline VS Code extension to CommentLLM's abliterated DeepSeek V4.1 Flash model and gave each a real bug to fix. Both fixed it and got the tests passing.

The short version: choose the OpenAI Compatible provider, set the base URL to https://api.commentllm.com/v1, paste your CommentLLM key and enter deepseek-v4.1-flash-abliterated as the model ID. In the terminal that is one command:

cline auth -p openai -k "$COMMENTLLM_API_KEY" -m deepseek-v4.1-flash-abliterated -b https://api.commentllm.com/v1

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

  • Cline. We used CLI version 3.0.76, installed with npm install -g cline, and VS Code extension 4.1.28 (saoudrizwan.claude-dev) in VS Code 1.148.0.
  • A CommentLLM API key. Create one under Keys in the console after you sign up and add credit.

You do not need a Cline account or a ClinePass subscription.

Cline CLI

Step 1: configure the provider

export COMMENTLLM_API_KEY="cllm_..."
cline auth -p openai -k "$COMMENTLLM_API_KEY" -m deepseek-v4.1-flash-abliterated -b https://api.commentllm.com/v1

Cline answers Provider configured: openai-compatible. It saves the settings, including the key in plain text, in ~/.cline/data/settings/providers.json, so keep that file private.

The -k option passes the key as a command argument, which other users on the same machine can see in the process list while the command runs. Cline 3.0.76 has no other option for the key, so run this on a machine only you use.

Step 2: start Cline

Run cline -i in your project. The first start shows a ClinePass offer; press Esc to close it. The model ID then appears under the prompt.

Cline CLI 3.0.76 started in a project with deepseek-v4.1-flash-abliterated as the model

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

Cline read both files, changed one line, ran pytest and reported 2 passed. The turn used 7,601 tokens.

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

Step 4: switch models

Type /model. Cline reads the model list from the API and shows every CommentLLM model.

The Cline /model picker listing the four abliterated models from the API

To run one prompt without the interface, pass it as an argument and choose the model with -m:

cline -m glm-5.3-flash-abliterated "In one sentence, what does suspects() in auth_triage.py return?"

A prompt given this way runs without approval prompts, so use it in a sandbox.

Cline for VS Code

Step 1: choose "Bring my own API key"

Install Cline from the Extensions view and open it from the activity bar. On the "How will you use Cline?" screen, choose Bring my own API key.

The Cline VS Code welcome screen with the Bring my own API key option

Step 2: fill in the provider

The provider defaults to OpenRouter. Change it:

Field Value
API Provider OpenAI Compatible
Base URL https://api.commentllm.com/v1
OpenAI Compatible API Key Your cllm_ key
Model ID deepseek-v4.1-flash-abliterated

Then open Model Configuration. Untick Supports Images, set Context Window Size to 1048576 and Max Output Tokens to 32768. Cline assumes 128,000 tokens of context and image support for a model it does not know, and both are wrong here.

The Cline provider form set to OpenAI Compatible with the CommentLLM base URL, model ID and a 1,048,576-token context window

Click Continue.

Step 3: give it a task

We gave the extension the same bug. By default Cline reads and edits files without asking and asks before each terminal command.

Cline in VS Code asking for approval to run a command, with Run Command and Reject buttons

It listed the project, read both files, ran the tests, changed match.group(1) to match.group(2) and ran the tests again: 2 passed.

Cline in VS Code after the fix, with the one-line diff in the editor and 2 passed in the terminal

Common problems and fixes

What you see Why Fix
interactive mode requires a TTY The CLI was started without a real terminal, for example from a script or CI job Run it in a terminal or inside tmux, or pass the prompt as an argument
A ClinePass screen or banner Cline advertises its own subscription Press Esc in the CLI or click the x in VS Code. It is not needed
The context bar tops out at 128K in VS Code Unknown models get a 128,000-token default Set Context Window Size to 1048576 under Model Configuration
"The user chose to proceed while the command is starting or still running" Run Command was clicked again before the first command finished Wait for the command's output before clicking
Cost shows $0.00 Cline has no price list for custom models Read usage in the CommentLLM console instead
401 or authentication errors The key is missing or was pasted with a space Run cline auth again or paste the key again in settings

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 Cline use uncensored or abliterated models?

Yes. Cline's OpenAI Compatible provider accepts any Chat Completions endpoint. We ran Cline CLI 3.0.76 and VS Code extension 4.1.28 on DeepSeek V4.1 Flash Abliterated through CommentLLM, and both fixed a failing test.

What base URL does Cline need for CommentLLM?

https://api.commentllm.com/v1, with the provider set to OpenAI Compatible, a CommentLLM API key and a model ID such as deepseek-v4.1-flash-abliterated.

Do I need a Cline account or ClinePass to use my own model?

No. Choose Bring my own API key in the VS Code extension, or run cline auth with your own provider in the CLI. Neither asked us to sign in.

Where does Cline store the API key?

The CLI writes it in plain text to ~/.cline/data/settings/providers.json. The VS Code extension says it stores the key locally and uses it only to make API requests.

Why does Cline show a 128K context window for a custom model?

Cline does not know the model, so it assumes 128,000 tokens. Open Model Configuration in the provider settings and set Context Window Size to 1048576 for CommentLLM's models.

Start building today.

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