# How to ensure Automations and API agent runs use self-hosted workers only (not Cursor-hosted)?

**URL:** <https://forum.cursor.com/t/how-to-ensure-automations-and-api-agent-runs-use-self-hosted-workers-only-not-cursor-hosted/156021>\
**Category:** Help\
**Tags:** automations, cloud-agents, teams-enterprise\
**Created:** [March 27, 2026, 8:31am UTC](https://forum.cursor.com/t/how-to-ensure-automations-and-api-agent-runs-use-self-hosted-workers-only-not-cursor-hosted/156021 "2026-03-27T08:31:44Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prashant\_Varshney](https://avatars.discourse-cdn.com/v4/letter/p/d2c977/32.png) [@Prashant\_Varshney](https://forum.cursor.com/u/Prashant_Varshney)\
**Post date:** [March 27, 2026, 8:31am UTC](https://forum.cursor.com/t/how-to-ensure-automations-and-api-agent-runs-use-self-hosted-workers-only-not-cursor-hosted/156021/1 "2026-03-27T08:31:44Z")

</div>

### Goal

We need **all** Cursor Cloud Agent workloads for our team to run **only** on our **self-hosted worker** (machines in our account that connect outbound to Cursor). We **must not** use Cursor’s **hosted** cloud agent VMs for these runs.

This applies to:

1. **Cursor Automations** (e.g. Slack-triggered workflows)
2. **Programmatic launches** via **`POST /v0/agents`** (or any supported server-to-server API)

* * *

### What we’re seeing

- When we trigger agents through the **API** (`POST` to the agents endpoint with our API key), runs appear to be **Cursor-hosted cloud agents** , not our **self-hosted worker**.
- We have **not** found a clear setting in the dashboard that says **“Automations: self-hosted only”** or **“API: route to worker pool X”**.

We need official guidance on **whether** self-hosted-only execution is supported for **both** Automations and API, and **exactly how** to configure it.

* * *

### Questions

1. **Is it possible** to restrict a team or workspace so that **Automations** run **exclusively** on **self-hosted** workers? If yes, where is that configured (dashboard path, org/team setting, worker labels, feature flag)?

2. **Same question for the Agents API:** Can **`POST /v0/agents`** (or the current supported equivalent) be constrained to **only** dispatch work to our **self-hosted** pool? If yes, what request fields, headers, or account settings are required?

3. If **API launches cannot** target self-hosted workers today, is that **by design**? What is the **recommended** supported path to start **self-hosted** runs from automation outside Slack (e.g. webhook Automation only, CI, other)?

4. How can we **verify** in the UI or in run metadata that a given execution used **self-hosted** vs **Cursor-hosted** (so we can audit compliance)?

5. Are there **Enterprise / Private Cloud Agents** options that are **required** for “self-hosted only” enforcement, or should this work on standard team self-hosted worker setup?

* * *

### Context (brief)

- We operate a **self-hosted worker** per Cursor’s documentation (outbound HTTPS, worker registered to our team).
- Compliance / data residency: we need execution on **our** infrastructure, not shared Cursor VMs.

We’re happy to share **non-sensitive** screenshots of our Cloud Agents / Automations settings if that helps, but we need a definitive answer on **routing** and any **gaps** between Automations, API, and self-hosted workers.

Thank you.

---

<div class="post-metadata">

**Author:** ![mohitjain](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mohitjain/32/100229_2.png) [@mohitjain](https://forum.cursor.com/u/mohitjain)\
**Post date:** [March 27, 2026, 10:14am UTC](https://forum.cursor.com/t/how-to-ensure-automations-and-api-agent-runs-use-self-hosted-workers-only-not-cursor-hosted/156021/5 "2026-03-27T10:14:34Z")

</div>

Hi @Prashant_Varshney,

The key setting you need is “Require Self-hosted Agents for All Cloud Agents.” It’s in your team dashboard at [cursor.com/dashboard](http://cursor.com/dashboard) under the Cloud Agents tab, inside the Self-hosted Agents section. When enabled, all cloud agent runs for your team are forced to your self-hosted workers, regardless of whether they come from the UI, Slack, or the API.

To answer your specific questions:

1-3. Automations + API enforcement: The “Require” toggle covers both. Once enabled, Slack Automations and API runs (`POST /v0/agents`) will all route to your self-hosted workers automatically. No per-request configuration needed.

If you want more granular control (before enabling the team-wide requirement), individual API requests can opt in by passing `"usePrivateWorker": true` in the POST body, and Slack commands support a `private_worker` option.

4. Verifying self-hosted vs Cursor-hosted: The Self-hosted Agents section of your dashboard shows all connected workers with Active/Idle status. Active workers link to the conversation they’re running. You can also query `GET /v0/private-workers` programmatically for audit purposes.

5. Plan requirement: Self-hosted agents are a team feature. You should have access on your current plan.

If you don’t see the “Require Self-hosted Agents” toggle in your dashboard, make sure “Allow Self-hosted Agents” is enabled first (same section), and that you’re logged in as a team admin.

---

<div class="post-metadata">

**Author:** ![Daniel\_Weil](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@Daniel\_Weil](https://forum.cursor.com/u/Daniel_Weil)\
**Post date:** [April 9, 2026, 4:36pm UTC](https://forum.cursor.com/t/how-to-ensure-automations-and-api-agent-runs-use-self-hosted-workers-only-not-cursor-hosted/156021/6 "2026-04-09T16:36:48Z")

</div>

@mohitjain Can you help me? I try to enable the “Require Self-Hosted Pool for All Cloud Agents” option, but it automatically turns off.

---

<div class="post-metadata">

**Author:** ![mohitjain](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mohitjain/32/100229_2.png) [@mohitjain](https://forum.cursor.com/u/mohitjain)\
**Post date:** [April 10, 2026, 8:37am UTC](https://forum.cursor.com/t/how-to-ensure-automations-and-api-agent-runs-use-self-hosted-workers-only-not-cursor-hosted/156021/7 "2026-04-10T08:37:22Z")

</div>

This is a known bug on our side – the “Require Self-Hosted Pool for All Cloud Agents” toggle is failing to save for some teams. Our team is actively working on a fix.

In the meantime, you can still route individual runs to your self-hosted workers:

- **API** (`POST /v0/agents`): Pass `"usePrivateWorker": true` in the request body

- **Slack Automations** : Add `private_worker` as an option in the command

The “Allow Self-hosted Agents” toggle should work fine. Only the “Require” enforcement toggle is affected by this bug.

I’ll update this thread once the fix ships.

---

<div class="post-metadata">

**Author:** ![Daniel\_Weil](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@Daniel\_Weil](https://forum.cursor.com/u/Daniel_Weil)\
**Post date:** [April 10, 2026, 2:36pm UTC](https://forum.cursor.com/t/how-to-ensure-automations-and-api-agent-runs-use-self-hosted-workers-only-not-cursor-hosted/156021/9 "2026-04-10T14:36:11Z")

</div>

I don’t know if it is related, but when I try to create a self hosted Automation, I can’t choose the branch the repo should run on. So it results in error. I opened an issue here: [Self Hosted Automations - Support / Bug Reports - Cursor - Community Forum](https://forum.cursor.com/t/self-hosted-automations/157239)

---

<div class="post-metadata">

**Author:** ![Daniel\_Weil](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@Daniel\_Weil](https://forum.cursor.com/u/Daniel_Weil)\
**Post date:** [April 13, 2026, 5:52pm UTC](https://forum.cursor.com/t/how-to-ensure-automations-and-api-agent-runs-use-self-hosted-workers-only-not-cursor-hosted/156021/10 "2026-04-13T17:52:40Z")

</div>

@mohitjain Any updates on this one?

---

<div class="post-metadata">

**Author:** ![mohitjain](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mohitjain/32/100229_2.png) [@mohitjain](https://forum.cursor.com/u/mohitjain)\
**Post date:** [April 14, 2026, 7:01am UTC](https://forum.cursor.com/t/how-to-ensure-automations-and-api-agent-runs-use-self-hosted-workers-only-not-cursor-hosted/156021/11 "2026-04-14T07:01:39Z")

</div>

Hi Daniel,  
Unfortunately, no update yet.

We haven’t seen many reports of this, so the fix is still in progress on our end. I’ll follow up here as soon as it ships.

---

<div class="post-metadata">

**Author:** ![Daniel\_Weil](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@Daniel\_Weil](https://forum.cursor.com/u/Daniel_Weil)\
**Post date:** [May 12, 2026, 2:32pm UTC](https://forum.cursor.com/t/how-to-ensure-automations-and-api-agent-runs-use-self-hosted-workers-only-not-cursor-hosted/156021/13 "2026-05-12T14:32:13Z")

</div>

Any updates? @mohitjain 1 month has passed.

---

<div class="post-metadata">

**Author:** ![mohitjain](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mohitjain/32/100229_2.png) [@mohitjain](https://forum.cursor.com/u/mohitjain)\
**Post date:** [May 13, 2026, 11:07am UTC](https://forum.cursor.com/t/how-to-ensure-automations-and-api-agent-runs-use-self-hosted-workers-only-not-cursor-hosted/156021/14 "2026-05-13T11:07:19Z")

</div>

The fix is still in progress on our end. I understand this has been a long wait.  
In the meantime, the per-request workarounds I mentioned earlier should still work.

I’ll follow up as soon as the fix ships.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [July 22, 2026, 1:16pm UTC](https://forum.cursor.com/t/how-to-ensure-automations-and-api-agent-runs-use-self-hosted-workers-only-not-cursor-hosted/156021/16 "2026-07-22T13:16:36Z")

</div>

Hey @Daniel_Weil!

> [@Daniel\_Weil](#):
>
> I try to enable the “Require Self-Hosted Pool for All Cloud Agents” option, but it automatically turns off.

This should be fixed now.

Sorry for the long wait, and let me know if you still hit any trouble!
