Install
openclaw skills install @fr3kstyle/pagerduty-oncallManage PagerDuty incidents, on-call schedules, escalation policies, and services via the PagerDuty REST API. Use when you need to: (1) List or acknowledge active incidents, (2) Trigger or resolve incidents, (3) Check who is on-call right now, (4) View escalation policies, (5) Manage PagerDuty services, (6) Get incident timelines or notes, (7) Snooze or reassign incidents, (8) Run PagerDuty operations from the agent. Requires PAGERDUTY_API_KEY env var.
openclaw skills install @fr3kstyle/pagerduty-oncallManage incidents and on-call operations via the PagerDuty REST API (v2).
export PAGERDUTY_API_KEY="your-api-key-here"
# Optional: set default email for actions that require it
export PAGERDUTY_FROM_EMAIL="oncall@yourcompany.com"
Get your API key: PagerDuty → User Icon → My Profile → User Settings → API Access Keys → Create New API Key
python3 ~/.openclaw/workspace/skills/pagerduty-oncall/scripts/pd.py incidents --status triggered,acknowledged
python3 ~/.openclaw/workspace/skills/pagerduty-oncall/scripts/pd.py acknowledge --id P1234AB
python3 ~/.openclaw/workspace/skills/pagerduty-oncall/scripts/pd.py resolve --id P1234AB
python3 ~/.openclaw/workspace/skills/pagerduty-oncall/scripts/pd.py trigger \
--service-key "your-service-integration-key" \
--description "Database is down" \
--severity critical
python3 ~/.openclaw/workspace/skills/pagerduty-oncall/scripts/pd.py oncall
# With schedule filter:
python3 ~/.openclaw/workspace/skills/pagerduty-oncall/scripts/pd.py oncall --schedule-id PABC123
python3 ~/.openclaw/workspace/skills/pagerduty-oncall/scripts/pd.py get --id P1234AB
python3 ~/.openclaw/workspace/skills/pagerduty-oncall/scripts/pd.py services
python3 ~/.openclaw/workspace/skills/pagerduty-oncall/scripts/pd.py escalations
python3 ~/.openclaw/workspace/skills/pagerduty-oncall/scripts/pd.py note --id P1234AB --message "Investigating DB failover"
python3 ~/.openclaw/workspace/skills/pagerduty-oncall/scripts/pd.py snooze --id P1234AB --duration 3600
python3 ~/.openclaw/workspace/skills/pagerduty-oncall/scripts/pd.py reassign --id P1234AB --user-id PU12345
For operations not covered by the script, use curl directly:
curl -s -H "Authorization: Token token=$PAGERDUTY_API_KEY" \
-H "Accept: application/vnd.pagerduty+json;version=2" \
"https://api.pagerduty.com/incidents?statuses[]=triggered&limit=25"
triggered → acknowledged → resolvedincidents to check overnight alertsoncall + incidents for current stateget for timeline, then note to document RCAincidents filtered by urgency, then acknowledge--limit flag to control result set size