How do you keep API keys and tokens away from coding agents?
Keep the credential on a Formal Connector and let the proxy add it after the request has left the agent. The Endpoint forwards selected requests with the engineer’s Formal identity, a Native User sets the header, and the laptop or agent VM never stores the key. In our Anthropic walkthrough, Claude Code runs with ANTHROPIC_API_KEY=sk-ant-dummy, and the API answers as if that were a valid key.
- Keep Stripe API keys off laptops stores the Stripe key as an environment variable on the Connector, builds the
Authorization: Bearerheader from it, and adds a policy that lets one group read balances, charges and customers while blocking refunds and every other write - Verify Full checks the certificate of api.stripe.com before the key goes out
- Using proxies to hide secrets from Claude Code walks through the Anthropic version with Terraform
- In a Cursor Cloud Agent or Devin sandbox, the headless Endpoint forwards the same calls to the Connector under the agent’s OIDC identity, and
env | grep -i stripeinside the sandbox comes back empty
