Scheduled and triggered runs

Run agents on a schedule, on demand, or from webhooks and Discord.

  1. Schedule a deployment

    Pin an agent version and environment to a cron schedule with an IANA timezone.

    Read the docs
    const deployment = await client.waitForPending(  await client.deployments.create(    {      name: "Morning report",      agent: process.env.AGENT_ID!,      environment_id: process.env.ENVIRONMENT_ID!,      initial_events: [        { type: "user.message", content: [{ type: "text", text: "Write the morning report." }] },      ],      schedule: { type: "cron", expression: "0 9 * * 1-5", timezone: "America/New_York" },    },    { idempotencyKey: process.env.DEPLOYMENT_CREATE_KEY! },  ),)
  2. Run on demand or from webhooks

    Start a run manually, or trigger it from GitHub, Linear, Notion, Discord, or a signed webhook.

    Read the docs
    const run = await client.waitForPending(  await client.deployments.run(deployment.id, {    idempotencyKey: process.env.DEPLOYMENT_RUN_KEY!,  }),)
  3. Reconcile from Git

    Keep agents, environments, deployments, memory stores, and vaults in files with checkfu apply.

    Read the docs
    // Inspect outbound HMAC-signed webhook deliveries from the SDK:for await (const delivery of client.webhooks.deliveries.list(webhookId)) {  console.log(delivery.id, delivery.status)}

Managed agents for any harness

Pick the harness and model. Checkfu runs everything around them.