- A list of the services its session can use, which the agent gets from Infisical through the proxy
- Agent Vault’s built-in skill, which tells the agent to check the list before it asks for a key, and explains how to work behind the proxy
Get the list
The agent gets the list by calling the List session services endpoint:--noproxy "" sends the request through the proxy even if the NO_PROXY environment variable lists your Infisical instance’s host. The proxy adds the session’s token to the request, so without it, Infisical refuses the request.List contents
This shortened example shows a GitHub service that allows onlyGET requests:
The list never includes a credential, a custom header’s value, or a substitution’s value.
The built-in skill
infisical-agent-vault is a skill that Agent Vault provides for every agent. The skill tells the agent to:
- Expect no API keys in its environment, and check its list of services before it asks you for a key or gives up on a task
- Give a placeholder key, such as
agent-vault, to a tool or SDK that won’t start without one, and write a service’s substitution placeholder where the secret goes - Call an MCP service with plain HTTP requests if the agent’s MCP client only loads servers when the client starts
- Read the
X-Agent-Vault-Decisionheader to tell the proxy’s responses apart from the API’s (see Responses from the proxy) - Read Infisical’s documentation for agents only when a task is about Infisical itself
- Never bypass the proxy, turn off TLS verification, or print the proxy URL, which holds the session token
INFISICAL_AGENT_VAULT_URL isn’t set, such as when an agent later runs on the same host without Agent Vault.
Read the built-in skill
To read the built-in skill, call the Get built-in skill endpoint. Afterinfisical agent-vault run installs the skill, its files are also on the agent’s host, in the folder where the CLI installs skills.
Infisical provides the built-in skill, so you can’t edit it or delete it. To leave it out, turn it off.
Built-in skill installation
infisical agent-vault runinstalls the built-in skill along with the session’s other skills- If your code starts agents without
infisical agent-vault run, such as in an E2B sandbox, install the skills that the List session skills endpoint returns (they include the built-in skill), and setINFISICAL_AGENT_VAULT_URLto the URL of the Infisical instance that the proxy connects to
Turn off the built-in skill
- With
infisical agent-vault run, pass--no-agent-vault-skillto leave out only the built-in skill, or--no-skillsto leave out every skill - With the List session skills endpoint, pass
includeBuiltin=false
infisical-agent-vault.