PentAGI is a self-hosted platform that runs autonomous AI agents to perform penetration testing tasks. It's built for security engineers, researchers, and teams who want an AI-driven pentesting workflow without giving up control over infrastructure or data. The system executes all actions inside sandboxed Docker containers, connects to a range of LLM providers, and stores results in PostgreSQL with pgvector for long-term memory.
Under the hood, PentAGI uses a multi-agent architecture: an orchestrator delegates work to specialized agents (researcher, developer, executor) that each handle a piece of the pentesting flow, from reconnaissance to exploitation to reporting. It ships with a GraphQL and REST API, a web UI, and integrations for observability (Grafana, Prometheus, Langfuse) and an optional Neo4j-backed knowledge graph (Graphiti) for tracking semantic relationships between findings.
PentAGI fits teams that want to automate parts of a penetration test, security researchers experimenting with agentic AI on offensive security tasks, and organizations that need a self-hosted alternative to cloud-only AI pentesting tools where data control matters. It's also useful if you want to compare how different LLM providers perform on the same pentesting workflow, since provider swapping is built in.
It's not a fit if you're looking for a Breach and Attack Simulation (BAS) product with predefined attack campaigns, like CALDERA-style adversary emulation; the README explicitly states this kind of scripted attack automation is conceptual, not implemented. It's also not suited for teams that need JSON export of flow reports, since that output format isn't currently supported (Markdown, PDF, and web view are). And because agents execute real tools against real targets, it requires proper authorization and isolation controls before pointing it at anything you don't own or have explicit permission to test.
PentAGI is designed to run via Docker Compose, with environment variables controlling LLM provider credentials, search API keys, and optional integrations (Langfuse, Graphiti, monitoring stack).
# clone the repository
git clone https://github.com/vxcontrol/pentagi.git
cd pentagi
# copy and edit the environment configuration
cp .env.example .env
# edit .env to add your LLM provider API key(s) (OpenAI, Anthropic, Ollama, etc.)
# and any optional search or monitoring integrations
# start the stack
docker compose up -d
After startup, the web UI is available for login, from which you can configure LLM providers, launch pentesting flows, and review reports. The project also documents multi-instance deployments (via TENANT_ID), Docker access controls for agents, and a guide for running local models through vLLM. Development and build instructions for contributors are included separately in the repository for those working on the Go backend or the React/TypeScript frontend.