Skip to main content

agent-vault-proxy

Just-in-time API keys for AI agents and any other process you route through it: the caller only ever sees a placeholder.

AVP protects you from credential stealers (Shai-Hulud and similar) and prompt-injected agents leaking your secrets. It's a local proxy that injects real secrets into requests in-flight, so a compromised or prompt-injected agent has nothing to steal.

PyPI License: MIT CI

How agent-vault-proxy substitutes secrets on the wire

Under the hood: a loopback HTTPS proxy that fetches credentials from Bitwarden Secrets Manager — cloud or self-hosted — just-in-time and injects them into outbound requests, so the calling process never holds the real credential bytes in its address space.

Try it. 10 seconds.

1. Install — Linux pipx, macOS brew:

pipx install agent-vault-proxy
# macOS: brew install inflightsec/avp/agent-vault-proxy
sudo avp setup --bws        # paste your Bitwarden token — generates the CA, starts the daemon

2. Install the skill so your agent writes the binding for you:

/plugin marketplace add inflightsec/agent-vault-proxy
/plugin install avp@agent-vault-proxy

3. Ask the skill to broker a service — say "route the Stripe API through AVP." It mints the placeholder and prints the exact note to paste into BitWarden; it never sees your key.

4. Put the secret in your vault — add the real key to Bitwarden Secrets Manager (or Google Secret Manager) with that note, then route your agent through the proxy:

avp env && avp run claude

Done — the agent only ever sends the placeholder; AVP swaps in the real key on the wire.

Rather than avp run, you can export the proxy + CA vars in your agent's ~/.zshrc (or any shell rc) — see Usage for the canonical block. It's persistent, but it routes your whole shell through AVP, not just the agent AVP launches.

See it in action

agent-vault-proxy demo: prompt injection vs. credential isolation

Add a secret with your AI agent — no config editing

Onboarding a new brokered credential shouldn't mean hand-writing binding YAML. The bundled avp skill lets an AI assistant (Claude Code, or any agent that loads skills) walk you through it: you say "route the Acme API through AVP," it asks the auth shape and host, then tells you exactly what to add — the secret name plus the annotation to paste into the Bitwarden Secrets Manager Notes field (or the Google Secret Manager avp-binding annotation, or a future backend's per-secret metadata). No AVP config edit, no redeploy — and the assistant never sees or stores the secret; it proposes, you apply.

The note itself is two lines pasted into the secret's Notes field:

# avp-binding
api.acme.com

The marker line is what makes it a binding: a note whose first line isn't # avp-binding stays what it is — a human description, never parsed (ADR-0025).

Install the skill

Claude Code (recommended) — install it as a plugin, so it's available in every project and updates with /plugin marketplace update:

/plugin marketplace add inflightsec/agent-vault-proxy
/plugin install avp@agent-vault-proxy

Invoke it as /avp:avp, or just say "route the Acme API through AVP" and it triggers on its own.

Manual (any agent that loads Anthropic-format skills) — copy or symlink skills/avp/ into your agent's skills directory; Claude Code reads ~/.claude/skills/. A symlink keeps it current on git pull:

ln -s "$PWD/skills/avp" ~/.claude/skills/avp

Docs

The proxy never phones home. The only outbound connections it makes are to the BWS endpoint you configure and the upstream APIs your agent is calling. No telemetry. The audit log under /var/log/agent-vault-proxy/audit.jsonl is local-only by default; optional off-box shipping forwards it — from a separate sidecar, never the proxy — only to a collector you run and control.

License

MIT — see LICENSE. Prior art acknowledged in CREDITS.md.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_vault_proxy-0.9.0.tar.gz (749.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_vault_proxy-0.9.0-py3-none-any.whl (203.1 kB view details)

Uploaded Python 3

File details

Details for the file agent_vault_proxy-0.9.0.tar.gz.

File metadata

  • Download URL: agent_vault_proxy-0.9.0.tar.gz
  • Upload date:
  • Size: 749.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for agent_vault_proxy-0.9.0.tar.gz
Algorithm Hash digest
SHA256 374773fede47a4bbb9c458456dd4d8f71cec5bcb0fc6507605de12d88c0cabc5
MD5 e94dd5915bab7b4d0c1ecb335d9ce865
BLAKE2b-256 081af520a4fb017c213e2990b025931bc2a4482ea1e3dc8e4cd6ea0655ad3e26

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_vault_proxy-0.9.0.tar.gz:

Publisher: release.yml on inflightsec/agent-vault-proxy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agent_vault_proxy-0.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_vault_proxy-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 814ef930f011a96c2c6d953af43d81850c2c310c1f25d950d1d3da73b401d4bc
MD5 4ed123850b6b38ef49d0db4e34ea2162
BLAKE2b-256 57045f3c0a69a07af6d415f6bf93abe667fbffb6f6fbffc1a0eb144dab25a3ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_vault_proxy-0.9.0-py3-none-any.whl:

Publisher: release.yml on inflightsec/agent-vault-proxy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.9.1

1 file

This release

0.9.0 This release

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page