Skip to content

How to use uncensored abliterated models with Zed

Add abliterated DeepSeek and GLM models to the Zed agent as an OpenAI-compatible provider, in settings or settings.json. Tested on Zed 1.30.2.

Published Updated 4 min read

Zed's built-in agent works with any OpenAI-compatible API, so you can use an uncensored, abliterated model in the editor without a Zed account. We set up Zed 1.30.2 on Linux against CommentLLM's abliterated DeepSeek V4.1 Flash model and gave the agent a real bug to fix. It fixed it and the tests passed.

The short version: open Settings, then AI, then LLM Providers, and add an OpenAI (Compatible APIs) provider named CommentLLM with the API URL https://api.commentllm.com/v1, your CommentLLM key and the model deepseek-v4.1-flash-abliterated.

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

  • Zed. We used version 1.30.2 on Linux, installed with curl -f https://zed.dev/install.sh | sh.
  • A CommentLLM API key. Create one under Keys in the console after you sign up and add credit.

You do not need to sign in to Zed.

Step 1: open the provider settings

Open the agent panel with Ctrl+Shift+? (Cmd+Shift+? on a Mac) and click Configure Providers on the welcome card, or go to Settings, then AI, then LLM Providers.

Zed's LLM Providers settings page

Step 2: add the provider

Click Add Provider and choose OpenAI (Compatible APIs).

Field Value
Provider Name CommentLLM
API URL https://api.commentllm.com/v1
API Key Your cllm_ key
Model Name deepseek-v4.1-flash-abliterated
Max Completion Tokens 1048576
Max Output Tokens 32768

Leave tool support on and image support off, then click Save Provider.

Zed's Add Provider form for an OpenAI-compatible API, with Provider Name, API URL, API Key and Models

Zed keeps the key in your system keychain, not in settings.json.

Step 3: or write settings.json

The form writes the same thing you can add by hand to ~/.config/zed/settings.json:

{
  "language_models": {
    "openai_compatible": {
      "CommentLLM": {
        "api_url": "https://api.commentllm.com/v1",
        "available_models": [
          {
            "name": "deepseek-v4.1-flash-abliterated",
            "display_name": "DeepSeek V4.1 Flash Abliterated",
            "max_tokens": 1048576,
            "max_output_tokens": 32768,
            "capabilities": { "tools": true, "images": false, "parallel_tool_calls": false, "prompt_cache_key": false }
          }
        ]
      }
    }
  },
  "agent": {
    "default_model": { "provider": "CommentLLM", "model": "deepseek-v4.1-flash-abliterated" }
  }
}

The file has no key in it. If you set the provider up this way, open the provider's page in settings, paste the key and press Enter.

The CommentLLM provider page in Zed asking for an API key and naming the COMMENT_LLM_API_KEY variable

Zed confirms with API key configured for https://api.commentllm.com/v1.

Zed confirming that the API key is configured for the CommentLLM API URL

Step 4: give the agent a task

Open your project. Zed asks whether you trust a folder it has not seen; choose Trust and Continue. In the agent panel we asked:

The tests in this project fail. Find the bug, fix it, and run the tests to confirm.

The project held a log-triage script that counted failed SSH logins by username instead of by source address. Zed asks before each tool call, with Allow, Deny and Only this time.

The Zed agent asking for permission to run a tool

The agent listed the folder, read both files, ran pytest and saw the failure, then proposed a one-line edit that you can keep or reject.

The Zed agent's one-line edit to auth_triage.py shown as a diff with Reject All and Keep All

It ran the tests again: 2 passed.

The Zed agent on DeepSeek V4.1 Flash Abliterated after the fix, with 2 passed

Common problems and fixes

On Linux the agent's terminal tool runs commands in a sandbox, and ours failed the first time.

Zed reporting that it could not create a sandbox because no bwrap binary was found

What you see Why Fix
"Couldn't create a sandbox. No usable bwrap binary was found on your PATH" Zed's terminal sandbox on Linux needs Bubblewrap sudo apt install bubblewrap, then Retry. In a throwaway project you can choose to run without the sandbox
The key from COMMENTLLM_API_KEY is ignored Zed derives the variable's name from the provider's name. For CommentLLM it is COMMENT_LLM_API_KEY Use the name shown on the provider's page, or paste the key there
The provider page keeps asking for a key The key was typed but not submitted Press Enter after pasting
"Unrecognized Project" and restricted mode Zed has not seen the folder Trust and Continue
An "Unsupported GPU" dialog The machine renders in software, as virtual machines often do Skip it. Zed still runs

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

Yes. Zed's agent accepts OpenAI-compatible providers. We ran Zed 1.30.2 on DeepSeek V4.1 Flash Abliterated through CommentLLM, and the agent fixed a failing test.

How do I add an OpenAI-compatible provider to Zed?

Open Settings, then AI, then LLM Providers, click Add Provider and choose OpenAI (Compatible APIs). Enter a provider name, the API URL, your key and each model's name and token limits, then save. The same settings live under language_models.openai_compatible in settings.json.

Where does Zed store the API key for a custom provider?

In the system keychain. It is not written to settings.json. Zed can also read it from an environment variable whose name it derives from the provider's name, shown on the provider's settings page.

Do I need a Zed account to use my own model?

No. We added the provider and ran the agent without signing in to Zed.

How do I fix "No usable bwrap binary" in Zed on Linux?

Install Bubblewrap, for example with sudo apt install bubblewrap, and retry the command. Zed uses it to sandbox the agent's terminal commands.

Start building today.

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