PentAGI
Connect PentAGI to Abliterator through its custom LLM provider: LLM_SERVER settings, a per-agent model file, embeddings, a ctester check and fixes.
PentAGI's custom provider calls any OpenAI-compatible Chat Completions API. Set LLM_SERVER_URL to https://abliterator.ai/v1 and LLM_SERVER_KEY to your Abliterator key, and mount a provider file that assigns kimi-k3.1-pro-abliterated or deepseek-v4.1-flash-abliterated to each of PentAGI's 13 agent types. Abliterator has no embeddings endpoint, so configure EMBEDDING_* separately or turn it off.
How PentAGI calls Abliterator
PentAGI is an open-source system of autonomous agents for penetration testing, published by VXControl. It runs as a Docker Compose stack with a web UI, and each task, which PentAGI calls a flow, gets its own sandbox container where the agents run tools. This guide follows the main branch at commit cffed94 (October 2026), checked 2026-12-02. The configuration was verified against that source code.
PentAGI's custom provider (custom.go) builds an OpenAI Chat Completions client from the LLM_SERVER_* variables. What it needs from the API, and what Abliterator serves:
| PentAGI needs | Abliterator |
|---|---|
| Chat Completions with valid tool-call JSON. The README says every agent works through tool calls | Supported on both models; see tool calling |
GET <LLM_SERVER_URL>/models, to read model limits |
Served at https://abliterator.ai/v1/models, with each model's context length |
reasoning_effort and reasoning_content |
Supported; see reasoning |
JSON output for the simple_json agent |
Supported; see structured outputs |
| An embeddings API for vector memory | Not served. Use another provider, or turn memory off |
Only for systems you own or have written permission to test. PentAGI's agents run commands on their own, and each flow's sandbox publishes ports on the Docker host by default, so run PentAGI on a lab host and network you control.
Before you start
- Docker and Docker Compose, at least 2 vCPU, 4 GB of RAM and 20 GB of free disk, per PentAGI's system requirements.
- An Abliterator key from /keys. Create one for PentAGI only, with a spend limit (authentication). New accounts get $10 of credit.
- An embeddings decision: another provider for vector memory, or none.
- A lab target you own on a network PentAGI's containers can reach.
Install PentAGI
PentAGI recommends its interactive installer, which has a Custom provider form. The manual steps from the README give the same result and are easier to repeat. Docker Compose mounts the three example provider files, so they must exist even if you do not use them:
mkdir pentagi && cd pentagi
# Pin the release this guide was checked against instead of the moving master branch.
BASE=https://raw.githubusercontent.com/vxcontrol/pentagi/v2.2.0
curl -fsSL -o .env "$BASE/.env.example"
curl -fsSL -o example.custom.provider.yml "$BASE/examples/configs/custom-openai.provider.yml"
curl -fsSL -o example.ollama.provider.yml "$BASE/examples/configs/ollama-llama318b.provider.yml"
curl -fsSL -o example.bedrock.provider.yml "$BASE/examples/configs/bedrock.provider.yml"
curl -fsSL -O "$BASE/docker-compose.yml"
echo 'PENTAGI_IMAGE=vxcontrol/pentagi:2.2.0' >> .env
Compose pulls vxcontrol/pentagi:latest unless PENTAGI_IMAGE is set, so the last line pins the image to the same release. Read the downloaded files before you start them.
Before the first start, change the security settings the README lists, such as COOKIE_SIGNING_SALT and the PostgreSQL password.
Write the provider file
The provider file assigns a model and request settings to each agent type. Save this as abliterator.provider.yml next to docker-compose.yml:
# Helper agents: DeepSeek V4.1 Flash Abliterated, reasoning off
simple:
model: "deepseek-v4.1-flash-abliterated"
max_tokens: 8192
extra_body:
reasoning_effort: none
simple_json:
model: "deepseek-v4.1-flash-abliterated"
max_tokens: 4096
json: true
extra_body:
reasoning_effort: none
searcher:
model: "deepseek-v4.1-flash-abliterated"
max_tokens: 8192
extra_body:
reasoning_effort: none
enricher:
model: "deepseek-v4.1-flash-abliterated"
max_tokens: 8192
extra_body:
reasoning_effort: none
reflector:
model: "deepseek-v4.1-flash-abliterated"
max_tokens: 8192
extra_body:
reasoning_effort: none
# Planning and testing agents: Kimi K3.1 Pro Abliterated
primary_agent:
model: "kimi-k3.1-pro-abliterated"
max_tokens: 32768
extra_body:
reasoning_effort: high
assistant:
model: "kimi-k3.1-pro-abliterated"
max_tokens: 32768
extra_body:
reasoning_effort: high
generator:
model: "kimi-k3.1-pro-abliterated"
max_tokens: 32768
extra_body:
reasoning_effort: high
refiner:
model: "kimi-k3.1-pro-abliterated"
max_tokens: 32768
extra_body:
reasoning_effort: high
adviser:
model: "kimi-k3.1-pro-abliterated"
max_tokens: 32768
extra_body:
reasoning_effort: high
coder:
model: "kimi-k3.1-pro-abliterated"
max_tokens: 32768
extra_body:
reasoning_effort: high
installer:
model: "kimi-k3.1-pro-abliterated"
max_tokens: 32768
extra_body:
reasoning_effort: high
pentester:
model: "kimi-k3.1-pro-abliterated"
max_tokens: 32768
extra_body:
reasoning_effort: high
How the fields work, from PentAGI's provider config code:
| Field | Effect |
|---|---|
| Top-level keys | The 13 agent types. A type you leave out uses LLM_SERVER_MODEL with PentAGI's defaults |
model |
The model ID sent to Abliterator |
max_tokens |
Reasoning counts toward it, so the Kimi roles get 32,768. Without it the custom provider sends 16,384 |
extra_body |
Fields merged into the request body. reasoning_effort here goes to Abliterator as written |
json: true |
Asks for JSON output |
The split follows the defaults PentAGI ships for Anthropic models, which put a small model on simple, simple_json, reflector, searcher and enricher and larger models on the rest. The custom provider defaults to temperature 1.0 and top_p 1.0 unless the file sets them. deepseek-v4.1-flash-abliterated applies those values, and Abliterator ignores sampling settings for kimi-k3.1-pro-abliterated, whose sampling is fixed. You can add a price block per agent type with input, output and cache_read in USD per 1M tokens from /pricing, so PentAGI's cost display matches. Abliterator's own figure is in usage.cost.
Set the environment
Add these to .env:
LLM_SERVER_URL=https://abliterator.ai/v1
LLM_SERVER_KEY=sk-abl-v1-...
LLM_SERVER_MODEL=deepseek-v4.1-flash-abliterated
LLM_SERVER_CONFIG_PATH=/opt/pentagi/conf/custom.provider.yml
PENTAGI_LLM_SERVER_CONFIG_PATH=./abliterator.provider.yml
LLM_SERVER_PROVIDER=
LLM_SERVER_PRESERVE_REASONING=true
LLM_SERVER_API_TYPE=
EMBEDDING_PROVIDER=none
| Variable | Why |
|---|---|
LLM_SERVER_URL |
Abliterator's base URL, with /v1. PentAGI appends /chat/completions and /models |
LLM_SERVER_KEY |
Your Abliterator key. The custom provider refuses to start without it |
LLM_SERVER_MODEL |
The model for any agent type the provider file leaves out |
PENTAGI_LLM_SERVER_CONFIG_PATH |
The file on the host. Docker Compose mounts it at /opt/pentagi/conf/custom.provider.yml |
LLM_SERVER_CONFIG_PATH |
Where PentAGI reads the file inside the container |
LLM_SERVER_PROVIDER |
Leave empty. A value is added as a prefix to model names |
LLM_SERVER_PRESERVE_REASONING |
Sends earlier reasoning_content back with later turns. The README says Moonshot's Kimi API requires it |
LLM_SERVER_API_TYPE |
Leave empty for a plain OpenAI-compatible endpoint |
EMBEDDING_PROVIDER |
none turns off vector memory. To keep memory, set EMBEDDING_PROVIDER, EMBEDDING_URL, EMBEDDING_KEY and EMBEDDING_MODEL for a provider that serves embeddings |
The none value is accepted by PentAGI's embedder code but is not in the README's list of embedding providers. If you leave EMBEDDING_PROVIDER at its default, openai, PentAGI tries OpenAI's embeddings with OPEN_AI_KEY, and that fails when the key is empty.
Start and verify
docker compose up -d
docker exec -it pentagi /opt/pentagi/bin/ctester -agents simple,simple_json,primary_agent,pentester -groups basic,json,advanced -workers 2 -verbose
ctester is PentAGI's own provider test. It reads the file LLM_SERVER_CONFIG_PATH names and checks completions, JSON output and tool calls for each agent type you list. It runs 4 workers by default; -workers 2 keeps it within the Free plan's 2 requests at once. Then confirm the requests in your activity:
curl -s https://abliterator.ai/api/v1/activity -H "Authorization: Bearer $ABL_API_KEY" | head -c 600
Open https://localhost:8443, sign in as admin@pentagi.com with password admin, and change the password, as the README instructs.
Run a first flow
Start an intentionally insecure training app on a lab host you control. OWASP Juice Shop is made for this. Publish it on the lab host's network address, because localhost inside PentAGI's containers is the container itself:
docker run --rm -p 3000:3000 bkimminich/juice-shop
In the PentAGI web UI, start a new flow and describe the task in plain language, for example: "Assess the web app at http://LAB-HOST-IP:3000. It is an intentionally insecure training app on my lab network. List the services and weaknesses you find, with evidence for each. Do not modify data." Keep the scope to that host. Abliteration makes the model follow a restrictive system prompt less strictly: on DeepSeek V4.1 Flash, off-topic requests declined under a restrictive system prompt fell from 95% to 75%. Enforce scope with network rules on the lab host, not with the prompt alone.
The first thing a flow does is a tool call from the simple agent to choose the sandbox image. If that works, the provider setup is correct.
Choosing models per agent type
| Setup | Assignment | When |
|---|---|---|
| Split (the file above) | deepseek-v4.1-flash-abliterated for the 5 helper types, kimi-k3.1-pro-abliterated for the 8 planning and testing types | The default |
| All Flash | deepseek-v4.1-flash-abliterated for every type, with reasoning_effort: high on the planning types |
Practice runs and tight budgets |
| All Kimi | kimi-k3.1-pro-abliterated for every type | Long engagements where cost matters less than step quality |
kimi-k3.1-pro-abliterated is the flagship for long agent tasks: τ²-bench airline went from 86.7 to 87.3 after abliteration, within noise. Terminal-Bench 4.0 fell from 66.6 to 62.3, a drop that is plausible but not statistically shown (benchmarks), so compare both models on your lab target before a real engagement. Prices per 1M tokens: kimi-k3.1-pro-abliterated $4.00 input, $0.40 cached, $15.00 output; deepseek-v4.1-flash-abliterated $1.00, $0.10 and $2.00. Agent turns resend most of their context, and Abliterator bills repeated prefixes at the cached price (prompt caching).
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
missing API key for provider "custom", set it in the LLM_SERVER_KEY environment variable |
LLM_SERVER_KEY is empty in the container |
Set it in .env and recreate the containers |
Log warning: custom provider could not list its models |
LLM_SERVER_URL is wrong, often missing /v1 |
Set it to exactly https://abliterator.ai/v1 |
404 Model "..." is not available on abliterator |
A typo in the provider file, or LLM_SERVER_PROVIDER added a prefix |
Use the exact model IDs and leave LLM_SERVER_PROVIDER empty |
failed to select primary docker image via llm call |
The first tool call failed | Run ctester for the simple agent and fix what it reports |
| Embedding errors in the logs | EMBEDDING_PROVIDER is still openai with no key |
Set EMBEDDING_PROVIDER=none or configure another provider |
429 Too many requests in flight |
Parallel agents or ctester workers exceed your plan's concurrency |
Lower -workers, or use a plan with more concurrency |
402 errors |
Credit or the key's spend limit ran out | Add credit at /account |
| Provider file changes have no effect | The file is mounted when the container starts | docker compose up -d --force-recreate |
| The agent cannot reach the lab app | The target URL uses localhost |
Use the lab host's network address |
Frequently asked questions
Which PentAGI provider should I use for Abliterator?
The custom provider, configured with the LLM_SERVER_* variables. PentAGI documents it for OpenAI-compatible endpoints, and its provider file lets you name Abliterator's model IDs for each agent type.
Does PentAGI need embeddings?
Only for its vector memory. Abliterator does not serve embeddings, so point EMBEDDING_PROVIDER, EMBEDDING_URL and EMBEDDING_KEY at a provider that does, or set EMBEDDING_PROVIDER=none. With none, PentAGI leaves its memory and guide search tools out of the agents' toolset.
Should LLM_SERVER_PRESERVE_REASONING be true?
Yes when any agent type uses kimi-k3.1-pro-abliterated. It makes PentAGI send each earlier turn's reasoning_content back in later requests. PentAGI's README says Moonshot's Kimi API requires this, and kimi-k3.1-pro-abliterated is built on Kimi K3.1 Pro.
How do I keep a PentAGI run from spending too much?
Use an Abliterator key with a spend limit. PentAGI also caps tool calls per agent: 100 for general agents and 20 for limited ones by default, set with MAX_GENERAL_AGENT_TOOL_CALLS and MAX_LIMITED_AGENT_TOOL_CALLS.