Back to directory

Infrastructure & Operations · Orchestration & Scheduling

Trigger

Durable TypeScript workflows for AI agents and background jobs

Trigger is an Apache-2.0 platform for durable TypeScript workflows, AI agents, and background tasks. Developers define jobs in their application code, then run them with retries, queues, waits, observability, streaming, and elastic scaling. Trigger Cloud starts free, while Docker Compose and Kubernetes support self-hosted deployments for teams managing their own infrastructure.

Key facts

License
Apache-2.0
Main language
TypeScript, JavaScript
Maintainer
Trigger.dev
First released
2023
Latest release
v4.7.6, October 20, 2026
GitHub stars
16,592, October 2026
Hosted option
Trigger Cloud from $0/month

What Trigger is

Trigger is an open-source platform for building AI workflows and background jobs in TypeScript. The repository was created on November 30, 2022, and the project was publicly introduced in 2023 by Matt Aitken, Dan, James, and Eric. A 2023 announcement described more than 4,000 GitHub stars, while the repository now lists 16,592 stars and contributors including Matt Aitken, Eric Allam, and James Ritchie. The project raised a $3 million seed round in August 2023 from Y Combinator, Supabase founders, Raycast founder Thomas Mann, and other developer-tool investors. Its early positioning was an open-source Zapier alternative, but its stated focus became developer-controlled background jobs and AI workflows written directly in application code.

How it works

Trigger workflows are defined as exported tasks inside an application repository. Developers can start them with webhooks, custom events, schedules, SDK calls, or the command line, then inspect each execution in the dashboard. Tasks can wait for time, external events, or human decisions before resuming, and failed attempts can retry according to task settings. Queues, concurrency limits, idempotency, structured inputs and outputs, and versioned deployments address common background-job requirements. Realtime subscriptions and streaming expose progress to user interfaces, while React hooks connect run state to frontends. Developers can batch-trigger up to 1,000 tasks in one API call, attach tags and metadata, replay runs, and use development, preview, staging, and production environments for testing and release control.

Architecture and recent releases

Trigger uses JavaScript and TypeScript SDKs, with Python scripts supported through a build extension. Cloud deployments bundle task code and execute it on managed workers, while self-hosted installations use Docker Compose or the official Helm chart. The self-hosted stack includes PostgreSQL, Redis, a container registry, object storage, and related services, with ClickHouse recommended for higher event volumes. Release v4.7.6 was published on October 20, 2026, adding MCP tools for monitoring alerts and changing deployment images to reject certificates associated with compromised eMudhra intermediates. Release v4.7.5 added command-line task triggering, code-defined metric dashboards, clearer environment targeting, improved preview deployment detection, and span-content redaction before telemetry export.

License and pricing

The public repository is licensed under Apache License 2.0, allowing commercial use, modification, redistribution, and self-hosting subject to its conditions. Trigger Cloud is a separate managed service with a Free plan at $0 per month and $5 in monthly credits, Hobby at $10 per month, and Pro at $50 per month. Managed execution adds machine-time charges and a $0.000025 invocation charge for runs on managed workers, while development runs are not charged for invocation. Enterprise pricing is custom and includes options such as custom retention, priority support, role-based access control, a SOC 2 report, penetration-test reporting, and single sign-on. The public repository contains the core self-hosted product.

Limitations and how it compares

Self-hosting gives teams control over deployment and data, but operators must handle security, scaling, backups, upgrades, worker capacity, registry credentials, and object-storage credentials. The Docker guide warns that its basic setup is unlikely to be production-ready without additional operational work, and self-hosted v4 does not include checkpoint support. Compared with Temporal, Trigger emphasizes TypeScript applications, AI agents, frontend-visible progress, and managed task execution, while Temporal centers on durable application workflows. Inngest offers another developer-oriented background-job option, and Hatchet covers open-source workflow orchestration with self-hosting. Trigger is intended for TypeScript teams needing long-running AI tasks, visible execution progress, and a hosted route alongside an Apache-licensed self-hosted deployment.

