Keys / Infisical

INFISICAL_TOKEN

The Infisical token the Infisical CLI fetches secrets with in CI: a machine identity access token or a service token.

Expires
access tokens: the identity's TTL; service tokens: you choose
API
create, list, update and revoke Token Auth tokens

Get it

Create one on app.infisical.com. The steps aren't recorded yet.

Set it

INFISICAL_TOKEN=...

The Infisical CLI reads it when you don't pass --token. Or keep it out of .env with keypin: keypin run -- npm run dev

Replace it

  1. For a machine identity with Token Auth, select Add Token on the identity. For Universal Auth, run infisical login --method=universal-auth again.
  2. For a service token, open the project's Access Control > Service Tokens tab and select Create token. Give it the same environments, paths and read or write permissions as the old one.
  3. Deploy the new token everywhere that reads INFISICAL_TOKEN.
  4. Check that nothing still uses the old token, then revoke it.

Set rotate_every on the key in keypin.toml and a rotated date on its vault item, and keypin status shows when it's due.

Sources, checked 2026-11-16