A credential proxy sits on the network path between a client and a service and attaches the real credential to outgoing requests, so the client holds only a placeholder or a session token.
A credential proxy is a credential broker that works at the network layer. The client, such as a script or an AI agent, sends its requests through the proxy. The proxy recognises the destination, checks policy, adds the API key or token to the request headers, and forwards it. The client runs with a placeholder value or a session token, so the real key is not in its environment or context. To modify HTTPS requests the proxy usually terminates TLS with its own certificate authority, which the client is set up to trust. Infisical Agent Vault works this way: an agent started with infisical agent-vault run routes its HTTP traffic through a proxy that attaches credentials only for hosts in the session's access bundle, and can limit methods and paths. CyberArk's open-source Secretless Broker applies the same idea to databases, SSH and HTTP. Strengths: no code changes, and one place to enforce host rules and log requests. Limits: the proxy must hold the credential and should run where the client cannot read its state; any process holding the session token has the same access until it expires; and a service that echoes the key back in a response can leak it unless the proxy checks responses. BotPassword's sealed run_with starts a per-run proxy of this kind on Linux and macOS, swaps a placeholder for the value only on the grant's hosts, and refuses a response that reflects the value.