AI for pentesting tools in 2026: open-source agents, what they do, how to wire a model in
The main open-source AI pentesting tools in 2026 are PentestGPT, PentAGI and Strix, with CAI still installable but archived, and nuclei offering an -ai flag that writes templates from a plain-language prompt. All of them
The main open-source AI pentesting tools in 2026 are PentestGPT, PentAGI and Strix, with CAI still installable but archived, and nuclei offering an -ai flag that writes templates from a plain-language prompt. All of them use an LLM to plan, run and summarise standard tooling rather than to replace it. Most accept a custom OpenAI-compatible endpoint, so you can choose the model. Every one of them is meant for targets you own or have written authorization to test, inside an agreed scope, and the project READMEs say so.
The tools, checked against their repos
Everything below was read from each project's README or official docs in late November 2026. Projects in this space move fast, so check the repo before you rely on a flag.
| Tool | What it is | Model wiring | Status |
|---|---|---|---|
| PentestGPT | Agentic pentest framework from a USENIX Security 2024 paper; CTF and pentest modes | Autonomous mode drives an agent CLI backend; a legacy interactive mode supports several providers and local models | Active, MIT |
| PentAGI | Self-hosted multi-agent system with a web UI; tools run in isolated Docker containers | Many built-in providers, plus LLM_SERVER_URL / LLM_SERVER_KEY / LLM_SERVER_MODEL for a custom endpoint (marked experimental) |
Active, MIT |
| Strix | Agents that test an app or a code directory and validate findings with proof-of-concepts |
STRIX_LLM in LiteLLM format, LLM_API_KEY, LLM_API_BASE
|
Active, Apache-2.0 |
| CAI | Framework for offensive and defensive security agents |
CAI_MODEL plus provider keys |
Archived, frozen at 0.5.10 |
nuclei -ai
|
Generates and runs a template from a prompt | Uses the ProjectDiscovery API; needs a PDCP key; no bring-your-own model | Active |
A few details worth knowing before you install anything:
-
PentestGPT sends anonymous usage telemetry by default. Its README documents
--no-telemetryandLANGFUSE_ENABLED=falseto turn it off. -
PentAGI is installed with an interactive installer or a plain
docker compose up -dafter you fill in.env. Change the default admin account on first login. -
Strix needs Docker running. It runs headless with
-n, which suits CI against a staging build. -
CAI now points to a successor project. The open-source line still installs with
pip install cai-framework, but it receives no fixes, and its README asks for use only in isolated environments. -
nuclei
-aihas a daily query limit set by ProjectDiscovery, and generated templates are saved both locally and in your cloud account. That second copy matters if your prompt describes a client's internals.
Where an LLM helps and where it does not
The agents are good at the tedious middle of an engagement and weak at judgement. Plan your use around that.
It helps with:
- Recon triage. Turning a few thousand lines of scanner output into a ranked list of services worth a human look, with reasons.
- Reading unfamiliar code and configs. Explaining what an endpoint does and where input reaches a sink, so you know what to test by hand.
- Drafting checks. A first version of a nuclei template or a test script for a known, patched CVE in your lab, which you then review.
- Report writing. Turning notes, requests and responses into findings with reproduction steps, impact and remediation in a consistent format.
- Keeping state. Agents remember which hosts and paths they have covered, which is easy to lose track of by hand on a large scope.
It does not replace:
- Scoping decisions. An agent will happily follow a redirect to a host that is out of scope. You need allow-lists, not trust.
- Impact judgement. Whether a finding matters depends on the business, which the model does not know.
- Verification. Models report vulnerabilities that do not exist. Strix's design of proving each finding with a proof-of-concept exists for this reason, and you should still reproduce it yourself.
- Care with production. An agent that retries a destructive request ten times is a real risk on a live system.
How to plug in an OpenAI-compatible model
Most of these tools speak the OpenAI chat completions format, so any compatible endpoint works. The pattern is the same everywhere: a base URL, a key and a model id.
Strix
Strix uses LiteLLM model names. The openai/ prefix plus a custom base URL points it at any compatible API. Its configuration docs also describe STRIX_API_TYPE, which you should set to chat_completions when the endpoint does not serve the Responses API (Strix configuration).
export STRIX_LLM="openai/deepseek-v4.1-uncensored"
export LLM_API_KEY="$CHAINLESS_API_KEY"
export LLM_API_BASE="https://chainless.one/v1"
export STRIX_API_TYPE="chat_completions"
strix -n --target ./my-app
PentAGI
PentAGI reads its custom endpoint from .env. The README lists these variables as experimental, so read the current .env.example before you rely on the exact names.
LLM_SERVER_URL=https://chainless.one/v1
LLM_SERVER_KEY=cl-...
LLM_SERVER_MODEL=kimi-k3.1-pro-uncensored
Check the endpoint first
Before you hand a key to an agent, confirm the model id and that tool calls work. A plain request is enough:
curl https://chainless.one/v1/models \
-H "Authorization: Bearer $CHAINLESS_API_KEY"
The response is a list object whose data array holds the model ids you can pass to the tool. A 401 means a bad key, and a 404 on a completion means the model id is wrong.
Why the model choice matters here: agents that run for an hour stall when the model refuses a step halfway through, for example when asked to explain a public exploit for a patched CVE on a lab VM. Mainstream assistants tend to do this on security work. An uncensored model keeps going, which also means the guardrails have to come from your scope and your sandbox, not from the model.
Authorization and scope
Every tool above says the same thing in its README, and it is not boilerplate.
- Written authorization first. Test only systems you own or that a client has authorized in writing, with an agreed scope, time window and contact. Keep the document with the engagement files.
- Encode the scope. Give the agent an explicit allow-list of hosts and paths, and block everything else at the network level. Do not rely on the prompt.
- Run tools in an isolated lab. Containers or VMs with no route to anything out of scope. PentAGI and Strix both run their tooling in Docker for this reason.
- Mind where data goes. Scan output and client code are sensitive. Check what the tool sends as telemetry and what the model provider keeps. Chainless does not store API prompts or answers.
- Practise on legal targets. CTF platforms, intentionally vulnerable apps and your own homelab are the right place to learn how an agent behaves before it touches a client.
The available models, all with 1M context and tool calls, are on the models page, and request formats, streaming and error codes are in the API reference.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.