π¦ ClawHub
AgentGuard
by @manas-io-ai
Monitors agent file access, API calls, and communications to detect suspicious behavior, log events, and generate actionable security reports.
βοΈ Configuration
Config File: config/agentguard.yaml
monitoring:
enabled: true
file_watch_dirs:
- ~/clawd
- ~/.clawdbot
exclude_patterns:
- "*.log"
- "node_modules/**"
- ".git/**"alerts:
sensitivity: medium # low, medium, high
channels:
- telegram
alert_on:
- credential_access
- bulk_file_read
- unknown_api_endpoint
- data_exfiltration
cooldown_minutes: 15
api_monitoring:
trusted_domains:
- api.anthropic.com
- api.openai.com
- api.telegram.org
- api.elevenlabs.io
block_on_suspicious: false # true = prevent call, false = alert only
logging:
retention_days: 30
log_dir: ~/.agentguard/logs
hash_sensitive_data: true
reporting:
auto_daily_report: true
report_time: "09:00"
report_channel: telegram
π Tips & Best Practices
High false positive rate
β Increase baseline learning period or reduce sensitivityMissing file events
β Checkfile_watch_dirs config covers target directoriesReports not generating
β Verifyreport_time format and timezone settingsTERMINAL
clawhub install agentguard