
We Built a Python SDK Where the Credentials Never Enter Your Code
I want to show you something before I explain it. from agentsecrets import AgentSecrets client = AgentSecrets () response = client . call ( " https://api.stripe.com/v1/balance " , bearer = " STRIPE_KEY " ) print ( response . json ()) That code calls the Stripe API. It uses a real credential. The credential value never entered this Python process. Not as a variable. Not as a return value. Not in any log. Here is what actually happened: the SDK sent the key name to the AgentSecrets proxy running locally. The proxy resolved the value from the OS keychain, injected it into the outbound HTTP request, and returned only the API response. The value never crossed into application code. That is not a trick. That is what zero-knowledge credential management looks like as a Python SDK. Why This Matters Every secrets SDK you have used works like this: key = os . getenv ( " STRIPE_KEY " ) # value is now in your process key = vault . get ( " STRIPE_KEY " ) # value is now in your process key = keyring
Continue reading on Dev.to
Opens in a new tab



