PagerDuty CLI Setup
PagerDuty can be configured headlessly with `kosmokrator integrations:configure pagerduty`.
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
# Configure and verify this integration.
kosmokrator integrations:configure pagerduty --set api_token="$PAGERDUTY_API_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor pagerduty --json
kosmokrator integrations:status --json
Credentials
Authentication type: API token api_token. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Call PagerDuty Headlessly
Use the generic call form when another coding CLI or script needs a stable universal interface.
kosmo integrations:call pagerduty.pagerduty_list_incidents '{
"status": "example_status",
"urgency": "example_urgency",
"service_id": "example_service_id",
"team_id": "example_team_id",
"limit": 1,
"offset": 1
}' --json
Use the provider shortcut form for shorter human-facing commands.
kosmo integrations:pagerduty pagerduty_list_incidents '{
"status": "example_status",
"urgency": "example_urgency",
"service_id": "example_service_id",
"team_id": "example_team_id",
"limit": 1,
"offset": 1
}' --json
Agent Discovery Commands
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs pagerduty --json
kosmo integrations:docs pagerduty.pagerduty_list_incidents --json
kosmo integrations:schema pagerduty.pagerduty_list_incidents --json
kosmo integrations:search "PagerDuty" --json
kosmo integrations:list --json
All CLI Functions
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to PagerDuty.
Function Schemas
Use these parameter tables when building CLI payloads without calling integrations:schema first.
- Operation
- Read
read - Schema command
kosmo integrations:schema pagerduty.pagerduty_list_incidents --json
- Operation
- Read
read - Schema command
kosmo integrations:schema pagerduty.pagerduty_get_incident --json
- Operation
- Read
read - Schema command
kosmo integrations:schema pagerduty.pagerduty_list_services --json
- Operation
- Read
read - Schema command
kosmo integrations:schema pagerduty.pagerduty_get_service --json
- Operation
- Read
read - Schema command
kosmo integrations:schema pagerduty.pagerduty_list_teams --json
- Operation
- Read
read - Schema command
kosmo integrations:schema pagerduty.pagerduty_get_team --json
- Operation
- Read
read - Schema command
kosmo integrations:schema pagerduty.pagerduty_get_current_user --json
Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.