Hey, thanks for following up. Here’s the important part about what you found above.
That approach only works because the backend is honestly applying the saved privateWorker config. But it relies on undocumented internal endpoints and on pulling your session token from local storage, and we can’t recommend or support that. It can break after any update, and please be careful with your token. Don’t plan on this long term.
The supported way to run runs on your own self-hosted worker is the public Cloud Agent API. There’s a version detail here: historically it was POST /v0/agents with "usePrivateWorker": true, and in the current docs it’s POST /v1/agents with env: { type, name }. The API is in public beta, so please use the exact shape from the current docs:
The main caveat we need to say clearly: self-hosted Cloud Agents are a Team or Enterprise feature. On a personal Pro or Pro+ account without a team, self-hosted isn’t officially supported at all. That includes both pool and machine. To use it, you need a deployed worker tied to a team, plus the Allow Self-hosted Agents toggle enabled in Team Dashboard > Cloud Agents. Pools (type: pool) also require Enterprise plus a service account API key. Personal workers (My Machines, type: machine) are available as personal within a team. If you want to force all runs (API + Automations + UI) to use only self-hosted, there’s also a Require Self-hosted Agents for All Cloud Agents toggle there. That’s where your gap comes from: on an individual account the Automations UI won’t show self-hosted, and the supported API path is gated at the team level.
To answer precisely, are you on Team or Enterprise, or on a personal account without a team? If you’re on Team, I can write out the clean supported flow for your setup. If it’s a personal account, then yes, this is the gap and workarounds are limited.
One more heads up: even where self-hosted via Automations is available, automation-launched runs currently have a known issue where they may not pick up secrets or env vars, while API-launched runs do. That’s another reason to prefer the API.
On the UI gap for individual accounts, it’s being tracked internally and I can’t share an ETA yet. When there’s an update, I’ll reply in the thread.