- No stored access keys: tasks obtain short-lived credentials when they need them.
- Environment-specific access: grant different permissions to Production, Staging, and individual Preview environments.
- Organization-scoped trust: each organization has its own issuer URL,
https://oidc.trigger.dev/YOUR_ORG_SLUG.
Get started
Choose an official integration, or connect a service that supports external OIDC workload identities yourself.Official integrations
AWS
Assume an IAM role using the SDK’s AWS credential provider.
Anthropic
Call Claude from tasks and chat agents without an API key.
Infisical
Read secrets using your task’s workload identity.
Prerequisites
- Use
@trigger.dev/sdkand the Trigger.dev CLI (trigger.dev) 4.8.3 or later, including the CLI used in CI. - Redeploy after upgrading the CLI, then start a new run on that deployment. Updating the SDK alone or replaying a run against an old deployment does not update its runner.
- Request tokens inside an executing task attempt in Production, Staging, or Preview. Local Development runs cannot mint OIDC tokens; use the service’s local credentials instead.
Connection details
Go to the OIDC page for your environment. Copy the exact values from that page when configuring your service.
The audience is supplied when requesting a token, not a fixed setting on your environment. Some services require a particular value; others let you choose one. Checking only the issuer and audience is not enough to restrict access to one environment: configure an exact subject match or the service’s equivalent identity mapping too.
Subjects have this format:
How tokens work
Tokens are signed withRS256 and expire after five minutes. They include the issuer, subject, audience, issue time (iat), and expiry (exp). Credentials issued by the receiving service can have a different lifetime.
Services can discover your organization’s issuer at:
https://oidc.trigger.dev/YOUR_ORG_SLUG/.well-known/jwks.json. Configure the service to validate the token’s signature, issuer, audience, expiry, and authorized subject. Merely decoding a token does not verify it.
Keep tokens and credentials within the executing run. Do not log them, return them as task output, or silently fall back to static credentials if OIDC fails in a deployed environment. OIDC tokens for external services cannot be used to call Trigger.dev APIs.
