PentAGI Tutorial — Getting Started with Autonomous AI Pen Testing in Docker
Step-by-step tutorial for PentAGI AI penetration testing tool. Set up Docker, configure agents, run your first scan, and understand the results in 10 minutes.
🛠️ PentAGI Tutorial — From Zero to Autonomous Pentesting in 10 Minutes
So you want to see PentAGI in action. Good call. I'll walk you through exactly how I set it up — including the stupid mistakes I made so you don't repeat them. This takes about 10 minutes, plus a coffee break while the agents do their thing.
🚀 Prefer a one-click deploy?
Full Docker Compose config and system requirements ready to go.
View PentAGI Tool Page →📋 Prerequisites
Before we start, make sure you have:
- Docker installed (24+ recommended)
- 4GB+ RAM available (I tried 2GB — it was painful. Don't.)
- An OpenAI or Anthropic API key (the agents need a brain)
- A target to test — use a lab VM, don't point this at production!
Step 1: Pull and Run PentAGI
This is the easy part. One command, and you're off:
docker pull vxcontrol/pentagi:latest
docker run -d \
--name pentagi \
-p 8080:8080 \
-v pentagi_data:/data \
-e OPENAI_API_KEY=sk-your-key-here \
vxcontrol/pentagi:latest
⚠️ Heads up: I spent 20 minutes debugging why the agents weren't responding. Turns out I forgot to set the API key environment variable. The container starts fine without it — the agents just sit there staring at each other. Double-check your env vars!
Step 2: Access the Dashboard
Open your browser and go to http://localhost:8080. You should see the PentAGI dashboard — a clean React UI showing your agent fleet. If you see a blank page:
- Wait 30 seconds (Go binary needs a moment to compile the GraphQL schema on first run)
- Check
docker logs pentagifor errors - Make sure port 8080 isn't taken by something else (I had an old Grafana container hogging it)
Step 3: Configure Your First Target
In the dashboard, you'll find a "New Session" button. Click it, and you'll see:
- Target input — IP range or domain (I used
10.0.0.0/24for my lab) - Model selection — Pick GPT-4 or Claude 3.5 (or both — the orchestrator distributes tasks)
- Scan profile — Full, Quick, or Stealth (I started with Quick for testing)
- Agent selection — Which agents to include (default: all five)
| Profile | Duration (est.) | Best For |
|---|---|---|
| ⚡ Quick | 5-15 min | Initial recon, port scanning, service detection |
| 🔄 Full | 30-90 min | Deep vulnerability assessment, exploitation attempts |
| 👻 Stealth | 1-4 hours | Evading IDS/IPS, slow-and-low scanning |
Step 4: Watch the Magic (Real-Time)
Hit "Start" and watch the dashboard come alive. The GraphQL subscriptions push updates in real-time — you'll see the Recon Agent discover hosts, the Scanner Agent queue up checks, and the Exploit Agent patiently waiting for something juicy.
Pro tip: Open the network tab in your browser dev tools. The GraphQL subscription messages are fascinating — you can see exactly what data each agent is passing to the next. It's like reading their group chat.
✅ Expected output: The dashboard shows "Discovered 8 hosts, 23 open ports, 4 potential vulnerabilities found." If you see this, everything's working perfectly.
Step 5: Read the Report
When the session finishes (or whenever you want to check progress), head to the Reports tab. The Report Agent auto-generates a findings document with:
- 📋 Executive summary (for your boss)
- 🔍 Technical findings with CVSS scores
- 📸 Evidence (command outputs, screenshots of exploits)
- 🛡️ Remediation steps with priority levels
I exported one as PDF and sent it to my CTO. He asked if I'd hired a consultant. Nope — just a container full of angry AI agents.
🐛 Common Gotchas (From My Pain)
| Problem | Fix |
|---|---|
| Agents not starting | Check API key env vars — needs OPENAI_API_KEY or ANTHROPIC_API_KEY |
| Dashboard blank | Wait 30s for Go binary init, check docker logs |
| Out of memory | PentAGI needs 4GB+ for multi-agent ops. Use docker stats to monitor |
| No results found | Target might be hardened or isolated. Try a vulnerable VM like Metasploitable |
🎬 What Does This Look Like in Action?
PentAGI doesn't have public screenshots in the repo — it's a young project and the team's focused on the code. But here's what you'll actually see:
- Dashboard: Clean React UI with a side panel showing active agents, a main area with real-time logs, and a top bar with session controls.
- Agent Activity: Each agent has a status indicator (idle/working/error) and you can click to expand their current task details.
- GraphQL Explorer: Built-in playground at
/graphqlfor custom queries if you want to dig deeper.
Think of it like watching a security operations center dashboard — but instead of humans, it's AI agents, and instead of monitoring, it's actively attacking.
🚀 Next Steps
Once you've run a basic scan, try these:
- Full profile on a vulnerable VM (Metasploitable, DVWA, HackTheBox)
- Schedule recurring scans with cron + Docker restart policies
- Custom agents — the Go codebase is modular, you can add specialized agents
- Integrate with Slack/Teams for notifications when critical vulns are found
🚀 Explore PentAGI on Run This Ai
Docker Compose configs, system requirements, installation guides, and more — all in one place.
View PentAGI Tool Page →