Back to services

agent-vault

A HTTP credential proxy and vault for AI agents like Claude Code, OpenClaw, Hermes, custom agents + harnesses, and more.

View alternatives to agent-vault
Suggest edit
Open source
Self-hostable
MIT
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

Agent Vault is an open-source vault and proxy service from Infisical, built specifically to protect the credentials that AI agents use. It sits between AI agents and external APIs, including LLM providers (such as Anthropic), GitHub, Stripe, and more. The source code is hosted in the Infisical/agent-vault repository on GitHub.

Why you need it

Traditional secrets management hands credentials directly to the application. AI agents are vulnerable to prompt injection: an attacker can craft a malicious prompt or payload that tricks the agent into sending the credentials it holds to the attacker. Agent Vault takes a different approach: the agent never touches the real credentials at all.

How it works

  1. Install Agent Vault on a separate host (a single binary or Docker).
  2. Configure the real credentials in Agent Vault, along with credential substitution rules for each service.
  3. Create a corresponding agent for your AI agent in Agent Vault and obtain a token. If an orchestration backend launches ephemeral sandboxed agents in bulk, the orchestrator can issue short-lived tokens and pass them into the sandbox.
  4. Set AGENT_VAULT_ADDR, AGENT_VAULT_TOKEN, and AGENT_VAULT_VAULT in the agent's environment so that all outbound HTTP/HTTPS traffic goes through Agent Vault.
  5. Give the agent placeholder credentials such as __anthropic_api_key__ or __github_pat__.

When a request passes through the proxy, Agent Vault matches a service rule based on the target host, swaps the placeholder credential for the real one (or replaces the entire authentication header), and then forwards the request to the upstream service. Whether the agent makes calls through an API, CLI, SDK, or MCP, it can authenticate successfully without ever holding any real secret.

Who it's for

  • Developers using coding or general-purpose agents such as Claude Code, Cursor, Codex, OpenCode, OpenClaw, and Hermes Agent
  • Teams building custom agents or agent frameworks
  • Platforms that run remote coding agents or ephemeral secure sandboxes

Installation and deployment

Agent Vault is a single binary that works as both the server and the CLI client.

Install script (supports macOS Intel / Apple Silicon, and Linux x86_64 / ARM64):

curl --proto '=https' --proto-redir '=https' --tlsv1.2 -fsSL https://get.agent-vault.dev | sh
export AGENT_VAULT_ADDR="http://<your-host>:14321"
agent-vault server   # add -d to run in the background

Docker:

docker run -it -p 14321:14321 -p 14322:14322 \
  -e AGENT_VAULT_MASTER_PASSWORD=your-password \
  -e AGENT_VAULT_ADDR="http://<your-host>:14321" \
  -v agent-vault-data:/data infisical/agent-vault

Build from source: requires Go 1.26.10+ and Node.js 22+; run make build.

Once started, the service listens on two ports: 14321 for the admin UI and HTTP API, and 14322 for the transparent MITM proxy, which is the entry point agents connect to. Visit http://<your-host>:14321/register to register an account; the first user to register becomes the instance owner.

Technical notes

  • A master password must be set at startup. It is used to wrap the data encryption key and is kept only in memory once the service is unlocked, so keep it safe.
  • In production, you can deploy multiple instances that share a single PostgreSQL database.
  • The admin port should be exposed only on the internal network. If you need remote administration, put TLS and authentication in front of it; options include an SSO reverse proxy, an IP allowlist, or a VPN.
  • Release signature verification is supported.
  • Users with enterprise needs can choose Infisical Agent Vault on the Infisical platform, which comes with enterprise support and an SLA.