One-command deployment for the BugTraceAI security platform via Docker.
Interactive wizard that clones the BugTraceAI repos, builds Docker images, generates configs, sets up databases, and orchestrates all services. Deploy WEB, CLI, or both with a single command.
This repository is part of the BugTraceAI monorepo (as a git submodule) and also works as a standalone repo.
One-liner install (recommended):
curl -fsSL https://raw.githubusercontent.com/BugTraceAI/BugTraceAI-Launcher/main/install.sh | bashOr step by step:
git clone https://github.com/BugTraceAI/BugTraceAI-Launcher.git ~/bugtraceai-launcher
cd ~/bugtraceai-launcher
./launcher.shThe wizard will guide you step by step: choose deployment mode, enter your OpenRouter API key, configure ports, and confirm. The launcher handles the rest.
| Requirement | Details |
|---|---|
| OS | Linux (x86_64) or macOS (Intel / Apple Silicon) |
| Container Runtime | Docker Engine 24.0+ + Compose (Linux), or on macOS: Docker Desktop OR Colima |
| Git | Any recent version |
| curl | For the one-liner installer |
| RAM | 4 GB minimum (8 GB recommended) |
| Disk | 10 GB free space |
| OpenRouter API Key | openrouter.ai/keys (starts with sk-or-) |
The installer will automatically detect and offer to install missing dependencies (on Ubuntu/Debian systems):
- ✅ Git & curl → Installed via
apt-getif missing - ✅ Docker Compose → Installed automatically as plugin (
docker-compose-plugin) or standalone binary if missing - ℹ️ Docker Engine → If missing, the installer provides clear instructions and a quick-install command
You'll be prompted for confirmation before anything is installed. If you're on a non-Debian system, the installer will provide manual installation instructions.
The launcher now supports two runtime paths on macOS:
- Docker Desktop (traditional)
- Colima (Docker Desktop-free)
If Docker is not ready, the wizard can:
- Prompt you to choose Docker Desktop or Colima
- Install missing dependencies with Homebrew (
docker,docker-compose,colima,qemu,lima-additional-guestagents) - Start the selected runtime automatically and continue installation
For best automation, install Xcode CLT first if missing:
xcode-select --installThe wizard presents three deployment options:
| Mode | What gets deployed | Use case |
|---|---|---|
| Full Platform (WEB + CLI) | Both stacks, auto-connected | Complete security workflow with UI |
| Standalone WEB | Browser-based dashboard only | Manual analysis, report management |
| Standalone CLI | Headless autonomous scanner only | CI/CD pipelines, automation, API-only |
In Full mode the launcher automatically configures CORS and points the WEB frontend to the CLI API — no manual wiring needed.
./launcher.sh # Interactive setup wizard
./launcher.sh status # Service dashboard (container health + endpoints)
./launcher.sh start # Start all services
./launcher.sh stop # Stop all services
./launcher.sh restart # Restart all services
./launcher.sh update # Git pull + Docker rebuild
./launcher.sh uninstall # Stop containers, remove volumes & install dir
./launcher.sh logs web # Tail WEB stack logs
./launcher.sh logs cli # Tail CLI stack logs
./launcher.sh help # Show usageNo
sudorequired. On Linux, your user needs Docker permissions (sudo usermod -aG docker $USER). On macOS, the launcher can bootstrap either Docker Desktop or Colima.
┌──────────────────────────────────────────────────────────┐
│ User Browser │
└─────────┬────────────────────────────────┬───────────────┘
│ │
│ http://localhost:6869 │ http://localhost:8000
│ │
┌─────────▼─────────────────┐ ┌────────▼──────────────────┐
│ WEB Stack (Docker) │ │ CLI Stack (Docker) │
│ │ │ │
│ ┌─────────────────────┐ │ │ ┌─────────────────────┐ │
│ │ Nginx (Frontend) │ │ │ │ FastAPI + AI Agents │ │
│ │ React SPA │ │ │ │ Go Fuzzers │ │
│ └────────┬────────────┘ │ │ │ Playwright Browser │ │
│ ┌────────▼────────────┐ │ │ └────────┬────────────┘ │
│ │ Express + Prisma │ │ │ ┌────────▼───────────┐ │
│ │ REST API + WebSocket│ │ │ │ SQLite + LanceDB │ │
│ └────────┬────────────┘ │ │ └────────────────────┘ │
│ ┌────────▼────────────┐ │ │ │
│ │ PostgreSQL │ │ │ │
│ └─────────────────────┘ │ │ │
└───────────────────────────┘ └───────────────────────────┘
Each stack runs its own independent Docker Compose project. In Full mode, the WEB frontend sends scan requests to the CLI API endpoint.
| Service | Port | Stack |
|---|---|---|
| WEB Frontend (Nginx) | 6869 | WEB |
| WEB Backend (Express) | 3001 (internal) | WEB |
| PostgreSQL | 5432 (internal) | WEB |
| CLI API (FastAPI) | 8000 | CLI |
Ports marked (internal) are only accessible between containers. The wizard auto-detects busy ports and proposes the next available one.
The launcher installs the platform to:
~/bugtraceai/ ← configurable via BUGTRACEAI_DIR env var
├── BugTraceAI-WEB/ ← cloned repo (if WEB selected)
│ └── .env.docker ← generated config (ports, DB password, CLI URL)
├── BugTraceAI-CLI/ ← cloned repo (if CLI selected)
│ └── .env ← generated config (API key, CORS origins)
└── .launcher-state ← JSON with deployment mode, ports, version
You can override the install directory:
BUGTRACEAI_DIR=/srv/bugtraceai ./launcher.sh| Variable | Description |
|---|---|
POSTGRES_USER |
Database user (default: bugtraceai) |
POSTGRES_PASSWORD |
Database password (auto-generated, 24 chars) |
POSTGRES_DB |
Database name (default: bugtraceai_web) |
FRONTEND_PORT |
Public frontend port (default: 6869) |
VITE_CLI_API_URL |
CLI API URL (auto-set in Full mode, empty in Standalone WEB) |
| Variable | Description |
|---|---|
OPENROUTER_API_KEY |
Your OpenRouter API key |
BUGTRACE_CORS_ORIGINS |
Allowed origins (* in Standalone CLI, http://localhost:<port> in Full mode) |
After editing configs, restart for changes to take effect:
nano ~/bugtraceai/BugTraceAI-CLI/.env
./launcher.sh restart./launcher.sh updatePulls the latest code from both repos and rebuilds Docker images. The CLI's docker-compose.yml is re-patched automatically after pulling.
./launcher.sh uninstallStops all containers, removes Docker volumes (including databases), and deletes the ~/bugtraceai/ directory. Asks for confirmation before proceeding.
Services not starting:
./launcher.sh status # Check container health
./launcher.sh logs web # WEB stack logs
./launcher.sh logs cli # CLI stack logs
docker ps -a | grep bugtraceai # Raw container statusPort conflicts: The wizard auto-detects occupied ports. You can type a custom port number (1024-65535) when prompted, or press n to cycle to the next available one.
API key issues: Verify your key at openrouter.ai/keys. It should start with sk-or-. The wizard warns you if it doesn't match this pattern but lets you continue anyway.
Permission issues (Linux): Your user needs Docker permissions. Run sudo usermod -aG docker $USER and re-login.
Docker not found (macOS): Re-run ./launcher.sh and choose a runtime when prompted. If you pick Colima, the launcher can install/start it automatically via Homebrew.
Colima start fails with missing guest agent: Install and retry:
brew install lima-additional-guestagents
colima start --runtime dockerThe launcher now applies macOS-focused compatibility patches during deployment when these MCPs are enabled.
reconFTW MCP (Apple Silicon):
- Forces
linux/amd64forsix2dez/reconftw:mainon ARM hosts. - Patches
reconftw-mcpDockerfile for Python venv fallback (virtualenv) whenensurepipfails. - Forces SSE mode for WEB-managed MCP startup (
/ssehealth path consistency). - Extends reconFTW health timing on ARM emulation.
- Patches startup behavior to skip heavy
reconftw/install.shauto-bootstrap by default (RECONFTW_AUTO_INSTALL=false) to avoid health timeouts.
Kali MCP:
- Rewrites the Kali startup command into a robust single
bash -lccommand to avoid multiline parsing/continuation issues during package install. - Verifies key binaries (
nmap,hydra,python3) after install in container startup.
If you still see MCP issues after pulling latest launcher changes, rebuild only the affected service:
cd ~/bugtraceai/BugTraceAI-WEB
docker compose --env-file .env.docker build --no-cache reconftw-mcp kali-mcp
docker compose --env-file .env.docker up -d reconftw-mcp kali-mcpThen inspect logs:
docker logs --tail 200 reconftw-mcp
docker logs --tail 200 kali-mcp-serverExisting installation detected: If ~/bugtraceai/ already exists, the wizard offers to reinstall (wipe + fresh setup) or update (pull + rebuild).
The one-liner clones this repo to ~/bugtraceai-launcher/ and launches the interactive wizard, which:
- Bootstraps dependencies: Git/curl first, then Docker runtime + Compose checks
- Selects macOS runtime when needed: Docker Desktop or Colima
- Selects deployment mode: Full (WEB + CLI), Standalone WEB, or Standalone CLI
- Configures: Asks for OpenRouter API key, proposes ports, generates
.envfiles - Deploys: Clones repos, builds Docker images, starts services, runs health checks
AGPL-3.0 License. See the LICENSE file for details.
- Website: bugtraceai.com
- GitHub: github.com/BugTraceAI
- Issues: GitHub Issues
Made with care by Albert C. @yz9yt
bugtraceai.com
