Getting Started
Getting Started
This page covers everything you need to install, deploy, and run your first scan with BugTraceAI.
Requirements
System Requirements
| Requirement | Minimum | Recommended |
|---|---|---|
| Docker | 24.0+ | Latest stable |
| Git | Any recent version | Latest |
| RAM | 4 GB | 8 GB |
| Disk | 10 GB | 20 GB+ (SSD) |
| Network | Internet access | 10 Mbps+ |
API Key
BugTraceAI requires an OpenRouter API key for AI functionality:
- Go to openrouter.ai
- Create an account
- Generate an API key (starts with
sk-or-) - Keep the key ready for the setup wizard
OpenRouter provides access to multiple AI models (Gemini, Claude, GPT) through a single API key. You pay for usage directly to OpenRouter — BugTraceAI does not charge anything and has no intermediary.
Try the Live Demo
Not ready to install? Try the live demo to explore BugTraceAI’s interface and see real scan results without installing anything.
Quick Start (Recommended)
The fastest way to get BugTraceAI running is via the Launcher:
git clone https://github.com/BugTraceAI/BugTraceAI-Launcher.gitcd BugTraceAI-Launcher./launcher.shThe interactive wizard will:
- Check your system requirements (Docker, Git, RAM)
- Ask you to choose a deployment mode
- Pull and build Docker images
- Ask for your OpenRouter API key
- Configure all services
- Start the platform
- Run health checks
- Display access URLs
After setup completes:
- WEB Dashboard: http://localhost:6869
- CLI API: http://localhost:8000
- API Docs: http://localhost:8000/docs
Alternative Installation Methods
WEB Only (No Scanning)
If you only want the AI-powered security toolkit:
git clone https://github.com/BugTraceAI/BugTraceAI-WEB.gitcd BugTraceAI-WEB./dockerizer.sh# Access: http://localhost:6869CLI Only (API Mode)
If you only want the scanning engine:
git clone https://github.com/BugTraceAI/BugTraceAI-CLI.gitcd BugTraceAI-CLIpip install -r requirements.txtpython3 -m uvicorn bugtrace.api.main:app --host 0.0.0.0 --port 8000# API: http://localhost:8000# Docs: http://localhost:8000/docsCLI Only (Docker)
git clone https://github.com/BugTraceAI/BugTraceAI-CLI.gitcd BugTraceAI-CLIdocker build -t bugtrace-cli .docker run -d -p 8000:8000 bugtrace-cliDevelopment Mode
For contributors and developers:
# WEB (hot reload)cd BugTraceAI-WEBnpm installnpm run dev# Access: http://localhost:5173
# CLI (with auto-reload)cd BugTraceAI-CLIpip install -r requirements.txtpython3 -m uvicorn bugtrace.api.main:app --host 0.0.0.0 --port 8000 --reloadYour First Scan
Via the WEB Dashboard
- Open http://localhost:6869 in your browser
- Navigate to the Scans page
- Enter a target URL (e.g., a test application you control)
- Click “Start Scan”
- Watch real-time progress as the scan runs
- Review findings when the scan completes
- Download the report
Via the API
# Create and start a scancurl -X POST http://localhost:8000/api/scans \ -H "Content-Type: application/json" \ -d '{"target_url": "https://your-test-target.com"}'
# Note the scan ID from the response# Check statuscurl http://localhost:8000/api/scans/<scan-id>/status
# Get findingscurl http://localhost:8000/api/scans/<scan-id>/findings
# Download reportcurl -o report.html http://localhost:8000/api/scans/<scan-id>/report/htmlVia the Interactive CLI
cd BugTraceAI-CLIpython -m bugtrace scan url https://your-test-target.comImportant: Only scan targets you own or have explicit authorization to test. Unauthorized scanning is illegal in most jurisdictions.
Using the Security Toolkit
The WEB dashboard includes 20+ AI-powered security tools that work without running scans:
- Open http://localhost:6869
- Browse the tool categories in the sidebar
- Select a tool (e.g., JWT Analyzer, Payload Forge, Code Analyzer)
- Interact via the chat interface
- Provide URLs, code snippets, or tokens for analysis
- Receive AI-powered security analysis
These tools work independently of the CLI scanner. See Security Toolkit for the complete tool listing.
Configuration
OpenRouter API Key
If you need to update your API key after installation:
# Via APIcurl -X PATCH http://localhost:8000/api/config \ -H "Content-Type: application/json" \ -d '{"OPENROUTER_API_KEY": "sk-or-v1-new-key"}'Scanning Defaults
Adjust scanning behavior via the API:
curl -X PATCH http://localhost:8000/api/config \ -H "Content-Type: application/json" \ -d '{ "MAX_DEPTH": 3, "MAX_URLS": 500, "SAFE_MODE": false, "HEADLESS_BROWSER": true }'See Configuration for all available settings.
Deployment Modes
The Launcher supports three deployment modes:
| Mode | What You Get | Command |
|---|---|---|
| Full Platform | WEB + CLI, auto-connected | ./launcher.sh (select Full) |
| Standalone WEB | Dashboard and toolkit only | ./launcher.sh (select WEB) |
| Standalone CLI | Headless API scanner + MCP server | ./launcher.sh (select CLI) |
There is no separate “CLI + AI Assistant” mode: the CLI deployment already starts the MCP server (bugtrace_mcp on port 8001) alongside the API, so any Standalone CLI (or Full Platform) install lets you control scans from OpenClaw, Claude Code, Cursor, or any MCP-compatible AI assistant. See AI Assistant Integration for details.
See Deployment Modes for detailed comparisons.
Lifecycle Management
After installation, manage BugTraceAI with these commands:
cd BugTraceAI-Launcher
# Check status./launcher.sh status
# Stop all services./launcher.sh stop
# Start all services./launcher.sh start
# Restart./launcher.sh restart
# Update to latest version./launcher.sh update
# View logs./launcher.sh logs
# Uninstall./launcher.sh uninstallTroubleshooting
Docker Not Running
# Check Docker statusdocker info
# Start Docker servicesudo systemctl start dockerPort Already in Use
# Find what is using port 8000sudo lsof -i :8000
# Or let the Launcher detect and suggest alternatives./launcher.shPermission Denied
# Add yourself to the docker groupsudo usermod -aG docker $USER# Log out and back inCannot Connect WEB to CLI
Verify the CLI API is accessible:
curl http://localhost:8000/docsCheck VITE_CLI_API_URL in the WEB configuration points to the correct CLI address.
Out of Memory
BugTraceAI Full Platform requires at least 4 GB RAM. Check Docker memory allocation:
docker statsIf running Docker Desktop, increase memory in Settings > Resources.
Authenticated Scanning
BugTraceAI can scan authenticated endpoints by providing credentials or tokens:
# Level 1: Inject a pre-existing tokencurl -X POST http://localhost:8000/api/scans \ -H "Content-Type: application/json" \ -d '{ "target_url": "https://your-test-target.com", "auth_token": "Bearer eyJhbGciOiJIUzI1NiIs..." }'
# Level 2: Automatic login flowcurl -X POST http://localhost:8000/api/scans \ -H "Content-Type: application/json" \ -d '{ "target_url": "https://your-test-target.com", "auth": { "login_url": "https://your-test-target.com/api/auth/login", "credentials": {"username": "testuser", "password": "testpass"} } }'See Configuration for full authenticated scanning options.
Next Steps
After your first scan:
- Scanning Pipeline — Understand how scans work
- Configuration — Customize scanning behavior
- Security Toolkit — Explore the 20+ analysis tools
- Report Generation — Export and share reports
- AI Assistant Integration — Control scans from OpenClaw, Claude Code, or any MCP client
- API Reference — Integrate with your tools and pipelines
- BugStore — Practice scanning against a deliberately vulnerable app
Resources
| Resource | Link |
|---|---|
| GitHub Organization | github.com/BugTraceAI |
| CLI Repository | github.com/BugTraceAI/BugTraceAI-CLI |
| WEB Repository | github.com/BugTraceAI/BugTraceAI-WEB |
| Launcher Repository | github.com/BugTraceAI/BugTraceAI-Launcher |
| API Documentation | http://localhost:8000/docs (when running) |
| @yz9yt |
See also: Overview | Architecture | Deployment Modes