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

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

## Overview

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

Devin snapshots keep installed files and the Endpoint user service. You configure the environment once, and every later session starts the Endpoint automatically.

## Steps

**1. Create the OIDC integration**

Go to [OIDC Integrations](https://app.formal.ai/oidc-integrations) and click **Create Integration**.
Select the Devin 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 **Devin** 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] [Give Devin just-in-time database access](https://docs.formal.ai/docs/guides/example-use-cases/devin-database-access-oidc.md)
>
> Query a protected database after a human approves


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