Skip to main content

Overview

An agent that can read a secret can leak it. Formal keeps the real credential out of the agent’s environment and adds it to the request in the proxy.

How Formal helps

Roll it out

1

Deploy a Connector

See Deploy a Connector. The Connector holds the credential.
2

Create the resource and native user

Add an HTTP resource and a native user with the API key.
3

Route traffic to the Connector

Install the Endpoint and write a network rule with forward_to_connector.
4

Remove the key from the client

Delete the key from laptops and sandbox secrets. Confirm that calls still succeed, then check Logs.

Guides

Keep Stripe API keys off laptops

Inject the key into Stripe API calls

Keep API keys out of cloud agent sandboxes

Cursor and Devin cloud agents

Daytona sandboxes

Inject keys outside a Daytona sandbox

E2B sandboxes

Inject keys outside an E2B sandbox

Modal sandboxes

Run the Endpoint in a Modal Sidecar with Modal OIDC

Seal Claude Code OAuth tokens

Keep tokens encrypted on the device

Seal Claude Desktop session cookies

Replace cookies with sealed values

Encrypt MCP OAuth tokens

Encrypt Notion MCP OAuth tokens

Next Steps

Token Encryption

Encrypt HTTP tokens with your own KMS key

OAuth and Linked Accounts

Send each user’s own upstream account