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

# Run the Endpoint on Cursor Cloud Agents

> Install the Formal Endpoint in a Cursor Cloud Agents environment so every session signs in with OIDC and sends its traffic through Formal

## Overview

You install the Formal Endpoint while the Cursor Cloud Agents environment is built.
Each session then signs in to Formal with a Cursor OIDC token, as a machine user.
No Formal API key is stored in the environment.

Cursor environment builds keep installed files, but not running processes. The setup starts the Endpoint again for every Cloud Agent run.

## Steps

**1. Create the OIDC integration**

Go to [OIDC Integrations](https://app.formal.ai/oidc-integrations) and click **Create Integration**.
Select the Cursor preset and the machine user for your agents.
See [Configure the OIDC integration](https://docs.formal.ai/docs/guides/example-use-cases/formal-endpoint-cloud-agents.md#configure-the-oidc-integration).

**2. Install the Endpoint in the environment**

Copy the headless Debian package link from **Download Endpoint** in the [Control Plane](https://app.formal.ai).
Then follow the **Cursor** tab in [Configure the agent environment](https://docs.formal.ai/docs/guides/example-use-cases/formal-endpoint-cloud-agents.md#configure-the-agent-environment).

If the environment restricts egress, allow `api.joinformal.com`.

**3. Verify**

Start a new session, then run:

```bash theme={"languages":{"custom":["/languages/cel.json","/languages/rego.json"]}}
formal auth whoami
formal transparent-proxy status
```

The first command prints the machine user. The second shows Transparent Mode is running.

## Next Steps

> [card] [Prevent cloud agents from auto-merging PRs](https://docs.formal.ai/docs/guides/example-use-cases/formal-endpoint-cloud-agents.md)
>
> The full setup, with a policy that blocks GitHub auto-merge

> [card] [Keep API keys out of cloud agent sandboxes](https://docs.formal.ai/docs/guides/example-use-cases/cloud-agent-credential-forwarding.md)
>
> Let a Connector inject the credential instead

> [card] [Write network rules](https://docs.formal.ai/docs/guides/network-rules.md)
>
> Choose which traffic the Endpoint intercepts

> [card] [Control AI agents](https://docs.formal.ai/docs/guides/use-cases/control-ai-agents.md)
>
> Decide what coding agents can reach, push, and install


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