Project Setup

Configure Hacker Bot for your development workflow.

Optional Configuration File

Optionally create a hackerbot.config.json in your project root:

{
  "target": "https://staging.example.com",
  "profile": "standard",
  "auth": {
    "type": "bearer",
    "tokenEnvVar": "HACKERBOT_PUBLIC_TOKEN"
  },
  "exclude": [
    "/api/health",
    "/logout"
  ],
  "notifications": {
    "slack": true,
    "github": true
  }
}

Environment Variables

Set these environment variables for your scans:

Variable Description
HACKERBOT_API_KEY Your API key from the dashboard
HACKERBOT_PROJECT_ID Project identifier for scan organization
HACKERBOT_PUBLIC_TOKEN Public token for scans (optional)

Project Structure

Recommended project organization:

your-project/
├── hackerbot.config.json    # Hacker Bot configuration
├── .github/
│   └── workflows/
│       └── security.yml     # CI/CD integration
├── src/
└── ...

Multiple Environments

Configure different targets for staging and production:

{
  "environments": {
    "staging": {
      "target": "https://staging.example.com",
      "profile": "deep"
    },
    "production": {
      "target": "https://example.com",
      "profile": "standard",
      "safeMode": true
    }
  }
}