Skip to content

How to use uncensored abliterated models with Goose

Add abliterated DeepSeek and GLM models to Goose as a custom OpenAI-compatible provider with goose configure. Tested on Goose 1.61.1.

Published Updated 3 min read

Goose can add any OpenAI-compatible API as a custom provider, which is how you run it on an uncensored, abliterated model. We set up Goose 1.61.1 against CommentLLM's abliterated DeepSeek V4.1 Flash model and gave it a real bug to fix. It fixed it in 20.5 seconds.

The short version: run goose configure, choose Custom Providers, add an OpenAI Compatible provider with the URL https://api.commentllm.com/v1, your CommentLLM key and the model IDs, then set each model's context_limit to 1048576 in the file Goose writes.

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

  • Goose. We used the CLI, version 1.61.1, installed with the install script from the Goose documentation.
  • A CommentLLM API key. Create one under Keys in the console after you sign up and add credit.

Step 1: add the custom provider

Run goose configure. The first run asks about anonymous usage data; either answer works. Choose Custom Providers, then Add, and answer the prompts:

Prompt Answer
Provider type OpenAI Compatible
Name CommentLLM
API URL https://api.commentllm.com/v1
Requires authentication Yes, with a static API key. Paste your cllm_ key
Models deepseek-v4.1-flash-abliterated, glm-5.3-abliterated, glm-5.3-flash-abliterated, deepseek-v4.1-flash-abliterated-fast
Supports streaming Yes
Base path Skip
Custom headers No

Then choose deepseek-v4.1-flash-abliterated as the default model.

goose configure adding CommentLLM as an OpenAI Compatible custom provider

Goose writes the provider to ~/.config/goose/custom_providers/custom_commentllm.json and stores the key in your system keyring under CUSTOM_COMMENTLLM_API_KEY. On a machine with no keyring, such as a container, set GOOSE_DISABLE_KEYRING=1 and Goose keeps it in ~/.config/goose/secrets.yaml instead.

Step 2: set the context window

Goose saves each model with "context_limit": null and then assumes 128,000 tokens, so the status bar shows 0/128k. Open ~/.config/goose/custom_providers/custom_commentllm.json and set the limit on each model:

{
  "name": "deepseek-v4.1-flash-abliterated",
  "context_limit": 1048576
}

Leave the other fields as Goose wrote them. After the change the status bar shows 1.0M.

Step 3: start a session

Run goose session in your project.

Goose 1.61.1 starting a session on custom_commentllm with deepseek-v4.1-flash-abliterated

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.

Goose ran the tests, read the script, changed match.group(1) to match.group(2) and ran the tests again: 2 passed. The turn took 20.5 seconds and used about 6,000 tokens.

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

Common problems and fixes

What you see Why Fix
Status bar shows 0/128k context_limit is null for a custom model Set "context_limit": 1048576 on each model, as in step 2
The key cannot be saved There is no system keyring, which is common in containers and over SSH Set GOOSE_DISABLE_KEYRING=1 before goose configure
A model is missing from the list Only the model IDs typed in the wizard are saved Add another entry under models in the JSON file

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

Yes. Goose accepts a custom OpenAI-compatible provider. We ran Goose 1.61.1 on DeepSeek V4.1 Flash Abliterated through CommentLLM, and it fixed a failing test in 20.5 seconds.

How do I add a custom provider to Goose?

Run goose configure, choose Custom Providers, then Add. Pick OpenAI Compatible, give the provider a name, enter the API's base URL and key, and list the model IDs separated by commas.

Where does Goose store a custom provider?

In ~/.config/goose/custom_providers/ as a JSON file named after the provider, such as custom_commentllm.json. The API key goes to the system keyring, or to ~/.config/goose/secrets.yaml when GOOSE_DISABLE_KEYRING is set to 1.

Why does Goose show a 128k context window for my custom model?

Goose saves custom models with context_limit set to null and falls back to 128,000 tokens. Set context_limit to the model's real window, 1048576 for CommentLLM's models, in the provider's JSON file.

Start building today.

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