pd-auto-ack

A local CLI that acknowledges PagerDuty incidents only when the configured user is on call.

View the Project on GitHub nithishduda-ai/pagerduty-oncall-ack

Configuration

Configuration is loaded from an env file passed with --env-file.

pd-auto-ack init --env-file ~/.pd-auto-ack.env

The generated file contains placeholders and is created with private file permissions where supported.

Required Values

PD_USER_ID and PD_FROM_EMAIL can often be inferred from /users/me when the API token belongs to the same user. Explicit values are still recommended for long-running jobs.

Optional Filters

Filters are optional, but useful for larger accounts.

Optional Tuning

Where To Get Values

PD_API_TOKEN is a PagerDuty REST API token. Create one in PagerDuty or ask an admin to create one with:

PD_FROM_EMAIL is the email address you use in PagerDuty.

PD_USER_ID is your PagerDuty user ID. If the token belongs to you, you can leave the generated placeholder for a first test:

PD_USER_ID=PAGERDUTY_USER_ID

Then run:

pd-auto-ack check --env-file ~/.pd-auto-ack.env

The command confirms which PagerDuty user the token belongs to.