triggerdotdev/trigger.dev
A TypeScript task platform for durable AI agents and long-running workflows
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Trigger.dev separates application-owned task code from the service that executes and tracks it. Developers define tasks with the TypeScript SDK and run them on Trigger.dev Cloud or a self-hosted instance. The platform manages queues, retries, and run state, while the application can subscribe to run updates or stream results. For multi-turn chat, chat from @trigger.dev/sdk/ai exposes chat.agent, which gives each conversation its own task lifecycle.
The pnpm workspace separates apps/, packages/, and internal-packages/, with deployment material under docker/ and hosting/. The root manifest lists @changesets/cli, @remix-run/changelog-github, and agentcrumbs; it is not a complete inventory of execution-service dependencies. MCP is a project integration interface for assistants, distinct from the TypeScript task-authoring API and from model inference.
Key Capabilities & Differentiators
The execution model supports long-running jobs, approval waits, and input streams that let backend code send data to an active run. Applications can expose progress through run subscriptions or stream AI output to users. The chat example uses streamText from the Vercel AI SDK with the @ai-sdk/anthropic adapter. This establishes one concrete provider integration, not an exhaustive compatibility list or evidence of bundled model serving.
Prompt templates can live in code, be versioned on deploy, and be overridden from the dashboard without a redeploy. Vercel AI SDK calls surface as spans with model identity, token usage, cost, and latency. TRQL powers custom real-time dashboards, while the health report separates Flow, Execution, and Liveness. Provider webhooks can route verified events to tasks, agents, or waiting runs, but the feature is in public beta.
Trade-offs & Limitations
Compared with a plain queue worker, Trigger.dev puts retries, run traces, approval waits, and live app updates behind one task interface. That is useful when background work has a user-visible lifecycle. For short, independent jobs, the separate deployment and execution service may add more operational surface than it removes. Retries also do not make application side effects exactly-once: tasks that write externally or call third-party APIs still need idempotent behavior at those boundaries.
Cloud hosting avoids running the orchestration service yourself. Self-hosting gives you control over that service but makes capacity planning, monitoring, and upgrades your responsibility. If tasks still call external model APIs, those services remain separate dependencies. Before adopting, test how representative workflows behave across failures and deployments, and verify which operational features your chosen deployment mode provides rather than assuming cloud and self-hosted parity.
Hardware & Deployment Guide
The shortest path is to create a Trigger.dev Cloud project, add SDK tasks to the application, and use the CLI as part of development and deployment. Development, Staging, Preview, and Production environments are available, and development branches isolate concurrent local sessions. For self-hosting, use Docker Compose or the official Helm chart on Kubernetes. Running the orchestration service on your own infrastructure does not make an external model API available offline.
The v4.9.1 release provides ghcr.io/triggerdotdev/trigger.dev:v4.9.1 and lists npx trigger.dev@latest update as a CLI upgrade path. The Helm release publishes chart version 4.9.1 at oci://ghcr.io/triggerdotdev/charts/trigger. For production sizing, measure concurrent runs with representative task workloads. The external Anthropic API example does not require local GPU inference, but browsers, Python scripts, and FFmpeg can materially change worker resource needs.
chat.agent runs one task per conversation across refreshes, deployments, and crashes.TypeScript teams building long-running AI conversations or background workflows that need retries, human approvals, run traces, and live progress in the product.
A simple queue or scheduled job already meets your needs, or your primary requirement is an offline model-serving stack rather than task orchestration.
Quick Start & Installation
import { chat } from "@trigger.dev/sdk/ai"; import { stepCountIs } from "ai"; import { anthropic } from "@ai-sdk/anthropic"; export const myChat = chat.agent({ id: "my-chat", run: async ({ messages, signal, streamText }) => { return streamText({ model: anthropic("claude-opus-5-5"), messages, abortSignal: signal, stopWhen: stepCountIs(15), }); }, });
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| trigger.dev ★ | 16.9k | +51 | TypeScript | Apache-2.0 | A TypeScript task platform for durable AI agents and long-running workflows |
| activepieces | 25.9k | +104 | TypeScript | — | Self-hosted TypeScript automation with visual workflows and reusable MCP tools |
| n8n | 213.1k | +787 | TypeScript | — | Visual Node.js platform for self-hosted workflows and multi-step AI agents |
| hermes-agent | 268.1k | +1.5k | Python | MIT | Self-hosted Python agent with persistent memory and automation across chat and C |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/triggerdotdev/trigger.dev.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about trigger.dev
How do I wire a Trigger.dev task into an existing TypeScript app?
chat.agent maps one task to one conversation. The TypeScript example passes the task's abort signal to streamText and uses stepCountIs(15) to stop after 15 model steps in that example; it is not a platform-wide limit.Do I need a GPU, and how should I size a self-hosted deployment?
Can I self-host Trigger.dev for commercial use?
When should I choose Trigger.dev over a queue worker or a general-purpose workflow engine?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy