Environment:0xSteph Pentest ai agents Claude Code CLI
| Knowledge Sources | |
|---|---|
| Domains | Infrastructure, Agent_Framework |
| Last Updated | 2026-10-22 12:00 GMT |
Overview
Linux/macOS/WSL environment with Claude Code CLI (Node.js 18+), Bash 4.0+, and git for installing and running pentest-ai agents.
Description
This environment provides the runtime context for the pentest-ai agent distribution system. Claude Code is the CLI host that routes user prompts to specialist agent `.md` files based on their YAML frontmatter descriptions. The installer (`install.sh`) copies agent definitions to `~/.claude/agents/` (global) or `.claude/agents/` (project-level) and optionally installs underlying pentest CLI tools (nmap, nuclei, sqlmap, etc.) via the system package manager, pipx, go, and cargo. The doctor audit (`doctor.sh`) verifies which tools are present.
= Usage
Use this environment for Agent Distribution — installing, updating, auditing, and uninstalling pentest-ai agents. It is the mandatory prerequisite for running the Install_Script and Doctor_Audit implementations. Tier 2 (execution-capable) agents also require the underlying pentest tools that this environment's installer provisions.
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| OS | Linux, macOS, or Windows (via WSL) | Bash 4.0+ for installer scripts |
| Hardware | Any | No GPU required; sufficient RAM for Node.js runtime |
| Disk | ~500MB | Node.js + Claude Code CLI + agent .md files; additional 2-5GB for optional pentest tools |
Dependencies
System Packages
- `bash` >= 4.0 (associative arrays, `set -euo pipefail`)
- `node` >= 18 (Node.js runtime for Claude Code CLI)
- `npm` (comes with Node.js; used to install `@anthropic-ai/claude-code`)
- `git` (required for one-line curl|bash bootstrap installer)
- `claude` (Claude Code CLI — installed via npm)
Optional Tool Ecosystem
The installer provisions pentest tools via multiple package managers:
System package manager (apt/brew/pacman/dnf/yum):
- `nmap`, `nikto`, `sqlmap`, `hydra`, `hashcat`, `john`, `curl`, `jq`, `python3`
pipx (Python tools):
- `crackmapexec`, `netexec`, `impacket`, `bloodhound`, `certipy-ad`
go (Go tools):
- `nuclei`, `ffuf`, `gobuster`, `dalfox`, `subfinder`, `httpx`, `amass`, `kerbrute`
cargo (Rust tools):
- `feroxbuster`, `rustscan`
Credentials
The following are required for Claude Code operation (not stored in the repo):
- Claude account: Claude Pro ($20/month) or Claude Max ($100/month) subscription required for CLI access. The free tier does not include CLI access.
- Anthropic API key: If using API-based authentication instead of subscription, set via Claude Code's authentication flow.
- `PENTEST_AI_TOOLS_YES`: Set to `"1"` to skip the interactive confirmation prompt during `install.sh --tools` (not a secret — convenience flag for automation).
Quick Install
# 1. Install Node.js 18+ (Ubuntu/Debian example)
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs
# 2. Install Claude Code CLI
npm install -g @anthropic-ai/claude-code
# 3. Authenticate (opens browser)
claude
# 4. Install pentest-ai agents
git clone https://github.com/0xSteph/pentest-ai-agents.git
cd pentest-ai-agents
./install.sh --global
# 5. (Optional) Install underlying pentest tools
./install.sh --tools
# 6. Verify tool installation
db/doctor.sh
Code Evidence
Claude Code CLI prerequisite check from `install.sh:122-132`:
check_prereqs() {
if ! command -v claude &>/dev/null; then
echo -e "${YELLOW}Warning: Claude Code CLI not found in PATH.${NC}"
echo " Install it with: npm install -g @anthropic-ai/claude-code"
echo ""
fi
if [ -z "$SCRIPT_DIR" ] || [ ! -d "$AGENTS_SRC" ]; then
bootstrap_from_curl "$@"
fi
}
Git requirement for bootstrap from `install.sh:101-107`:
bootstrap_from_curl() {
if ! command -v git &>/dev/null; then
echo -e "${RED}Error: git is required for the one-line installer.${NC}"
echo " Install git first, or clone the repo manually."
exit 1
fi
Package manager detection from `install.sh:272-286`:
detect_pkg_manager() {
if command -v apt-get &>/dev/null; then
echo "apt"
elif command -v brew &>/dev/null; then
echo "brew"
elif command -v pacman &>/dev/null; then
echo "pacman"
elif command -v dnf &>/dev/null; then
echo "dnf"
elif command -v yum &>/dev/null; then
echo "yum"
else
echo "none"
fi
}
Agent model tier from `install.sh:26-37`:
# Advisory-only agents safe to run on Haiku (no Bash tool, no execution risk)
HAIKU_SAFE_AGENTS=(
"engagement-planner.md"
"report-generator.md"
"detection-engineer.md"
"threat-modeler.md"
"ctf-solver.md"
"stig-analyst.md"
"exploit-guide.md"
"attack-planner.md"
"forensics-analyst.md"
"malware-analyst.md"
)
Common Errors
| Error Message | Cause | Solution |
|---|---|---|
| `Warning: Claude Code CLI not found in PATH.` | Claude Code not installed | `npm install -g @anthropic-ai/claude-code` |
| `Error: git is required for the one-line installer.` | bash bootstrap | `sudo apt install git` or clone repo manually |
| `No supported package manager detected` | None of apt, brew, pacman, dnf, yum available | Install a supported package manager or manually install tools |
| `pipx not available; skipping Python tools.` | pipx not installed | `sudo apt install pipx` or `brew install pipx`, then re-run `install.sh --tools` |
| `go not available; skipping Go tools.` | Go not installed | `sudo apt install golang` or `brew install go`, then re-run `install.sh --tools` |
| Claude Code prompts for approval on every command | Expected behavior — this is the Layer 2 permission gate | Approve commands individually or configure allowed tools in Claude Code settings |
Compatibility Notes
- macOS: Ships bash 3.2 by default. The installer scripts work (no associative arrays in `install.sh`), but `doctor.sh` requires bash 4+ for associative arrays. Install bash 4+ via `brew install bash`.
- Windows: Not directly supported. Use WSL2 (`wsl --install`) and follow the Ubuntu instructions inside WSL.
- Node.js version: Node.js 18+ is required. Verify with `node --version`. The installer does not check Node.js version — Claude Code CLI will fail at runtime if too old.
- Lite mode: `--lite` flag switches 10 advisory-only agents to `model: haiku` for ~40-60% token cost reduction. Tier 2 execution agents stay on Sonnet for tool-use accuracy.
- Large tools not auto-installed: Ghidra, Metasploit, Evilginx, and GoPhish are too large for the installer script. See `doctor.sh` hints for manual installation instructions.
- Plugin version: The plugin manifest (`.claude-plugin/plugin.json`) declares version 3.4.0 with 52 specialist subagents.