Skip to main content

Loopback HTTPS proxy that fetches API credentials from Bitwarden Secrets Manager just-in-time and injects them into outbound requests, so the calling process never holds the real credential bytes in its address space.

Project description

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.

$ pipx install agent-vault-proxy            # pipx puts `avp` on $PATH for sudo
$ sudo avp setup --static
$ sudo avp secret add STRIPE_API_KEY         # prompts; no echo added secret 'STRIPE_API_KEY'
  next: run `avp env` to refresh ~/.config/avp/env
$ avp env
$ avp run claude                             # auto-loads ~/.config/avp/env, sets proxy, exec

avp run reads the placeholder env file itself, so the real key never enters your shell — not even as a placeholder. Add more secrets later by repeating secret add + avp env.

No Bitwarden account? --static keeps secrets in a local YAML file owned by the service user. Upgrade later by re-running sudo avp setup without --static.

On Mac: brew install inflightsec/avp/agent-vault-proxy.

See it in action

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

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.

License

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

Project details


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.6.0.tar.gz (413.6 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.6.0-py3-none-any.whl (95.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for agent_vault_proxy-0.6.0.tar.gz
Algorithm Hash digest
SHA256 5941158e853f8c5518ac343d6412d415b21860534d2cc59c09eb50dcc23cc017
MD5 78ca6ce8a013906b8b1a84f0e2a43db6
BLAKE2b-256 5a9c82d222f159a73080856e52e4aa3476cd14c8f09fcfe4f25ad796462a3540

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_vault_proxy-0.6.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.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_vault_proxy-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d6c78518a26d0a8efe30b546007652dc29dc1ffe2d6ec93228b8e499a508e29c
MD5 ee0b3ec53e4ce6044836a93638784e02
BLAKE2b-256 d2d6bce6a98573a20841bb01cbe9b44042cf4851f240c4660b836e87dcb54649

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_vault_proxy-0.6.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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page