PentestGPT Review 2026: Open-Source LLM Pentest Agent
PentestGPT began as a research project. Gelei Deng (GitHub user GreyDGL) and co-authors published the paper PentestGPT: Evaluating and Harnessing Large Language Models for Automated Penetration Testing at USENIX Security 2024, and the repository has grown from there into an autonomous agent. The current version hands control to Claude Code or Codex, lets the model run security tools against a target, and moves the work through a fixed series of stages. The repo had 15,647 GitHub stars when we scored it.
This review covers what the README documents, what running it will cost you, how strong the evidence is, and who should bother. We have not run it against a target. Everything below comes from the project's public pages.
What PentestGPT does
The main entry point is a CLI. Per the README, pentestgpt --target <ip> starts in CTF mode by default, where the agent works through recon, then exploitation, then writes a walkthrough. A second mode, --mode pentest, follows asset discovery, then vulnerability identification, then a report. Each stage gets the output of the stage before it, so the exploit step works from what recon actually found rather than starting cold. You can add context with --instruction, and sessions can be saved and resumed (--list-sessions shows them).
The repo lists the CTF categories it targets: web, crypto, reverse engineering, forensics, binary exploitation (PWN) and privilege escalation. That list is aimed at challenge boxes and capture-the-flag events more than client networks, and the default mode reflects that.
The older interactive tool still ships as pentestgpt-legacy. It is the design from the original paper: three LLM sessions split the work into reasoning, generation and parsing, and together they keep a Pentesting Task Tree. You drive it with commands such as next, more, todo and discuss. Legacy mode is also where provider choice opens up. The README lists OpenAI, Anthropic, Google Gemini, DeepSeek, xAI Grok, Alibaba Qwen, Moonshot Kimi and local Ollama, and only providers with API keys configured get switched on. The autonomous pipeline itself supports only Claude Code and Codex.
Setup expects Python 3.12+ and the uv package manager, then make install. For local runs you need the Claude Code CLI or the Codex CLI installed and logged in. There is also a Docker route that bundles both CLIs and keeps logins in named volumes, so you authenticate once with make docker-login and reuse the session. Per the README, the tool sends anonymous usage data to a Langfuse project and says command output, credentials and flag values are excluded. You can switch this off with --no-telemetry or LANGFUSE_ENABLED=false. Anyone working under a client NDA should do that by default.
On performance, the README reports an "86.5% success rate (90/104 benchmarks)" on the XBOW validation suite from a December 2025 experiment. The project is careful about this figure. It calls it a historical research result rather than a guarantee for the current agent, and notes that the XBOW harness lives outside the repo, with no XBOW runner in the CLI, Makefile, CI or Docker image. So you cannot reproduce the figure from the shipped code, and it is self-reported. We found no independent results from real client engagements.
Pricing breakdown
The code costs $0 and ships under the MIT licence, so you can fork it, change it and use it commercially. That is the whole of PentestGPT's own pricing. There is no hosted tier, no paid plan and no vendor support contract.
The real bill is the model. The autonomous pipeline needs either Claude Code or Codex, which means a paid Anthropic or OpenAI account or API access. The README gives no cost estimate per run, and agent loops that call tools over and over can burn through tokens quickly on a stubborn box. Budget for that before pointing it at a full CTF event.
Ollama is the only route with no model cost, and it only works in legacy mode. You get the older, human-in-the-loop task-tree workflow instead of the autonomous agent, and output depends on how well your local model handles security reasoning. For air-gapped or privacy-sensitive work it may still be the only acceptable option.
How we scored it
Scores come from public evidence (the tool's own pages and documentation, and independent reviews); we do not test every tool hands-on. Exact numbers for each criterion are in the full score breakdown. Here is the evidence behind each one.
Output quality. In its favour: the USENIX paper, a large star count and coverage of six CTF categories. Against it: the only performance figure is the README's own XBOW number, which the authors label historical and which the shipped code cannot reproduce. That keeps this criterion above average without letting it go high.
Ease of use. This is the weakest area. You need a recent Python, uv, and a logged-in vendor CLI before anything runs, and the README is the only documentation. The Docker flow helps, but there is no docs site, no troubleshooting guide and no hosted option. Expect to read the issue tracker when something breaks.
Pricing value. Free MIT code is hard to argue with, and the score reflects that. It stops short of the top because the autonomous mode cannot run without a paid model subscription or API account.
API and integration. Swappable backends and a long provider list in legacy mode count for something. There is no formal API, SDK or webhook interface, so wiring it into a CI pipeline or a reporting platform means wrapping the CLI yourself.
Problem fit. The staged design matches how CTF solves and many pentests are actually run, and the project does what it says it does. The gap is proof on real engagements, where scope rules, fragile production systems and noisy networks look nothing like a challenge box.
As of 2026-11-05
These facts were captured on 2026-11-05 from the public repository at https://github.com/GreyDGL/PentestGPT. The latest release tag is v1.0.0, published 2025-12-24. The licence is MIT. The most recent commit is dated 2026-07-14. This is a dated snapshot of public pages, not a record of first-hand use.
Who is it for
The best fit is a CTF player or security practitioner who already pays for Claude Code or Codex and wants a structured agent wrapped around it. If you already know what good recon output looks like, you can judge whether the agent's exploitation step is reasonable and step in when it isn't. Researchers studying LLM-driven offensive security also get a citable baseline with an open codebase.
It suits consultancies doing paid client work less well. There is no support, no independent evidence from real engagements, and telemetry is on by default. The project's own disclaimer limits it to education and authorised testing. Use it as an assistant on scoped targets you have written permission to attack, and keep a human checking every action against the rules of engagement.
Teams that need a documented API, or want a hosted product they can hand to juniors, should look at other agents in this category such as Strix, HexStrike AI or CAI, and check each one's evidence with the same care.
Verdict
PentestGPT scores 6.2/10. It is a credible, free, research-backed agent with a sensible staged workflow, and the authors are unusually honest about the limits of their own benchmark. The weak points are setup friction, documentation that stops at the README, a model bill you have to estimate yourself, and no outside evidence that it holds up beyond CTF-style targets. The commit history at capture also showed a gap of several months, which is worth watching if you plan to depend on it.
Our recommendation: if you already have Claude Code or Codex access and work on CTFs or lab boxes, install PentestGPT through the Docker flow, turn telemetry off, and treat it as a fast junior that needs supervision. If you need proven results on client engagements or a proper integration API, skip it for now.