Aider works with any OpenAI-compatible API, and it does not need tool calling: it asks the model for edit blocks and applies them itself. That makes it one of the easiest ways to pair-program with an uncensored, abliterated model. We ran Aider 0.86.2 on CommentLLM's abliterated DeepSeek V4.1 Flash model and it fixed a failing test on the first attempt.
The short version: set OPENAI_API_BASE to https://api.commentllm.com/v1, set OPENAI_API_KEY to your CommentLLM key, and start Aider with --model openai/deepseek-v4.1-flash-abliterated. The openai/ prefix is required.

What you need
- Aider. We used version 0.86.2, installed with
uv tool install aider-chat.pipx install aider-chatworks too. - A CommentLLM API key. Create one under Keys in the console after you sign up and add credit.
Step 1: set the key
export OPENAI_API_KEY="cllm_..."
Step 2: add .aider.conf.yml to your project
openai-api-base: https://api.commentllm.com/v1
model: openai/deepseek-v4.1-flash-abliterated
weak-model: openai/glm-5.3-flash-abliterated
edit-format: diff
test-cmd: python -m pytest -q
auto-test: true
What matters in it:
| Setting | Why |
|---|---|
model: openai/... |
The openai/ prefix tells Aider to treat the model as OpenAI-compatible. Without it Aider cannot tell which API to call |
weak-model |
The model Aider uses for commit messages. GLM 5.3 Flash answers quickly |
edit-format: diff |
Aider rewrites whole files for a model it does not know. With diff it sends search-and-replace blocks instead, and DeepSeek applied them on the first try |
test-cmd and auto-test |
Aider runs your tests after each edit and shows the model any failure. Change the command to your own |
Step 3: tell Aider the model's limits
Without this file Aider prints Unknown context window size and costs, using sane defaults and offers to open a documentation page. Create .aider.model.metadata.json next to the config:
{
"openai/deepseek-v4.1-flash-abliterated": {
"max_input_tokens": 1048576,
"max_output_tokens": 32768,
"litellm_provider": "openai",
"mode": "chat"
},
"openai/glm-5.3-flash-abliterated": {
"max_input_tokens": 1048576,
"max_output_tokens": 32768,
"litellm_provider": "openai",
"mode": "chat"
}
}
Step 4: start Aider
Run aider with the files you want it to edit:
aider auth_triage.py test_auth_triage.py
The first run asks whether to add .aider* to .gitignore. Say yes. The header then shows both models and the edit format, with no warnings.

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.
Aider sent 3,100 tokens and received 96. DeepSeek answered with a single search-and-replace block, Aider applied it, committed it with a message written by GLM 5.3 Flash, and ran the tests on its own: 2 passed.

Run a single prompt without the chat
aider --message "Fix the failing tests" auth_triage.py test_auth_triage.py --yes-always
This took 21.1 seconds in our test. --yes-always answers every confirmation for you, so use it in a sandbox.
Common problems and fixes
| What you see | Why | Fix |
|---|---|---|
Unknown context window size and costs, using sane defaults |
The model is not in Aider's built-in list | Add .aider.model.metadata.json as in step 3, or pass --no-show-model-warnings |
| Aider rewrites the whole file for a one-line change | Unknown models default to the whole edit format |
Set edit-format: diff |
| A provider or model-not-found error | The model name has no openai/ prefix |
Use openai/deepseek-v4.1-flash-abliterated |
| Authentication error | OPENAI_API_KEY is not set in this shell |
Export it, or put openai-api-key in the config of a private project |
| Cost shows as zero | Aider has no prices for the model | Read usage in the CommentLLM console |
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 Aider use uncensored or abliterated models?
Yes. Aider accepts any OpenAI-compatible API. We ran Aider 0.86.2 on DeepSeek V4.1 Flash Abliterated through CommentLLM and it fixed a failing test with one search-and-replace edit.
How do I point Aider at a custom OpenAI-compatible API?
Set OPENAI_API_BASE, or openai-api-base in .aider.conf.yml, to the API's base URL, set OPENAI_API_KEY to your key, and name the model with an openai/ prefix, such as openai/deepseek-v4.1-flash-abliterated.
Does Aider need a model that supports tool calling?
No. Aider asks the model to write edit blocks in plain text and applies them itself, so any chat model works. CommentLLM's models support tool calling as well, which other agents use.
How do I stop Aider's unknown model warning?
Add a .aider.model.metadata.json file that gives the model's max_input_tokens and max_output_tokens, or start Aider with --no-show-model-warnings.
Which edit format should I use with DeepSeek in Aider?
We used diff. Aider's default for an unknown model is whole, which rewrites the full file. With edit-format set to diff, DeepSeek V4.1 Flash Abliterated produced a search-and-replace block that applied on the first try.
