Skip to main content
If an agent runs behind the Agent Vault proxy, it holds no API keys, so its environment doesn’t list the APIs and MCP servers it can use. Without help, the agent often stops and asks you for a key, even though the proxy would have added the real one. Agent Vault provides two things so that an agent can find its services on its own:
  • 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.
Each request for the list appears in the session’s logs with the outcome Passthrough.

List contents

This shortened example shows a GitHub service that allows only GET requests:
For the full reference, see the List session services endpoint.
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-Decision header 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
The skill tells the agent to request the list first, and to ignore the skill if 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. After infisical 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 run installs 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 set INFISICAL_AGENT_VAULT_URL to the URL of the Infisical instance that the proxy connects to

Turn off the built-in skill

To replace the built-in skill with your own, turn the built-in skill off and give your skill another name. A skill you add can’t use the name infisical-agent-vault.