For agents that don’t have a chat interface or need raw environment variables, see Connect a custom agent.
Prerequisites
- A running Agent Vault server (installation)
- A user account with vault access (member or admin)
Option 1: Wrap with agent-vault vault run
The simplest approach for local development. Wraps your agent process with the environment variables it needs — no token to manage. vault run also pre-configures HTTPS_PROXY, HTTP_PROXY, and the CA trust chain on the child, so the agent calls upstream URLs directly (over either http:// or https://) and Agent Vault transparently injects credentials.
--vault to target a specific vault:
vault run is a convenience wrapper, not a sandbox. A child process can unset HTTPS_PROXY/HTTP_PROXY or bypass the injected CA and reach the network directly — local credentials and network access are still fully available to the agent. Stronger isolation for local development is on the roadmap.Option 2: Create a named agent
For agents you can’t wrap withvault run (e.g. cloud-hosted agents, or when you want to connect an agent on a different host).
- Web UI
- CLI
Add the agent
Click Add agent, enter a name, and optionally pre-assign vault access. The modal advances to Connect Your Agent with a three-step walkthrough.
Install the CLI on the agent host
Step 1 of the modal shows a Shell or Dockerfile snippet to install the
agent-vault binary in the environment where your agent runs.Set environment variables
Step 2 shows the
AGENT_VAULT_ADDR, AGENT_VAULT_TOKEN, and AGENT_VAULT_VAULT exports for the agent’s environment. The token is pre-filled. Set AGENT_VAULT_ADDR on the server to also pre-fill the address.What happens next
Once connected, the agent follows the Agent Vault protocol automatically:- Calls upstream APIs normally over
http://orhttps://—HTTPS_PROXY/HTTP_PROXYand CA trust are pre-wired so Agent Vault transparently intercepts the call - If a service isn’t configured yet, the agent creates a proposal and shares an approval link
- You click the link, provide any required credentials, and approve
- The agent retries and the request succeeds
For long-lived agents
Named agents are instance-level entities that persist across sessions. You can manage vault access, rotate agent tokens, and revoke agents at any time. See Agents overview for the full lifecycle.Next steps
Agents overview
How agents work, vault access, and management commands.
Proposals
How agents request access to new services.

