Trigger.dev lets teams define long-running background tasks and AI agents in TypeScript. Deployed runs get retries, queues, tracing, and scaling through the platform or self-hosted installs.
Overview
Trigger.dev is an open-source platform for building AI workflows and agents in TypeScript. Developers define tasks in their codebase with the SDK, then deploy them so runs can execute for long periods without typical serverless timeouts. The product emphasizes durable execution with retries, queues, idempotency, and checkpointing.
Workflow features include cron schedules, batch triggering, structured inputs and outputs, waits and waitpoints for human-in-the-loop steps, and concurrency rules. AI-oriented capabilities cover multi-turn chat agents, prompt templates versioned on deploy, LLM call tracing, hosted webhooks that route provider events into tasks, and an MCP server so assistants can interact with projects.
Observability is built around per-run tracing and logs, dashboard metrics via TRQL queries, health reports, and alerting options. Realtime APIs and React hooks let frontends subscribe to run progress and stream model output. Environments span development, preview, staging, and production, with preview branches for isolated testing.
Most users connect tasks to Trigger.dev’s managed cloud, which auto-scales worker infrastructure. Teams that want on-premises control can follow Docker Compose or Kubernetes self-hosting guides. Build extensions allow custom system packages such as browsers, Python, and FFmpeg inside task images.
Key features
- TypeScript SDK for background tasks
- Durable retries, queues, and checkpoints
- LLM observability and chat agents
- Hosted webhooks and MCP server
- TRQL queries and custom dashboards
- Human-in-the-loop waitpoints
- Realtime run subscriptions
- Docker and Kubernetes self-hosting
Use cases
- Long-running AI agent workflows
- Background jobs without timeouts
- Webhook-driven automation
- Scheduled and cron task pipelines
- Realtime apps streaming LLM output