Environment Variables
Your Anthropic API key. Obtain it from Anthropic Console.
Anthropic API endpoint URL. Use the default for standard Anthropic API access.
Optional HTTP proxy URL for secure environments and network isolation (e.g.,
http://your-proxy:8080).Configuration Example
Add the following to your.env file:
Supported Models
Anthropic provider delivers superior capabilities across multiple Claude model families:Claude 4 Series
Latest flagship models with exceptional reasoning:- claude-4-sonnet - Advanced reasoning for sophisticated penetration testing
- claude-4-opus - Most capable Claude model for complex security research
Claude 3.7 Series
Extended thinking capabilities:- claude-3.7-sonnet - Step-by-step thinking for methodical security research
Claude 3.5 Series
High-performance models:- claude-3-5-sonnet - Balanced performance for comprehensive security analysis
- claude-3-5-haiku - Blazing-fast model for real-time vulnerability scanning
Claude 3 Series
Proven models for various use cases:- claude-3-opus - Powerful model for deep security analysis
- claude-3-sonnet - Versatile model for threat hunting
- claude-3-haiku - Fast model for high-volume scanning
Features
- Advanced Reasoning: Claude 4 series with exceptional reasoning capabilities
- Extended Thinking: Claude 3.7 with step-by-step analytical thinking
- High-Speed Performance: Haiku models for blazing-fast vulnerability scans
- Comprehensive Analysis: Sonnet models for complex security analysis
- Safety-First Design: Built-in safety mechanisms for responsible security testing
- Large Context Windows: Up to 200K tokens for analyzing extensive codebases
Model Selection by Agent Type
PentAGI leverages Claude’s advanced understanding of security contexts:| Agent Type | Recommended Model | Context Window | Use Case |
|---|---|---|---|
| Primary Agent | claude-4-sonnet | 200K tokens | Core penetration testing workflows |
| Assistant | claude-3.7-sonnet | 200K tokens | Multi-step security analysis |
| Generator | claude-4-sonnet | 200K tokens | Exploit and report generation |
| Searcher | claude-3-5-haiku | 200K tokens | Fast information gathering |
| Coder | claude-4-opus | 200K tokens | Complex exploit development |
| Pentester | claude-3-5-sonnet | 200K tokens | Dedicated penetration testing |
Claude models are particularly effective for:
- Complex security analysis requiring deep reasoning
- Analyzing large codebases and documentation
- Generating detailed penetration testing reports
- Ethical security testing with built-in safety guardrails
Pricing
Anthropic uses token-based pricing. Check Anthropic Pricing for current rates. Example pricing tiers:| Model | Performance | Relative Cost |
|---|---|---|
| Claude 3 Haiku | Fastest | Lowest |
| Claude 3.5 Haiku | Very Fast | Low |
| Claude 3 Sonnet | Balanced | Medium |
| Claude 3.5 Sonnet | High | Medium-High |
| Claude 3.7 Sonnet | Extended Thinking | Medium-High |
| Claude 4 Sonnet | Advanced | High |
| Claude 3/4 Opus | Most Capable | Highest |
AWS Bedrock Alternative
You can also access Claude models through AWS Bedrock for enterprise deployments:- Enhanced security with AWS IAM integration
- VPC endpoint support for private networking
- Enterprise compliance certifications
- Pay-as-you-go or provisioned throughput options
Advanced Configuration
Claude models support various parameters for fine-tuning:Parameters
Controls randomness (0.0-1.0). Lower values make output more focused and deterministic.
Nucleus sampling parameter (0.0-1.0). Controls diversity of output.
Maximum number of tokens to generate. Claude models support up to 4096 output tokens.
Custom sequences where the model should stop generating.
Troubleshooting
Authentication Errors
If you see authentication errors:- Verify your API key at Anthropic Console
- Ensure your account has active credits or a valid payment method
- Check for typos in the
.envfile
Rate Limits
Anthropic enforces different rate limits based on your usage tier:- Free tier: Limited requests per minute
- Build tier: Increased limits for development
- Scale tier: Production-ready rate limits
Context Length Errors
If you exceed the context window:- Enable PentAGI’s automatic context summarization
- Split large analyses into smaller chunks
- Use models with larger context windows (all Claude models support 200K tokens)
Model Availability
Some Claude models may require:- API access approval for newer models (like Claude 4)
- Specific API version headers
- Beta program enrollment