> ## Documentation Index
> Fetch the complete documentation index at: https://docs.formal.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# VPN for Cloud Workloads

> Connect Cursor, Devin, and other cloud workloads to private Connectors over the Formal VPN

## Overview

Cloud agents such as Cursor Cloud Agents and Devin often need private databases and APIs.
With the Formal VPN, the [Formal Endpoint](https://docs.formal.ai/docs/guides/client-apps/desktop-app.md) runs inside the sandbox and reaches your [Connectors](https://docs.formal.ai/docs/guides/core-concepts/connectors/introduction.md) 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](https://mintcdn.com/formal/wnk1fid_RLxPKuYB/assets/diagrams/vpn-cloud-workload.svg?fit=max\&auto=format\&n=wnk1fid_RLxPKuYB\&q=85\&s=e9998d3cf8e7eda80fac80913358b3a9)

1. The Endpoint gets a short-lived [OpenID Connect](https://openid.net/specs/openid-connect-core-1_0.html) (OIDC) token from the agent platform.
2. It exchanges the token with the [Formal Control Plane](https://docs.formal.ai/docs/guides/getting-started/architecture.md) for a machine session.
3. It opens an end-to-end encrypted tunnel to the Connector, as described in [How connections work](https://docs.formal.ai/docs/guides/vpn/connections.md).

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](https://docs.formal.ai/docs/guides/client-apps/oidc.md) for the supported token sources.


## Related topics

- [Cloud Integrations](https://docs.formal.ai/docs/guides/integrations/clouds/introduction.md)
- [List connector VPN regions](https://docs.formal.ai/api-reference/corev1connectorservice/list-connector-vpn-regions.md)
- [Update connector VPN](https://docs.formal.ai/api-reference/corev1connectorservice/update-connector-vpn.md)
- [GCP](https://docs.formal.ai/docs/guides/integrations/clouds/gcp.md)
- [Terraform Provider](https://docs.formal.ai/docs/changelog/terraform-provider.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.