Syntax
Description
Theserve command launches a local web dashboard for Vectra Guard, providing a visual interface to:
- View session history and activity
- Browse audit logs
- Monitor metrics and statistics
- Inspect command executions
- Review CVE scan results
- Manage trust store entries
Options
Port number to bind the web server to
Examples
Start Dashboard (Default Port)
Use Custom Port
Background Mode
Dashboard Features
Sessions View
View all tracked sessions:- Session ID and agent name
- Start/end timestamps
- Command count
- Status (active/completed)
Audit Logs
Browse command executions:- Command text
- Exit codes
- Duration
- Risk level
- Findings
Metrics Dashboard
Visual metrics display:- Sandbox vs host execution ratio
- Cache hit rates
- Time saved
- Risk level distribution
Trust Store Management
Manage trusted commands:- View trusted commands
- See usage counts
- Check expiration dates
- Remove trusted entries
CVE Reports
View vulnerability scan results:- Detected CVEs
- Affected packages
- Severity levels
- Recommendations
Security Notes
All data displayed in the dashboard comes from local storage:
~/.vectra-guard/sessions/~/.vectra-guard/audit/~/.vectra-guard/trust/~/.vectra-guard/cve-cache/
Use Cases
Interactive Review
Team Demo
Development Workflow
Dashboard Routes
The dashboard provides these routes:/- Overview and summary/sessions- Session list and details/audit- Audit log browser/metrics- Metrics and charts/trust- Trust store management/cve- CVE scan results/config- Configuration viewer
Technical Details
The dashboard is a lightweight HTTP server that:- Serves static HTML/CSS/JS
- Reads from local Vectra Guard data stores
- Provides a REST API for data access
- Does not require external dependencies
- Auto-refreshes data
Stopping the Server
PressCtrl+C in the terminal running vg serve.
Exit Codes
- 0: Server stopped gracefully
- 1: Server failed to start (port in use, permission error)