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.7.0.tar.gz (539.3 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.7.0-py3-none-any.whl (135.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agent_vault_proxy-0.7.0.tar.gz
  • Upload date:
  • Size: 539.3 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.7.0.tar.gz
Algorithm Hash digest
SHA256 3139a2b972f6792f73a5f827d47058688f9ac7715a1d52c515dda937fab19918
MD5 fb59747e1f9fc0c83dab70cfbf0f8b2c
BLAKE2b-256 ebfe29e6de69c58dae3da76f385f43af04e88c94a011bff9af83bca5561a74cf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for agent_vault_proxy-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c5a79219e17dcd09c6aa56d4da291ed4440d80852edb4586913ac1a445d2f645
MD5 2bba4120384dd1f9b6f7842ec5a65edd
BLAKE2b-256 4a01b9431273b55562098703c0dd9e68c78919b7e15119ad692cbca1398c4e4a

See more details on using hashes here.

Provenance

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