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.
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.
- Trigger.dev MCP serverdiscovered
- Trigger.dev Management APIdiscovered
- Trigger.dev Realtime HTTP APIdiscovered
- Trigger.dev CLIdiscovered
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.
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.
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.
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.
$ npx trigger.dev@latest loginAcquired by the CLI — running npx trigger.dev@latest login opens the auth flow and stores the credential.
conventions · 1/8 published
- integrations.json✗
/.well-known/integrations.json - llms.txt✓https://trigger.dev/llms.txt
- API catalog✗
/.well-known/api-catalog - OpenAPI document✗
/api/schema/, /openapi.json, /swagger.json, /api/openapi.json, or /v1/openapi.json - MCP server card✗
/.well-known/mcp/server-card.json - OAuth protected resource✗
/.well-known/oauth-protected-resource - Agent card✗
/.well-known/agent-card.json - Agent skills✗
/.well-known/agent-skills/index.json
Publish these signals → /publishing