# Protecting Bitcoin Wallet Credentials from AI Agents Educational reference fragment — not live-tested. Wallet credentials belong to a trusted execution environment, not a prompt. BTC KEY authorizes wallet access; recovery material must remain outside ordinary agent tools. BTC ID is a public identifier but can still reveal wallet associations. The example constructs a restricted health request for a fixed loopback origin. It deliberately does not send the request. A production transport must disable redirects and proxies and avoid logging authorization headers. ## Limitations Environment variables are not a security boundary against arbitrary code execution. A coding agent with access to the executor environment may read them. Use a separate restricted process and avoid sharing credentials with the model runtime. Source: `request.go`. No live Bitcoin operation is performed. Article: https://thamer.org/learn/wallet-secret-boundary Engine contract: https://thamer.org/api