Run an agent
Start an AI agent with access to the PAM accounts its task needs.
Agent instructions
Tell an AI agent which PAM accounts it can use and how to reach them.
Run unattended
Run an AI agent as its own machine identity.
Review and stop an agent
Check what an AI agent did with your accounts and remove its access.
How it works
The CLI opens one port on127.0.0.1 for each account the agent can use. The agent connects to a port the same way it connects to any database or server, and the Gateway adds the account’s credential to the connection:
- The CLI opens the ports and starts the agent
- When the agent first connects to an account, Infisical checks the role, the duration, and any approval the account requires, then opens a session
- The Gateway adds the credential to the connection before it reaches the database or server, so the agent never receives the credential
- Infisical records the session under whoever the run authenticated as, the same way it records a person’s session
If the agent never connects to an account, Infisical doesn’t open a session for it.
Who the agent runs as
An agent has no access of its own. It uses the roles of whoever starts the run, and Infisical attributes its sessions and access requests to that user or machine identity:- You: Log in with
infisical loginbefore you start the agent (for a coding agent that you work with in your terminal) - A machine identity: Give the agent its own identity (for an agent that runs on a schedule or on a server), as described in Run unattended