Skip to main content
The agent command provides functionality to create, manage, and run agents that analyze incidents and alerts, leveraging the infrastructure knowledge graph and LLM capabilities.

Usage

Commands

Subcommand: create

Creates a new agent configuration file based on available templates and opens it in your default editor.

Usage

Options

Subcommand: delete

Deletes an existing agent.

Usage

Subcommand: edit

Opens an existing agent configuration file in your default editor.

Usage

Subcommand: list

Lists all available agents in your Unpage instance.

Usage

Subcommand: quickstart

Launches an interactive wizard to quickly set up an incident response agent.

Usage

Subcommand: route

Tests which agent would be selected to analyze a given payload based on your routing configuration.

Usage

Subcommand: run

Executes an agent with a provided payload and displays the analysis.

Usage

Options

Examples: Running an Agent with a Test Payload

Subcommand: schedule

Starts the agent scheduler daemon, which runs agents on a periodic schedule according to their cron expressions. This enables “background chores” like cost optimization reports, security audits, and other maintenance tasks that should run automatically on a schedule.

Usage

Options

Configuring Scheduled Agents

To schedule an agent, add a schedule section to your agent YAML file with a cron expression:
Scheduled agents run with no input payload, so make sure your agent prompt specifies how to get any required inputs (e.g., via tool calls).

Cron Expression Format

Unpage supports multiple cron formats for maximum flexibility:

Standard 5-field format (minute precision)

Extended 6-field format (second precision)

Cron Aliases

For convenience, you can use these aliases instead of full cron expressions:
  • @hourly - Run every hour (equivalent to 0 * * * *)
  • @daily - Run daily at midnight (equivalent to 0 0 * * *)
  • @weekly - Run weekly on Sunday at midnight (equivalent to 0 0 * * 0)
  • @monthly - Run monthly on the 1st at midnight (equivalent to 0 0 1 * *)
  • @yearly or @annually - Run yearly on January 1st at midnight (equivalent to 0 0 1 1 *)

Examples

Standard 5-field patterns (minute precision)

Extended 6-field patterns (second precision)

Using aliases

Scheduler Functionality

When running, the scheduler:
  1. Loads all agents from your profile that have a schedule configuration
  2. Sets up cron jobs for each scheduled agent
  3. Runs agents automatically according to their schedules
  4. Logs the output of each agent run
Press Ctrl+C to stop the scheduler.

Subcommand: serve

Starts the Unpage Agent server, which listens for incoming alerts and routes them to appropriate agents. This creates a webhook receiver that can process alerts from various systems (like PagerDuty) and intelligently selects the most appropriate agent to analyze them.

Usage

Options

Server Functionality

When running, the agent server:
  1. Exposes a /webhook endpoint that receives alert payloads as JSON via POST requests
  2. Automatically selects the most appropriate agent based on the incoming payload
  3. Processes the alert using the agent’s configuration and LLM capabilities
  4. Returns an analysis of the alert

Examples

Subcommand: templates

Lists all available agent templates that can be used when creating a new agent.

Usage

Production Deployment

For production deployments of your agents, see our comprehensive Deployment Guide.