# PentestAgent Configuration # API Keys (set at least one for chat model) OPENAI_API_KEY= ANTHROPIC_API_KEY= GEMINI_API_KEY= # For web search functionality (optional) TAVILY_API_KEY= # Chat Model (any LiteLLM-supported model) # OpenAI: gpt-5, gpt-4.1, gpt-4.1-mini # Anthropic: claude-sonnet-4-20250514, claude-opus-4-20250514 # Google: gemini models require gemini/ prefix (e.g., gemini/gemini-2.5-flash) # Other providers: azure/, bedrock/, groq/, ollama/, together_ai/ (see litellm docs) PENTESTAGENT_MODEL=gpt-5 # Ollama base URL (set this when using an `ollama/...` model) # Example: http://127.0.0.1:11434 or http://192.168.0.165:11434 OLLAMA_BASE_URL=http://127.0.0.1:11434 # Example local model string (uncomment to use instead of gpt-5) # PENTESTAGENT_MODEL="ollama/qwen2.5:7b-instruct" # Embeddings (for RAG knowledge base) # Options: openai, local (default: openai if OPENAI_API_KEY set, else local) PENTESTAGENT_EMBEDDINGS=local # Settings PENTESTAGENT_DEBUG=false # Optional: manually declare model/context and daily token budgeting # Useful when provider metadata isn't available or you want to enforce local limits. # Set the model's maximum context window (in tokens). Example values: # - Gemini large: 131072 # - Gemini flash: 65536 # - Ollama local model: 8192 # PENTESTAGENT_MODEL_MAX_CONTEXT=131072 # Optional daily token budget tracking (integers, tokens): # - Set the total token allowance you want to track per day # - Set the current used amount (optional; defaults to 0) # PENTESTAGENT_DAILY_TOKEN_BUDGET=500000 # PENTESTAGENT_DAILY_TOKEN_USED=0 # --------------------------------------------------------------------------- # Example pricing & daily token limit used by `/token` diagnostics # Uncomment and adjust to enable cost calculations. # Per 1M tokens pricing (USD): # Example (input at $2.00 / 1M, output at $12.00 / 1M) INPUT_COST_PER_MILLION=2.0 OUTPUT_COST_PER_MILLION=12.0 # Optional unified override (applies to both input and output) # COST_PER_MILLION=14.0 # Example daily budget (tokens) DAILY_TOKEN_LIMIT=1000000 # --------------------------------------------------------------------------- # Agent max iterations (regular agent + crew workers, default: 30) # PENTESTAGENT_AGENT_MAX_ITERATIONS=30 # Orchestrator max iterations (crew mode coordinator, default: 50) # PENTESTAGENT_ORCHESTRATOR_MAX_ITERATIONS=50