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

# Cloud Agent

> Send API requests from Requestly's cloud so they always arrive from one stable IP address you can allowlist on your API, instead of from each teammate's machine.

Every request you send runs on an **agent**. The **Local Agent** sends from your own machine, so your API sees your current IP address: your office, your home, your coffee shop, a different one for every teammate. The **Cloud Agent** sends from Requestly's cloud instead, and every request it sends arrives from a **single, stable IP address**.

That address is the point. If your API is behind an IP allowlist, a firewall rule or a security group, you add one address once and your whole team can call that API from Requestly, with no VPN, no shared jump box and no firewall change when someone travels or a lease renews.

## Prerequisites

* You are signed in.
* Cloud Agent is enabled for your account. It is rolling out gradually, so if you do not see the agent picker in the app footer, contact Requestly support.
* In the desktop app, a build that ships the Cloud Agent. Update to the latest version if the picker offers no Cloud Agent row.

## Which agent your requests use

> [tab] Desktop app
>
> Both agents are available. Local is the default, and you can switch to the Cloud Agent whenever you need requests to arrive from the allowlisted address.

> [tab] Web app
>
> The Cloud Agent is the only agent. A browser cannot send a request directly from your device, so the Local row is visible but disabled and reads "Needs the desktop app - a browser cannot send from this device." To send from your own machine, use the [desktop app](https://requestly.com/downloads).

## Choose an agent

**1. Open the agent picker**

Click the agent name in the application footer. The picker lists **Cloud Agent** and **Local Agent**.

**2. Pick an agent, or let Requestly pick**

**Auto-select** is on by default and is subtitled "Requestly picks the best agent this device can reach." It chooses Local when the app can send from your device, and Cloud when it cannot. It decides from the app you are using, never from the contents of a request, so Auto-select will not move a request to the cloud because of what is in it.

Turn Auto-select off to pin an agent yourself. While it is on, the two agent rows are locked and greyed out, with a mark on the one Auto-select landed on.

![The Select agent panel with the Auto-select switch off and Cloud Agent chosen, above the Local Agent option](https://mintcdn.com/requestly/Wg4cO3Odmz8DTS4A/images/cloud-agent-picker.light.png?fit=max\&auto=format\&n=Wg4cO3Odmz8DTS4A\&q=85\&s=bbdd91a8072c08efadc539147dd58e9a)

**3. Check the result**

Send a request and look at the response. An easy way to see which address your API will see is to send a `GET` to a service that echoes the caller's IP, such as `https://api.ipify.org?format=json`, once on each agent.

### The cloud status icon

The Cloud Agent row carries a cloud icon reporting what the app last observed:

| Icon state | What it means |
| - | - |
| **Reachable** | A cloud session opened successfully. |
| **Unreachable** | A session failed to open, or was cut unexpectedly. |
| **Not checked** | Nothing has been attempted yet. The connection is made on your first cloud send, so this is normal before you send anything. |

The icon is advisory. It never blocks a send: if it reads **Unreachable** you can still press Send, and you get a real error rather than a guess. In the desktop app the icon stays on **Not checked**.

## Allowlist the Cloud Agent's IP address

This is the setup your API team needs to do once.

**1. Open the Cloud settings**

In the agent picker, click the settings icon on the **Cloud Agent** row, labelled "Cloud settings - egress IP to allowlist".

**2. Copy the address**

The popover shows **Cloud egress IP** with a copy button, above the caption "Allowlist this IP on your upstream API so it accepts cloud sends."

![The Cloud egress IP popover showing the address, blurred here, with a copy button beside it](https://mintcdn.com/requestly/Wg4cO3Odmz8DTS4A/images/cloud-agent-egress-ip.light.png?fit=max\&auto=format\&n=Wg4cO3Odmz8DTS4A\&q=85\&s=a58d78cb8f752c4f21dc2875048b1281)

> [!NOTE]
>
> The address is blurred in the image above on purpose. Read the real one from your own app, so that what you allowlist is always the address in use.

> [!WARNING]
>
> Always copy the address from the app rather than from a document, a ticket or a screenshot. The app reads it from the same place the requests actually leave from, so the value you see there cannot drift out of date. A copy written down somewhere else can.

**3. Add it to your API's allowlist**

Add the address wherever your API decides who may call it: a firewall rule, a cloud security group, an API gateway IP policy, a WAF rule, or your provider's dashboard.

**4. Verify**

Switch to the Cloud Agent and send a request to the API you just allowlisted. A success means the rule is live.

### What to expect from the address

* **One address, shared by all Requestly customers.** Dedicated per-customer addresses are not offered. Allowlisting the Cloud Agent therefore allows Requestly's cloud, not your organization specifically. If your API holds data where that is not an acceptable control on its own, keep an API key or a token in front of it and treat the allowlist as one layer, not the only one. Mutual TLS is not an option here, because the Cloud Agent cannot present a client certificate: an API that requires one has to be called from the Local Agent.
* **It is stable, not frozen.** Treat it as infrastructure you read from the app, and check it in the app if calls suddenly start being rejected.
* **Requests leave from one region** (US East). There is no region selector.

Allowlisting the Cloud Agent on your API is the opposite direction from letting Requestly out through your own corporate firewall. For that, see [Network requirements](https://docs.requestly.com/account/network-requirements.md).

## What the Cloud Agent cannot do

Anything that lives on your machine cannot be reached from the cloud. When a request needs one of these, Requestly **refuses that request and tells you why**. It never sends it anyway, and never quietly moves it to your machine instead.

| The request uses | What you see |
| - | - |
| `localhost` or a loopback address | "Cloud Agent cannot reach localhost. Run this request from the desktop app." |
| A private network address, including anything on your LAN, a VPN or a `.local` name | "Cloud Agent cannot reach private network addresses. Run this request from the desktop app." |
| A [Vault](https://docs.requestly.com/api-client/vault/vault.md) secret in the URL, a header, the body or a script, from the local vault or from a connected provider such as AWS Secrets Manager or Azure Key Vault | "This request uses a vault secret, which never leaves your machine. Run it from the desktop app." |
| A file attached from your computer as part of a `form-data` body | "Cloud Agent cannot read files attached from your computer. Run this request from the desktop app, or remove the file." |
| A [client certificate](https://docs.requestly.com/api-client/send-api-request/ssl-certificates.md) | "This request uses a client certificate, which stays on your machine. Switch to Local to run it." |
| A server whose TLS certificate is signed by a [CA certificate you added](https://docs.requestly.com/api-client/send-api-request/ssl-certificates.md) in App Settings | "SSL Error: Added CA certificates apply to sends that run on this machine, not to the Cloud Agent. Switch to Local to use them." |
| [NTLM authentication](https://docs.requestly.com/api-client/send-api-request/authorization/ntlm.md) | NTLM authentication is not available with the Cloud Agent. |
| A GraphQL subscription | You can edit and save the request, but not connect. |
| A [gRPC](https://docs.requestly.com/api-client/send-api-request/grpc-request.md) schema loaded from a `.proto` file or pasted proto content | "The .proto file is on your machine and the Cloud Agent cannot read it. Use server reflection instead, or run this request on the desktop app." |

Three of those are narrower than they look:

* **A `form-data` body is fine** as long as every part is text. Only parts that read a file from your disk are refused.
* **Only GraphQL subscriptions are refused.** WebSocket, Socket.IO, MQTT and gRPC connections all work on the Cloud Agent, and gRPC works whenever the schema comes from server reflection.
* **Vault secrets still work inside JWT and OAuth 2.0 authorization.** There, the secret is read on your machine and only the signed token leaves it, so the request is not refused. A vault reference anywhere else in the request is.

For the added-CA case, Requestly deliberately does not offer its usual one-click "turn off SSL verification and retry". Turning verification off would make the call succeed while removing the check that the certificate was the right one, so the remedy is to run that request on the Local Agent instead.

In the web app, two more conditions are refused because a browser cannot do the work: an OAuth 1.0 signature that uses RSA, and an OAuth 2.0 request whose token has not been fetched yet ("This request's OAuth 2.0 token was not resolved before sending. Get a token from the Authorization tab, then try again."). [Digest authentication](https://docs.requestly.com/api-client/send-api-request/authorization/digest.md) works normally on the Cloud Agent.

## Settings that behave differently

| Setting | On the Cloud Agent |
| - | - |
| **Proxy configuration** | Ignored. A cloud send always goes direct, because routing it through a proxy would change the address your API sees, which is the entire reason the Cloud Agent exists. The request is not refused, it simply does not use your proxy. |
| **Maximum redirects** | Redirects are followed, up to 20 hops. A higher number in request settings is reduced to 20. |
| **SSL verification and lenient HTTP parsing** | Applied exactly as they are on your machine. |
| **Pre-request, post-response and on-message scripts** | Run, in the app on your machine, not in the cloud. Requests a script sends itself, with `rq.sendRequest`, go out through the Cloud Agent too, so a script cannot give you a second source address. Those scripts get no proxy and no certificate from your device, for the same reason an ordinary cloud send does not. |
| **Cookies** | Work. Cookies from the jar are attached before the request leaves, and `Set-Cookie` from the response is stored back. |

## Limits

| Limit | Value |
| - | - |
| Time one cloud request may take | 30 seconds. Your own timeout in request settings still applies, but cannot raise this ceiling. The same request sent from your own machine is not capped at 30 seconds. |
| Cloud requests per minute, per user | 60 |
| Age of a realtime connection (WebSocket, Socket.IO, MQTT, gRPC) | 1 hour. This is the connection's age, not idle time: a busy connection is also closed at an hour. Requestly ends it cleanly shortly before the cut and tells you why, so you can reconnect. |

When a realtime connection ends for a reason that belongs to the cloud rather than to your endpoint, the connection badge says so: "Connection reached its time limit", "Cloud Agent is restarting", "Cloud Agent connection lost", "Cloud session dropped", "Too many messages - some were dropped", "Session expired - sign in again", "Reconnect attempts exhausted" or "Auth rejected".

Other messages you may see on a cloud send:

* "The Cloud Agent is at capacity. Retry in a moment." Transient. Send again.
* "The Cloud Agent could not complete this request." The send failed or passed the 30 second limit.

### Running a collection on the Cloud Agent

A [collection run](https://docs.requestly.com/api-client/collection-runner.md) works on the Cloud Agent, and each request is judged on its own. If one request in the collection needs something the cloud cannot reach, only that request fails and the run carries on. If a run hits the per-minute limit, Requestly waits and retries that request up to three times. If it is still refused after those retries, the whole run stops.

Cloud runs send one request at a time, so that they stay inside the per-minute limit, keep the run order you set, and let each request see the cookies the one before it stored.

Two things stop a whole run rather than one request, because they are about your session and not about any single request:

* "Cloud Agent rate limit reached - the run stopped. Try again shortly, or run the collection from the desktop app."
* "Cloud Agent authentication was rejected - the run stopped. Sign in again and retry."

## What the cloud keeps

Nothing from your request is stored.

A cloud send holds the URL, the headers, the body and the response in memory only, for as long as the request takes, and writes none of it to disk or to any archive. The operational logs Requestly keeps for reliability record only a fixed set of non-request facts: the protocol, the status code, how long it took, how many bytes moved, the kind of error if there was one, and a random id for the send. URLs, headers, bodies and responses are excluded from them by design.

[Vault](https://docs.requestly.com/api-client/vault/vault.md) secrets stay on your machine. A request that references one is refused rather than sent, and in the one case where a vault secret is allowed, JWT and OAuth 2.0 authorization, the secret is read and used on your machine and only the resulting token travels.

## Troubleshooting

| What you see | What to do |
| - | - |
| Your API rejects cloud sends with 403 and accepts local ones | The address is not allowlisted, or the rule has not taken effect yet. Re-copy the address from Cloud settings and compare it against the rule. |
| A request is refused with "Run this request from the desktop app" | That request needs something on your machine. Switch to the Local Agent in the [desktop app](https://requestly.com/downloads). |
| Your proxy is configured but your API sees the cloud address | Expected. Cloud sends ignore proxy settings. Switch to the Local Agent if the request must go through your proxy. |
| The cloud icon reads "Not checked" | Normal before your first cloud send, and permanent in the desktop app. It is not an error. |
| A WebSocket or MQTT connection drops after about an hour | Expected. Connections are closed at one hour of age. Reconnect. |


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