Install
openclaw skills install port-managerPort Manager - Track and manage system port usage. Use when: (1) Port conflict when installing software, (2) Check port usage, (3) Release occupied ports, (4...
openclaw skills install port-managerIntelligently manage system port usage and avoid conflicts.
Record a port when starting a service:
Port record <service_name> <port>
Example: port record postgres 5432
Check usage of a specific port:
Port query 5432
Show all recorded services and ports:
Port list
Release an occupied port (terminate the process):
Port free 5432
Check if a port is occupied, and ask user if they want to free it:
Port check 5432
When port is occupied, automatically allocate an available port:
Port allocate <service_name> [preferred_port]
~/.openclaw/workspace/.port-manager/ports.jsonCheck before installing software
Service startup recording
Port conflict resolution
# Record ports
port record mysql 3306
port record redis 6379
port record postgres 5432
# List all
port list
# Check port
port check 8080
# Free port
port free 5432
# Auto allocate
port allocate nginx 80
Use lsof and netstat to check ports:
# Check port usage
lsof -i :5432
# Kill process
kill $(lsof -t -i :5432)