Creating a session
Anyone granted at least one access bundle can create a session. Admins can create one with any access bundle.- Dashboard
- CLI
Go to Sessions and select Create Session. Pick the access bundle the agent needs, set how long the session lives, and select Create Session. The token is shown once, with the command to run:
Copy it now. The dialog can’t be reopened.
This is the way to start an agent on a machine that has no Infisical login. The token is the only thing you hand over.


How long a session lives
Pick how long the session should last. Never keeps it working until someone revokes it, so revoke it once the agent that used it has finished. On the CLI this is--ttl, which takes a duration such as 30m, 8h or 7d, or never.
What a running agent can reach
The access bundle on a session is fixed when the session is created. Whether the agent still gets its credentials is re-checked against the current grants on every proxy poll, 60 seconds by default:- Remove someone from the access bundle, and every session they created with it gets no credentials.
- Demote an admin to member, and their sessions over access bundles they weren’t explicitly granted get no credentials.
- Delete an access bundle, and every session that carried it gets no credentials. The session still lists the access bundle’s name so you can see what it was.
- Remove them from Agent Vault, and the proxy refuses every request on their sessions. Removal also takes away a member’s access bundle grants, so adding them back leaves their sessions without credentials until you grant the access bundle again. An admin reaches every access bundle, so their sessions work as soon as they’re back.
Revoking and expiry
Select the session’s menu on the Sessions page and choose Revoke Session. The proxy stops applying credentials for it on its next poll. Revoking is permanent. An expired session stops the same way. The Sessions page shows sessions as Active, Revoked, or Expired, and keeps expired and revoked sessions for 30 days so you can see what an agent could reach.