#1010th of 13 in Security

pentestgpt

Autonomous pentest agent that drives Claude Code or Codex against a target

Stars
16.1k
License
MIT
Last commit
Jul 2026
Last release
Dec 2025
Language
Python
Stars, last 30 weeks+4,031
26 Mar 2026: 12,065 stars2 Apr 2026: 12,181 stars9 Apr 2026: 12,314 stars16 Apr 2026: 12,428 stars23 Apr 2026: 12,620 stars30 Apr 2026: 12,719 stars7 May 2026: 12,838 stars14 May 2026: 12,937 stars21 May 2026: 13,083 stars28 May 2026: 13,208 stars4 Jun 2026: 13,354 stars11 Jun 2026: 13,515 stars18 Jun 2026: 13,668 stars25 Jun 2026: 13,803 stars2 Jul 2026: 13,949 stars9 Jul 2026: 14,059 stars16 Jul 2026: 14,173 stars23 Jul 2026: 14,355 stars30 Jul 2026: 14,512 stars6 Aug 2026: 14,635 stars13 Aug 2026: 14,743 stars20 Aug 2026: 14,887 stars27 Aug 2026: 15,017 stars3 Sept 2026: 15,128 stars10 Sept 2026: 15,333 stars17 Sept 2026: 15,448 stars24 Sept 2026: 15,532 stars1 Oct 2026: 15,626 stars8 Oct 2026: 15,814 stars15 Oct 2026: 15,961 stars22 Oct 2026: 16,096 stars

12,065 on 26 Mar 202616,096 on 22 Oct 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

PentestGPT runs a staged pipeline against a target IP or URL, using Claude Code or Codex as the backend to run tools and reason. CTF mode goes recon, exploit, walkthrough; pentest mode goes asset discovery, vulnerability identification, report. A separate pentestgpt-legacy mode keeps the interactive three-session design from the USENIX Security 2024 paper and supports several providers plus Ollama.

Who it is for: Pentesters and CTF players running authorized tests with LLM agents

Strengths

  • Staged pipelines for CTF and pentest modes, with saved and resumable sessions
  • Legacy interactive mode supports OpenAI, Anthropic, Gemini, DeepSeek, xAI, Qwen, Kimi and Ollama
  • Docker image bundles Claude Code and Codex CLIs, with logins persisted in volumes
  • Backed by a USENIX Security 2024 paper; reports 90/104 on an XBOW suite run in Dec 2025

Weaknesses

  • Autonomous pipeline supports only Claude Code and Codex backends
  • Needs an authenticated Claude Code or Codex CLI, so a paid account or API access
  • Sends anonymous usage telemetry to Langfuse by default; opt out with a flag
  • XBOW result is historical; the shipped CLI has no XBOW runner

What it needs

  • no GPU
  • Docker + Compose
  • Needs Python 3.12+, uv, Claude Code CLI, Codex CLI, Langfuse (telemetry, can be disabled)
  • Models: Claude, OpenAI, Google Gemini, DeepSeek, xAI Grok

Quick answers

Is pentestgpt open source?

Yes. Its code is on GitHub under the MIT license.

Can you run pentestgpt with Docker?

Yes. Its repository has a Docker setup: a Dockerfile, a Compose file or a published image.

Does pentestgpt need a GPU?

No, it runs without one.

Also in Security

See all 13
Also in Security
RankProjectScore
1shannonAutonomous pentester that exploits web apps and APIs using source code analysis49.3k starsAGPL-3.091 out of 100
2StrixAutonomous AI pentesting agents that validate vulnerabilities with working exploits71.5k starsApache-2.085 out of 100
3ifixaiPython CLI that audits AI agents for policy, access and reliability failures33.8k starsApache-2.084 out of 100
#4pentagiAutonomous multi-agent penetration testing system with sandboxed security tools32.2k starsMIT79 out of 100
#5ai-infra-guardRed-teaming platform for AI infra CVEs, MCP servers, agent skills and jailbreaks7.1k starsApache-2.072 out of 100