> ## 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.

# Architecture

> Understanding Formal's technical architecture with Control Plane, Connector, and Endpoint

## Overview

Formal has two proxies and one management layer.
The Endpoint runs where traffic starts, the Connector runs next to your resources, and the Control Plane configures both.

Formal architecture. The Control Plane runs in Formal's cloud or self-hosted. The Endpoint runs on devices and workloads as a forward proxy. The Connector runs in your VPC as a reverse proxy in front of your resources. Both proxies connect outbound to the Control Plane to receive policies and send logs. The Endpoint forwards traffic for your resources to the Connector through an mTLS tunnel, and sends other traffic directly to the internet after inspecting it.

Read the diagram from left to right:

1. **Humans and agents send traffic.** Engineers, workstation agents, and cloud agents use their usual apps and CLI tools.
2. **The Endpoint captures it.** [The Formal Endpoint](https://docs.formal.ai/docs/guides/client-apps/desktop-app.md) is a forward proxy on the laptop, VM, pod, or sandbox.
3. **Traffic for your resources goes to the Connector.** The Endpoint forwards it through a mutual TLS (mTLS) tunnel. [The Formal Connector](https://docs.formal.ai/docs/guides/core-concepts/connectors/introduction.md) is a reverse proxy in your VPC. It evaluates your policies and reaches the resource.
4. **All other traffic goes directly to the internet.** The Endpoint evaluates your policies and logs the request first.
5. **The Control Plane manages both.** [The Control Plane](https://docs.formal.ai/docs/guides/control-plane/overview.md) sends policies and configuration to both proxies, and receives their logs.

### Connections

Both proxies open their connection to the Control Plane themselves, so the Control Plane needs no inbound access to your network.

| From | To | How | Carries |
| - | - | - | - |
| Endpoint | Control Plane | Outbound HTTPS to `api.joinformal.com` | Policies and configuration down, logs up |
| Connector | Control Plane | Outbound HTTPS to `api.joinformal.com`, or [AWS PrivateLink](https://docs.formal.ai/docs/guides/control-plane/private-link.md) | Policies and configuration down, logs up |
| Endpoint | Connector | Mutual TLS tunnel to a Connector listener | Traffic for resources behind the Connector |
| Connector | Your resources | The resource's own protocol, as a [native user](https://docs.formal.ai/docs/guides/core-concepts/resources/native-users.md) | Requests that your policies allow |
| Endpoint | Internet | Direct, after TLS termination and policy evaluation | All other captured traffic |
| Identity provider | Control Plane | [SSO](https://docs.formal.ai/docs/guides/integrations/sso.md) and SCIM | Users and groups |
| Control Plane | Your SIEM or data lake | [Log Forwarding](https://docs.formal.ai/docs/guides/integrations/log.md) | Logs |

Clients can also connect to a Connector listener directly, without the Endpoint.

## One proxy, packaged two ways

The Connector and the Endpoint are one proxy, packaged two ways: as a container for your VPC and as an app for the host. Both use the same policy engine and protocol parsers, enforce the same policies, and send logs to the Control Plane.

| | Connector | Endpoint |
| - | - | - |
| Runs | In your VPC, next to your resources | On the laptop, VM, or sandbox that sends the traffic |
| Sees | Traffic that users send to it | Traffic from apps, AI agents, and CLI tools on the host |
| Policies | Same policy engine | Same policy engine |
| Logs | Sent to the Control Plane | Sent to the Control Plane |

The Control Plane manages configuration and receives logs, but it never sees your data. Only the Connector and the Endpoint handle traffic to your resources. Formal hosts the Control Plane by default, and you can [self-host it](https://docs.formal.ai/docs/guides/control-plane/overview.md#hosting).

## Deploying Formal

### With a Connector

The Connector is deployed as a container in your VPC, next to the resources it protects. Users connect to the Connector with their own identity, and the Connector connects to the resource with a native user.

Users

Your VPC

end-user identity

Connector

native user

The Connector needs network access to `https://api.joinformal.com` (the Control Plane), which is hosted in Formal's infrastructure. You can then manage your Connectors through the API, the Terraform provider, or the [Control Plane](https://app.formal.ai).

### With the Endpoint

The Endpoint runs on the laptop or VM that originates the traffic, and doesn't require a Connector. It intercepts traffic to your resources and applies your policies before the traffic leaves the host.

Laptop / VM

Endpoint

The Endpoint also needs network access to `https://api.joinformal.com`.

### With the Endpoint and a Connector

Run both to cover the whole path. The Endpoint reaches the Connector over the Formal VPN, or directly at the Connector's hostname when your network can reach it. The Connector then signs in to the resource with a native user.

Laptop / VM

Endpoint

Your VPC

vpn or direct

Connector

native user

| Feature | What it does |
| - | - |
| [Formal VPN](https://docs.formal.ai/docs/guides/vpn/overview.md) | Connects Endpoints to Connectors through an end-to-end encrypted tunnel. Connectors need no inbound firewall rules. |
| [`formal connect`](https://docs.formal.ai/docs/guides/client-apps/cli#connect-to-resources) | Connects to a resource through the Connector. The Endpoint injects Formal credentials, so users don't enter passwords. |
| [Forward to the Connector](https://docs.formal.ai/docs/guides/network-rules.md) | A network rule with `forward_to_connector` sends HTTP, MCP, and LLM traffic to the Connector instead of evaluating it on the Endpoint. |
| [Cloud agent sandboxes](https://docs.formal.ai/docs/guides/vpn/cloud-workloads.md) | Sandboxes such as Cursor and Devin run the Endpoint and connect to Connectors like a laptop. |

## Satellites

The [Data Discovery Satellite](https://docs.formal.ai/docs/guides/core-concepts/satellites.md) is also deployed in your infrastructure. Add it if you want Formal to catalog and classify your database schemas. Like the Connector, it needs network access to the Control Plane.

## Inside each component

* [Formal Connector](https://docs.formal.ai/docs/guides/core-concepts/connectors/introduction.md#within-the-connector): components, request flow, sizing, and high availability
* [Formal Endpoint](https://docs.formal.ai/docs/guides/client-apps/desktop-app.md): installation, Transparent Mode, and network rules
* [Formal Control Plane](https://docs.formal.ai/docs/guides/control-plane/overview.md): policies, logs, identities, and integrations

## Next Steps

> [card] [Deploy a Connector](https://docs.formal.ai/docs/guides/core-concepts/connectors/deployment.md)
>
> Configure Connector networking and resources

> [card] [Configure the Endpoint](https://docs.formal.ai/docs/guides/client-apps/configuration.md)
>
> Set Endpoint behavior and managed preferences


## Related topics

- [AWS](https://docs.formal.ai/docs/guides/integrations/clouds/aws.md)
- [Azure](https://docs.formal.ai/docs/guides/integrations/clouds/azure.md)
- [GCP](https://docs.formal.ai/docs/guides/integrations/clouds/gcp.md)
- [Install Formal Endpoint on Linux](https://docs.formal.ai/docs/guides/client-apps/linux.md)
- [Deploy a Connector](https://docs.formal.ai/docs/guides/core-concepts/connectors/deployment.md)


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