Skip to main content
An agent only uses the accounts it knows about. When you run an agent, the CLI writes an instruction file for the run. The file lists the accounts the agent can use and tells the agent that it doesn’t need credentials, that Infisical records everything it runs, and that it shouldn’t connect to anything else.

Where the instructions go

The CLI delivers the instructions in a format each agent reads:
If your agent runs under a wrapper script, the CLI can’t recognize it by name. Pass --agent with claude, codex, gemini, or generic to choose the format.

Agents you build yourself

Every run sets the INFISICAL_PAM_CONTEXT_FILE environment variable to the path of the instruction file. To give your own agent the instructions, read the file and add its contents to your agent’s system prompt: