Skip to main content

Prerequisites

  • A running Agent Vault instance on a separate host from where your workload runs (see installation guide).
  • A custom agent, harness, or application that makes HTTP requests.
  • An agent token from Agent Vault (create one under Agents → Add agent).
Unlike prebuilt agents (Claude Code, OpenClaw, Hermes Agent), this quickstart covers any custom environment you build yourself: an agent loop, a harness orchestrating multiple models, a CI job, or even a traditional deterministic application. You can use the Agent Vault CLI to scaffold any agent or application environment, so every outbound API call routes through Agent Vault for credential injection.

1. Install the Agent Vault CLI

Add the agent-vault binary to the environment where your workload runs.
curl --proto '=https' --proto-redir '=https' --tlsv1.2 -fsSL https://get.agent-vault.dev | sh

2. Set environment variables

The CLI reads these on launch to authenticate with Agent Vault and scope its session to the right vault.
export AGENT_VAULT_ADDR="http://<your-host>:14321"
export AGENT_VAULT_TOKEN="av_agt_xxx"
export AGENT_VAULT_VAULT="<VAULT_NAME>"

3. Run your workload under agent-vault

agent-vault run launches your process with HTTPS_PROXY and HTTP_PROXY pre-set so both its HTTPS and plain HTTP calls route through Agent Vault for credential injection.
agent-vault run -- your-agent

Next steps

Connect a custom agent

Manual proxy setup, error handling, and proposals.

Agent protocol

Full request lifecycle end-to-end.