T

trigger.dev

Trigger.dev is an open source platform for durable background jobs, AI agents, and long-running workflows written in TypeScript. It can be used via Trigger.dev Cloud or self-hosted, and includes task execution, realtime updates, and observability features.

4 integrations · MCP · REST · CLI

Trigger.dev exposes a REST Management API, a separate Realtime HTTP API, an MCP server launched via `npx trigger.dev@latest mcp`, and an npm-distributed CLI.

discovered 2mo ago
MCP servers1
REST · OpenAPI2
CLI1
Credentials
Trigger.dev Secret API keyapi_keyGet key ↗

Sign in to Trigger.dev Cloud, open your project, then go to the API Keys page in the dashboard to copy the environment-specific secret key (tr_dev_…, tr_prod_…, etc.). Use it server-side only. For preview branches, also copy the preview branch value and set TRIGGER_PREVIEW_BRANCH as documented on API keys.

Trigger.dev personal access tokenbearerGet token ↗

Sign in to Trigger.dev Cloud and create a personal access token in the dashboard/account settings flow referenced by the Management API authentication docs. The token starts with tr_pat_ and can authenticate Management API requests; when using it for project-scoped operations you must also provide the target projectRef where required by the API/SDK.

Trigger.dev Public Access Tokenbearer

Generate a public access token from your backend using auth.createPublicToken(...) in the Realtime auth guide. Scope it to only the runs, tags, tasks, or sessions your client should access. These tokens are intended for frontend or limited client/backend realtime access, not full project administration.

Trigger.dev Trigger Tokenbearer

Generate a trigger token from your backend following the Realtime auth guide. These are single-use frontend-safe tokens for triggering tasks from React hooks and related realtime flows.

Trigger.dev CLI login sessionoauth2$ npx trigger.dev@latest login

Acquired by the CLI — running npx trigger.dev@latest login opens the auth flow and stores the credential.

conventions · 1/8 published

Publish these signals → /publishing