-
Navigate to project directory:
cd c:\Users\MyBook Hype AMD\workarea\guardian-cli -
Create virtual environment:
python -m venv venv .\venv\Scripts\activate
-
Install Guardian:
pip install -e .
-
Initialize configuration:
python -m cli.main init
Or use the batch launcher:
-
Configure Authentication:
Option A: Antigravity Auth (Free/Quota)
python -m cli.main auth login
Option B: Standard API Key Create a
.envfile with your key:echo GOOGLE_API_KEY=your_key_here > .env
python -m cli.main workflow listpython -m cli.main recon --domain example.com --dry-runpython -m cli.main scan --target scanme.nmap.orgpython -m cli.main workflow run --name recon --target example.compython -m cli.main recon --domain example.com --model gemini-3-proEdit config/guardian.yaml or ~/.guardian/guardian.yaml to customize:
- AI model and settings
- Tool configurations
- Security guardrails
- Output formats
python -m cli.main --help
python -m cli.main <command> --help- Windows: Use
python -m cli.mainor.\guardian.batinstead ofguardian - API Key: Required for AI features (get from https://makersuite.google.com/app/apikey)
- External Tools: Optional but recommended (nmap, httpx, subfinder, nuclei)
- Authorization: Only scan systems you have explicit permission to test
- Make sure you're in the project directory
- Activate the virtual environment
- Use
python -m cli.maininstead ofguardian
- Reinstall dependencies:
pip install -e . - Check Python version:
python --version(requires 3.11+)
- Verify your Gemini API key in
.envor.guardian/.env - Check internet connectivity
- Install external pentest tools for full functionality
- Review
config/guardian.yamland customize settings - Run
--dry-runmode to see what would be executed - Start with safe targets like
scanme.nmap.org - Review logs in
logs/guardian.log