Configuration
Learn how to configure ArgusAI for your environment.
AI Providers
ArgusAI supports multiple AI providers with automatic fallback:
- OpenAI GPT-4o mini (default primary)
- xAI Grok 2 Vision
- Anthropic Claude 3 Haiku
- Google Gemini Flash
Configuring AI Providers
Navigate to Settings > AI Models in the dashboard to configure your providers.
Each provider requires an API key:
| Provider | API Key Source |
|---|---|
| OpenAI | platform.openai.com |
| xAI Grok | console.x.ai |
| Anthropic | console.anthropic.com |
| Google Gemini | aistudio.google.com |
Provider Priority
You can arrange providers in priority order. The system will:
- Try the primary provider first
- Fall back to secondary providers on failure
- Continue until a successful response or all providers fail
Camera Configuration
UniFi Protect Cameras
- Navigate to Settings > Protect Controllers
- Add your controller details:
- Host: IP address or hostname of your Protect controller
- Username: Local user credentials
- Password: User password
- Port: Usually 443
- Click Test Connection then Save
- Discovered cameras will appear for enabling
RTSP Cameras
- Navigate to Cameras page
- Click Add Camera
- Enter camera details:
- Name: Friendly name
- RTSP URL: Full RTSP stream URL
- Username/Password: Camera credentials (optional)
- Click Test Connection to verify
- Save and enable the camera
USB Webcams
- Navigate to Cameras page
- Click Add Camera
- Select USB as source type
- Choose the device from available webcams
Analysis Settings
Configure how ArgusAI analyzes video events:
Frame Count
Choose how many frames to analyze per event:
- 5 frames: Fast, lower cost
- 10 frames: Balanced (default)
- 15 frames: Better accuracy
- 20 frames: Maximum detail
Sampling Strategy
- Uniform: Fixed interval extraction (predictable)
- Adaptive: Content-aware selection (better quality)
- Hybrid: Dense extraction with filtering (best quality)
Alert Rules
Create rules to trigger notifications:
- Navigate to Settings > Alert Rules
- Click Add Rule
- Configure conditions:
- Object Types: person, vehicle, package, animal
- Cameras: Select specific cameras
- Schedule: Time-based activation
- Configure actions:
- Push Notification: Browser push alerts
- Webhook: Send to external URL
SSL/HTTPS
For secure connections (required for push notifications):
# Environment variables
SSL_ENABLED=true
SSL_CERT_FILE=data/certs/cert.pem
SSL_KEY_FILE=data/certs/key.pem
See Troubleshooting for certificate generation.