Install
openclaw skills install portkeepManage, secure, and monitor open ports and services across nodes with audit, claim, drift detection, threat intel, and background monitoring.
openclaw skills install portkeepPort management + security for self-hosted infrastructure.
brew tap jchandler187/tap
brew install portkeep
Or download from https://github.com/jchandler187/portkeep/releases/latest
| Command | What it does |
|---|---|
portkeep scan | Discover all listening ports |
portkeep scan --node NAME | Scan a remote node via SSH |
portkeep audit | Security audit — score, C2 matches, CVEs, firewall |
portkeep sync | Fetch and cache threat intel (9 sources) |
portkeep claim 3000 "api" | Register a port as expected |
portkeep claim next | Find next available port |
portkeep drift | Declared vs actual — exits 1 on drift (cron-ready) |
portkeep list | List all registered claims |
portkeep history | Port change timeline |
portkeep node add NAME --host IP | Add a remote node |
portkeep daemon start | Background monitoring service |
All commands support --json for scripting and --quiet for cron.
6 work out of the box (no API key):
3 require a free abuse.ch Auth-Key:
Set ABUSE_CH_AUTH_KEY in environment to enable all 9.
# First run — sync threat intel, then audit
portkeep sync
portkeep audit
# Register your services
portkeep claim 22 "ssh"
portkeep claim 3000 "grafana"
portkeep claim 8080 "api"
# Check for unexpected ports (great for cron)
portkeep drift
# Add a second machine
portkeep node add prod --host 10.0.0.5 --ssh-key ~/.ssh/id_ed25519
portkeep scan --node prod