Tools / Trigger.dev
Open source platform for durable AI agents and background jobs in TypeScript

Write long-running AI agents and background tasks in TypeScript with retries, queues, human-in-the-loop approvals, streaming, and real-time observability.
Trigger.dev is an open source platform for building AI agents and background workflows in TypeScript. Tasks run on managed infrastructure that survives refreshes, redeploys, and crashes, so long-running jobs don't die when a serverless function times out. The project is actively developed — recent changelog entries include v4.7.4, a dashboard agent in beta, and auto-archiving for preview branches — and the GitHub repository shows around 16.5k stars.
You write tasks in a Trigger folder in your codebase using regular TypeScript, with typed inputs and outputs. The platform handles the operational side: retries, queues, concurrency limits, cron schedules, and idempotency. For AI work specifically, it supports tool calling, human-in-the-loop approvals (a run pauses and stays alive until someone approves an action), streaming responses directly to your frontend without API routes, and full observability with real-time monitoring and tracing. There's also a chat agent API that wires system prompts, tool approval, compaction, mid-turn steering, and telemetry through a single streamText call, and it works with models like Anthropic's Claude via the Vercel AI SDK.
The docs cover a wide range of use cases: autonomous agents, prompt chaining, routing, parallelization, orchestrators, and evaluator-optimizer patterns, each with example projects. Framework guides exist for Next.js and Node.js, there's an MCP server, and self-hosting is documented for teams that want to run the platform on their own infrastructure. Trigger.dev is available as a hosted cloud product (login at cloud.trigger.dev) with a pricing page, though specific plan details aren't shown on the homepage.
Best for
Yes. The site describes it as "the open source platform for durable AI agents," and the source code is on GitHub at triggerdotdev/trigger.dev, where it has roughly 16.5k stars.
TypeScript is the primary language. The docs also include a guide for running Python within tasks.
Yes. Self-hosting documentation is available in the official docs, alongside the hosted cloud option.
There is a pricing page, but the homepage doesn't display plan details or prices, so you'll need to check trigger.dev/pricing for current rates.
Yes. There are dedicated framework guides for Next.js and Node.js, and the platform can stream task output directly to your frontend without writing API routes.
The docs include worked examples for autonomous agents, prompt chaining, routing, parallelization, orchestrators, and evaluator-optimizer loops.
One weekly email with curated tools and founder insights. Unsubscribe anytime. Check our privacy policy.