Skip to main content

Quick start

Go from zero to your first task in 3 minutes.

Build AI agents

Agent patterns, worked examples, and the tools to run them in production.

AI coding assistants

Let Claude Code, Cursor and Windsurf write correct Trigger.dev code with the MCP server, Skills and rules.

Guides & examples

Frameworks like Next.js, worked example projects, and step-by-step how-to guides.

What is Trigger.dev?

Trigger.dev is the open source platform for building and running durable AI agents and workflows in TypeScript. Run them for hours, configure automatic retries, control concurrency, and manage queues. There’s no execution timeout, and no queue or worker infrastructure for you to build. You write agents and tasks in your existing codebase using our CLI and SDK, and get durable execution, queues, waits, full tracing, and elastic scaling without building any of it yourself. Trigger.dev’s core is Apache-2.0 licensed, a genuine OSI license. Self-host it on your own infrastructure, or let Trigger.dev Cloud run it for you.

Core concepts

Writing tasks

The durable functions at the core of Trigger.dev. Write them in your existing codebase, with retries and no timeouts.

Triggering tasks

Trigger a task from your backend, your frontend, a schedule, or another task.

Runs

Every execution of a task is a run, with its status, retries, and logs recorded.

Idempotency

Use an idempotency key so a retried or duplicated trigger runs once, not twice.

Build with agents

Build durable, multi-turn agents with the chat agent: one long-running task per conversation, with the tools it can call, streaming, and resumability handled for you. Add human-in-the-loop approval by pausing a run on a waitpoint until a person signs off, and a waiting run doesn’t consume compute. Stream run status and LLM output straight to your frontend with the Realtime API and React hooks, and record your Vercel AI SDK calls as spans with the model, token counts, cost and latency using AI observability. Version your prompts in code, then edit the text or swap the model from the dashboard without redeploying.

Scale and scheduling

Set how many runs of a task execute at once, globally or per tenant, with queues and concurrency. Run a task on a cron schedule with timezone support, choose the CPU and memory each task runs on with machines, and control what happens when a task throws with errors and retries.

Self-hosting

Trigger.dev is open source and you can self-host. Read the overview guide, or how to do it with Docker or Kubernetes.

Frequently asked questions

How do I add human-in-the-loop approval to an agent? Pause the run on a waitpoint until a person approves the action. A waiting run doesn’t consume compute, so it can wait minutes or days. Does Trigger.dev support tool calling and MCP? Yes. Agents call the tools you define, and the MCP server lets AI coding assistants trigger tasks, deploy, and read run traces. Can I use Trigger.dev for background jobs, not just AI? Yes. The same durable tasks, queues, retries, and cron schedules run any background job or workflow, with or without AI.

Getting help

We’d love to hear from you or give you a hand getting started. Here are some ways to get in touch with us.

Join our Discord server

Our Discord is the best place to get help with any questions about Trigger.dev.

Follow us on X (Twitter)

Follow us to get the latest updates and news.

Schedule a call

Arrange a call with one of the founders to get help with any questions.

Give us a star on GitHub

Check us out our GitHub repo and give us a star if you like what we’re doing.