Skip to main content

Overview

Cloud agents such as Cursor Cloud Agents and Devin often need private databases and APIs. With the Formal VPN, the Formal Endpoint runs inside the sandbox and reaches your Connectors like a laptop does. The Connector stays private, and the sandbox needs no long-lived Formal credentials.

How it works

The Endpoint in a cloud agent sandbox exchanges the platform's OIDC token for a Formal machine session, then opens an end-to-end encrypted tunnel to the Connector
  1. The Endpoint gets a short-lived OpenID Connect (OIDC) token from the agent platform.
  2. It exchanges the token with the Formal Control Plane for a machine session.
  3. It opens an end-to-end encrypted tunnel to the Connector, as described in How connections work.
Clients connect to the Connector hostname and listener port as usual. Formal attributes every session to the agent’s machine user and to the person the agent acts for. The same flow works for other workloads that sign in with OIDC, such as AWS, GCP, or GitHub Actions. See OIDC for the supported token sources.