Global Options
These options apply to all commands:Commands
record
Start capturing AI activity.| Option | Description |
|---|---|
-o, --output <PATH> | Output file for JSONL events |
--web | Start web UI [default: true] |
--port <PORT> | Web UI port [default: 7777] |
--tui | Start terminal UI |
-p, --process <NAMES> | Filter by process names (comma-separated) |
--pid <PIDS> | Filter by PIDs (comma-separated) |
--redaction <MODE> | Redaction mode: safe, full, minimal [default: safe] |
--no-ssl | Disable SSL/TLS capture |
--no-process | Disable process capture |
--no-file | Disable file capture |
--no-network | Disable network capture |
--ebpf-path <PATH> | Path to eBPF bytecode (Linux) |
--libssl-path <PATH> | Path to libssl.so (Linux) |
show
Display captured events.| Option | Description |
|---|---|
--type <TYPE> | Filter by event type |
--process <NAME> | Filter by process name |
--since <TIME> | Events after timestamp |
--until <TIME> | Events before timestamp |
--limit <N> | Maximum events to show |
--follow | Follow file for new events (like tail -f) |
--stats | Show statistics instead of events |
analyze
Analyze captured events for patterns and insights.| Option | Description |
|---|---|
--format <FORMAT> | Output format: text, json, csv |
--report <TYPE> | Report type: summary, costs, providers, models |
status
Check system capabilities and sensor status.demo
Run with synthetic events (no capture required).| Option | Description |
|---|---|
--port <PORT> | Web UI port [default: 7777] |
--rate <N> | Events per second [default: 1] |
test
Run internal tests and diagnostics.| Option | Description |
|---|---|
--capture | Test capture capabilities |
--export | Test export destinations |
--all | Run all tests |
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Invalid arguments |
| 3 | Permission denied |
| 4 | Capture not supported |
Environment Variables
| Variable | Description |
|---|---|
OISP_CONFIG | Path to config file |
OISP_WEB_PORT | Web UI port |
RUST_LOG | Log level (error, warn, info, debug, trace) |
NO_COLOR | Disable colored output |
Signals
| Signal | Action |
|---|---|
SIGINT (Ctrl+C) | Graceful shutdown |
SIGTERM | Graceful shutdown |
SIGHUP | Reload configuration (planned) |