Trigger.dev logo

Trigger.dev

Visit

Open-source durable execution platform for AI agents in TypeScript. Build long-running tasks and chat agents with no timeouts, checkpoint-based resume, retries, queues, and observability — billed only for actual compute.

Share:

Trigger.dev is an open-source (Apache 2.0) platform for building and deploying AI agents and workflows in TypeScript. It runs tasks with no timeouts — surviving crashes, deploys, and idle gaps via a checkpoint-resume system — so agent runs can last minutes or hours without you managing infrastructure. Its chat.agent product turns an AI conversation into a single durable task that wakes when a message arrives and freezes when none do, having already served millions of sessions and more than 84 years of compute in production.

Key Features

  • No timeouts: Tasks run as long as they take — a slow tool, a long chain, or a sub-agent thinking is just work, not a reason to fail.
  • Checkpoint-resume durability: Processes are snapshotted (CRIU today, Firecracker microVMs in private beta), so a crashed run resumes exactly where it parked.
  • chat.agent durable chat: One long-lived task per conversation, with durable streams that replay from the last read chunk on refresh — no re-running the model.
  • Retries, queues, and idempotency: Production primitives for building rock-solid agents.
  • Human-in-the-loop: Pause a task until a human approves, rejects, or gives feedback — the wait is free because compute is freed.
  • Built-in observability: Every turn is a span; an AI metrics dashboard tracks cost, tokens, and latency.
  • Full runtime freedom: Install packages, run ffmpeg, drive a headless browser — the machine is a real Linux environment.

Use Cases

Who Should Use This Tool?

  • TypeScript teams building AI agents: Durable tasks for agent loops that must survive production reality.
  • Chat product builders: Multi-turn AI chat that resumes across refreshes, redeploys, and crashes.
  • Developers replacing fragile serverless workflows: No timeout walls like Lambda or Vercel functions.

Problems It Solves

  1. Serverless timeouts: Background jobs and long agent runs that fail mid-way on traditional platforms.
  2. State loss: Agents that forget everything when the process dies — solved with checkpointing and durable sessions.
  3. Cost of waiting: Agents sitting idle for human approval or an external event no longer burn compute.

Pricing

Plan Price Features
Free $0 Start free, invite your team, DEV environment runs not charged
Cloud Usage-based From $0.0000169/sec (Micro, 0.25 vCPU); $0.000025 per run
Self-hosted Free (Apache 2.0) Run the whole platform yourself

Trigger.dev is billed as compute time when tasks are actually executing. A suspended conversation isn't running, which is why waiting for human approval is free.

Advantages & Unique Selling Points

Compared to Competitors:

  1. AI-native and TypeScript-first: Unlike Temporal or Vercel Workflows, it's built around AI SDK integration with end-to-end type safety.
  2. Checkpoint-resume over replay: Snapshots the whole VM state (CPU, memory, file system) instead of re-executing steps — faster and cheaper for long runs.
  3. Open source: Apache 2.0, with a self-hosting guide — no lock-in.

What Makes It Stand Out:

  • chat.agent makes the API route between useChat and streamText disappear.
  • Real Linux machines (not restricted runtimes) with dedicated CPU, memory, and disk.
  • One in twenty production agent runs exceeds 36 minutes — past where a request would have been cut off elsewhere.

User Reviews

Trigger.dev is widely covered in the dev-tools community — the Scaling DevTools podcast's durable-agents episode with CEO Matt Aitken, and multiple 2026 reviews ("My Long-Running AI Workflows Finally Stopped Failing") highlight how it fixes timeout-induced job failures. The chat agent launch (announced August 10, 2026, GA since July 2) drew attention for its "durable streams" design and for production customers like Arena running Agent Mode on it at scale.

Getting Started

Quick Start Guide

  1. Create an account: Start at cloud.trigger.dev and follow the onboarding.
  2. Install the SDK: Run the CLI setup command inside your project.
  3. Write a task: Define a task() or chat.agent() in your codebase — standard AI SDK code.
  4. Deploy and observe: Trigger from the dashboard, watch tracing, retries, and metrics per run.

Integration

  • Vercel AI SDK (useChat client-side, streamText server-side).
  • Any LLM provider (OpenAI, Anthropic, and more).
  • Node.js SDKs, Python scripts, ffmpeg, and browser automation.

Frequently Asked Questions

Is Trigger.dev open source?

Yes. Trigger.dev is Apache 2.0, self-hostable, and chat.agent is part of the core platform.

How is it different from AWS Lambda or Vercel functions?

Trigger.dev tasks have no timeouts and survive crashes via durable execution — serverless functions die at the platform limit.

What does "durable chat" mean?

A conversation is a session that outlives the process serving it. Refresh mid-response and the stream replays from where you stopped reading, without re-running the model.

Do I pay for idle time?

No. A suspended conversation isn't running compute, so waiting for a human approval or an overnight gap costs nothing.

Alternatives

If Trigger.dev isn't the right fit, consider these alternatives:

  • n8n: No-code workflow automation with AI agent nodes.
  • LangGraph: Graph-based agent orchestration framework.
  • [Temporal]: The classic durable workflow engine (see the Temporal site for details).

Tips & Best Practices

  1. Put irreplaceable state in a database: Memory lasts the conversation, but the heap resets on crash — keep what you can't afford to lose in your DB.
  2. Use onBoot for initialization: Fresh workers fire onBoot, not onChatStart — the right place for chat.local setup.
  3. Leverage free waits: Design flows around human-in-the-loop approvals; suspended compute costs nothing.

Conclusion

Trigger.dev is the open-source answer to the hardest part of shipping AI agents: reliability. No timeouts, checkpoint-based durability, and AI-native primitives make long-running agent workflows something you can actually deploy to production — and the chat agent launch proves the same substrate handles interactive conversations at scale.

Comments

No comments yet. Be the first to comment!