Agent7 is a powerful, enhanced distribution of Agent Zero featuring advanced browser automation, automatic model fetching, and a specialized blackhat hacker persona for security research and penetration testing.
docker run -d --name agent7 -p 9999:80 ghcr.io/YOUR_USERNAME/agent7:latestThen open: http://localhost:9999
git clone https://github.com/YOUR_USERNAME/agent7.git
cd agent7
docker-compose up -dgit clone https://github.com/YOUR_USERNAME/agent7.git
cd agent7
docker build -t agent7:latest .
docker run -d --name agent7 -p 9999:80 agent7:latest- 8 Specialized Browser Tools
browser_navigate- Navigate to any URLbrowser_click- Click elements with smart selectorsbrowser_type- Fill forms and inputsbrowser_extract- Extract text, HTML, links, formsbrowser_screenshot- Capture page screenshotsbrowser_scroll- Precise scrolling controlbrowser_agent_v2- High-level autonomous automationbrowser_manager- Session pooling & health monitoring
- 15+ AI Providers Supported
- OpenAI (GPT-4o, GPT-4, GPT-3.5)
- Anthropic (Claude 3/3.5)
- Google (Gemini 2.0/1.5)
- OpenRouter, Groq, DeepSeek, xAI, Mistral
- AWS Bedrock, Azure OpenAI, Ollama
- Static fallback lists when APIs unavailable
- Dropdown selection in UI
- Blackhat Hacker Profile
- Full override authority
- Penetration testing expertise
- Production-ready code standards
- Never refuses tasks
- Specialized for security research
- MCP server fixes (z.ai HTTP support)
- Event loop stability enhancements
- Session health monitoring
- Automatic recovery from failures
- Performance metrics tracking
- Docker installed (Get Docker)
- 8GB RAM minimum (16GB recommended)
- 10GB free disk space
- API keys for your preferred AI providers
git clone https://github.com/YOUR_USERNAME/agent7.git
cd agent7# Copy example environment file
cp .env.example .env
# Edit .env and add your API keys
nano .env# Using Docker Compose (recommended)
docker-compose up -d
# Or using Docker directly
docker run -d \
--name agent7 \
-p 9999:80 \
-p 11:22 \
-v $(pwd)/data:/a0/usr \
--env-file .env \
--restart unless-stopped \
agent7:latestOpen your browser and navigate to:
http://localhost:9999
- Open web UI at http://localhost:9999
- Go to Settings β Secrets
- Add your API keys:
API_KEY_OPENAI=sk-... API_KEY_ANTHROPIC=sk-... API_KEY_GOOGLE=...
- Go to Settings β Agent β Chat Model
- Select your provider from dropdown
- Click "Refresh Models" to fetch available models
- Select model from dropdown
- Save settings
- Go to Settings β Agent β Web Browser Model
- Configure browser automation settings:
- Browser model provider
- Vision support toggle
- HTTP headers
- Rate limiting
User: Go to news.ycombinator.com and get the top 5 headlines
Agent7:
- browser_navigate url="https://news.ycombinator.com"
- browser_extract selector=".titleline>a" extract_type="links"
- Returns: Top 5 headlines with links
User: Fill out the contact form on example.com
Agent7:
- browser_navigate url="https://example.com/contact"
- browser_type selector="#name" text="John Doe"
- browser_type selector="#email" text="john@example.com"
- browser_type selector="#message" text="Hello!"
- browser_click selector="#submit"
User: Find information about CVE-2024-1234
Agent7:
- browser_navigate url="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-1234"
- browser_extract extract_type="text"
- browser_screenshot full_page="true"
- Provides detailed vulnerability information
agent7/
βββ .github/
β βββ workflows/
β βββ docker-build.yml # CI/CD pipeline
βββ docker/
β βββ Dockerfile # Main Docker image
β βββ docker-compose.yml # Compose configuration
βββ docs/
β βββ BROWSER_TOOLS.md # Browser automation guide
β βββ API_KEYS.md # API key setup guide
β βββ TROUBLESHOOTING.md # Common issues & fixes
βββ enhancements/
β βββ browser/ # Browser tool enhancements
β βββ models/ # Model fetching system
β βββ agent/ # Agent7 persona files
βββ scripts/
β βββ install.sh # Quick install script
β βββ build.sh # Build script
β βββ setup.sh # Initial setup
βββ .env.example # Environment template
βββ LICENSE # License file
βββ README.md # This file
- Isolated Environment: Each agent runs in isolated Docker container
- Secret Masking: API keys are masked in logs and browser interactions
- Browser Sandboxing: Chromium runs with security sandbox disabled for compatibility
- No Data Persistence: By default, data is stored in container (use volumes for persistence)
# Check logs
docker logs agent7
# Check port conflicts
sudo lsof -i :9999- Ensure browser model has vision support enabled
- Try resetting browser session with
reset="true" - Check browser model API key is valid
- Verify API key is entered correctly in Settings
- Click "Refresh Models" button
- Check browser console for errors (F12)
# Limit container memory
docker run -d --name agent7 -p 9999:80 --memory=4g agent7:latest| Tool | Description | Example |
|---|---|---|
browser_navigate |
Navigate to URL | browser_navigate url="https://google.com" |
browser_click |
Click element | browser_click selector="#button" |
browser_type |
Type text | browser_type selector="#input" text="hello" |
browser_extract |
Extract content | browser_extract extract_type="links" |
browser_screenshot |
Take screenshot | browser_screenshot full_page="true" |
browser_scroll |
Scroll page | browser_scroll direction="down" |
browser_agent_v2 |
High-level automation | browser_agent_v2 message="Search for Python" |
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
git clone https://github.com/YOUR_USERNAME/agent7.git
cd agent7
git checkout -b feature/your-feature
# Make your changes
git commit -m "Add your feature"
git push origin feature/your-featureThis project is licensed under the MIT License - see LICENSE file.
- Agent Zero - Original framework
- browser-use - Browser automation library
- LiteLLM - Model abstraction layer
- Playwright - Browser control
- Contributors - Thank you to all contributors!
- π§ Issues: GitHub Issues
- π¬ Discussions: GitHub Discussions
- π Wiki: GitHub Wiki
Ready to supercharge your AI agent? π
docker run -d --name agent7 -p 9999:80 ghcr.io/YOUR_USERNAME/agent7:latestThen open http://localhost:9999 and start hacking!