Main features

  • Durable long-running tasks. Run resource-heavy tasks without platform timeouts, with retries, queues, idempotency, waits, and recovery-oriented execution controls.
  • AI agent workflows. Build agents with TypeScript, Python scripts, LLM providers, tool calls, streaming, waits, and human approval points.
  • Schedules and webhooks. Start tasks from cron schedules, webhooks, custom events, SDK calls, or command-line triggers across multiple environments.
  • Realtime run updates. Subscribe to task runs and stream AI responses through the Realtime API and React hooks for frontend interfaces.
  • Queues and concurrency. Control execution with queues, concurrency limits, per-key overrides, batching, and configurable machine sizes as part of the documented application workflow.
  • Run observability. Inspect logs, traces, metadata, tags, alerts, custom dashboards, replay actions, and structured task results as part of the documented application workflow.
  • Custom build extensions. Add system packages and runtime tools, including browsers, FFmpeg, Python, and other dependencies during builds.

Self-hosting Trigger

Trigger supports Docker Compose for combined or split webapp and worker deployments, plus an official Helm chart for Kubernetes. The minimum webapp host requires 3 or more vCPUs and 6 or more GB of RAM, while a worker requires 4 or more vCPUs and 8 or more GB. The bundled stack includes PostgreSQL, Redis, a container registry, object storage, and related services. ClickHouse 25.8 or newer is required when used for event storage. Operators should generate and protect secrets, change registry and object-storage credentials, configure authentication and email transport, back up databases before destructive migrations, and pin image versions when coordinating upgrades with the CLI. Production deployments require independent security, scaling, reliability, and backup planning.

Strengths

  • Apache-2.0 licensing permits commercial use and self-hosting.
  • Tasks can run without a maximum duration on Trigger Cloud.
  • The SDK keeps workflow code inside the application repository.
  • Cloud plans include a free tier and usage-based compute.

Drawbacks

  • The Docker guide warns that its basic deployment is not production-ready by itself.
  • Self-hosted v4 does not include checkpoint support.
  • Production operators must manage workers, storage, security, and upgrades.

What teams replace with it

Teams usually evaluate Trigger when they want to move off Zapier, AWS Lambda, Vercel Functions.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to Trigger

Frequently asked questions

Is Trigger free to use?

The Trigger repository is free software under Apache-2.0, and teams can self-host it. Trigger Cloud has a Free plan costing $0 per month with $5 in monthly credits, 20 concurrent runs, unlimited tasks, five team members, and development and production environments. Cloud usage beyond included credits follows published compute and invocation pricing, while self-hosting shifts infrastructure costs to the operator.

Can companies use Trigger commercially?

Yes. The public repository uses Apache License 2.0, which permits commercial use, modification, redistribution, and self-hosting subject to the license conditions. The hosted service is a separate commercial offering with Free, Hobby, Pro, and custom Enterprise plans. The Apache license applies to repository code, not to Trigger Cloud pricing or service terms.

How do you self-host Trigger?

The documented installation paths are Docker Compose and Kubernetes through the official Helm chart. A basic webapp host needs at least 3 vCPUs and 6 GB of RAM, while a worker needs at least 4 vCPUs and 8 GB. The Docker deployment includes PostgreSQL, Redis, a registry, object storage, and related services, with ClickHouse recommended for higher production event volumes.

How does Trigger compare with Temporal?

Trigger targets TypeScript applications, AI agents, frontend-visible progress, and managed task execution, with a hosted cloud priced from free upward. Temporal is a broader durable workflow platform with its own server and worker model. Trigger may fit JavaScript teams wanting task code in an existing application, while Temporal suits teams designing durable service workflows across multiple languages.

Can Trigger keep data private?

Teams can self-host Trigger and control where the platform and task data run. The self-hosting guide documents local PostgreSQL, Redis, object storage, registry services, and optional ClickHouse event storage. Self-hosted deployments still require operators to configure authentication, secrets, backups, network controls, scaling, and upgrades. Trigger Cloud offers managed infrastructure, while Enterprise lists SSO, RBAC, and security reporting.

Similar projects to compare

Sources

Last updated 2026-10-22.