Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# PentestGPT Makefile
# Usage: make [target]

.PHONY: help install test test-all test-cov test-verbose test-fast test-backend
.PHONY: help install config test test-all test-cov test-verbose test-fast test-backend
.PHONY: lint lint-fix format format-check typecheck clean build watch
.PHONY: check check-agent test-agent check-agent-new test-agent-new run
.PHONY: ci ci-quick
Expand Down Expand Up @@ -44,6 +44,10 @@ install:
uv sync
cd pentestgpt_agent && uv sync --extra $(AGENT_EXTRA)

# Configure authentication (interactive menu: Claude login, OpenRouter, Anthropic API, Local LLM)
config:
@./scripts/config.sh

# ============================================================================
# Testing
# ============================================================================
Expand Down
8 changes: 4 additions & 4 deletions scripts/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ PENTESTGPT_AUTH_MODE=manual
EOF

echo -e "${GREEN}Claude Code subscription mode selected.${NC}"
echo -e "${BLUE}After running 'make connect', execute 'claude login' inside the container.${NC}"
echo -e "${BLUE}After running 'make docker-shell', execute 'claude login' inside the container.${NC}"
;;

2)
Expand Down Expand Up @@ -84,7 +84,7 @@ EOF
chmod 600 "$ENV_FILE"

echo -e "${GREEN}OpenRouter configuration saved!${NC}"
echo -e "${BLUE}CCR will be configured automatically when you run 'make connect'${NC}"
echo -e "${BLUE}CCR will be configured automatically when you start the agent${NC}"
;;

3)
Expand Down Expand Up @@ -131,7 +131,7 @@ EOF
echo " 2. To customize models or URL, edit:"
echo " scripts/ccr-config-template.json"
echo ""
echo " 3. Run 'make connect' to start PentestGPT"
echo " 3. Run 'make run TARGET=<target>' to start PentestGPT"
;;

*)
Expand All @@ -142,4 +142,4 @@ esac

echo ""
echo -e "${GREEN}Configuration complete!${NC}"
echo -e "Run ${PURPLE}make connect${NC} to start PentestGPT."
echo -e "Run ${PURPLE}make run TARGET=<target>${NC} to start PentestGPT."