- Create a Trigger.dev Connection
- Infisical UI
- API
Add Sync
Navigate to Project > Integrations and select the Secret Syncs tab. Click on the Add Sync button.

Configure source
Configure the Source from where secrets should be retrieved, then click Next.

- Environment: The project environment to retrieve secrets from.
- Secret Path: The folder path to retrieve secrets from.
Configure destination
Configure the Destination to where secrets should be deployed, then click Next.

- Trigger.dev Connection: The Trigger.dev Connection to authenticate with.
- Project: The Trigger.dev project to sync secrets to, selected from the dropdown of projects available to the connection.
- Environment: The Trigger.dev environment to sync secrets to (one of Production, Staging, Development, or Preview).
Configure initial sync behavior
Configure the Initial Sync Behavior to determine how Infisical should resolve the first sync, then click Next.
Trigger.dev does not support importing secrets because it redacts secret values when they are read back. Only the overwrite behavior is available.

Configure sync options
Configure the Sync Options to specify how secrets should be synced, then click Next.

- Disable Secret Deletion: If enabled, Infisical will not remove secrets from the sync destination. Enable this option if you intend to manage some secrets manually outside of Infisical.
- Auto-Sync Enabled: If enabled, secrets will automatically be synced from the source location when changes occur. Disable to enforce manual syncing only.
- Key Schema: Template that determines how secret names are transformed when syncing, using
{{secretKey}}as a placeholder for the original secret name and{{environment}}for the environment.
We highly recommend using a Key Schema to ensure that Infisical only manages the specific keys you intend, keeping everything else untouched.
- Mark Variables as Secret: If enabled, synced variables are marked as secret (redacted) environment variables in Trigger.dev.
Configure details
Configure the Details of your Trigger.dev Sync, then click Next.

- Name: The name of your sync. Must be slug-friendly.
- Description: An optional description for your sync.
Review configuration
Review your Trigger.dev Sync configuration, then click Create Sync.
A confirmation dialog will appear reminding you that Infisical is the source of truth for the destination. Click I Understand to proceed.
A confirmation dialog will appear reminding you that Infisical is the source of truth for the destination. Click I Understand to proceed.

