Feature request for product/service
Cloud Agent (GitHub, Slack, Linear,…)
Describe the request
Request: let the public Cloud Agents API (POST /v1/agents) target Cursor Origin repositories — at least for self-hosted “My Machines” workers.
Setup (reproducible today)
- Team is on the Origin early beta. Test repo is Origin-only (never linked/mirrored to GitHub):
https://origin.cursor.com/<team>/<repo>.git - Cloned it locally and started a worker inside the clone:
agent worker start --name my-worker - The worker registers fine and shows up in
GET /v0/private-workerswithrepo: https://origin.cursor.com/<team>/<repo>— so the worker side already understands Origin remotes.
Problem
POST /v1/agents with env: {"type":"machine","name":"my-worker"} rejects every Origin URL form:
repos[0].url |
Error |
|---|---|
https://origin.cursor.com/<team>/<repo>.git (also tried without .git, without scheme, /git/… path, short <team>/<repo>) |
repository_access: You do not have access to repository …, or the repository does not exist. |
https://cursor.com/codebase/<team>/<repo> |
validation_error: Failed to determine repository default branch (adding startingRef: "main" → [invalid_argument]) |
Omitting repos entirely returns:
Repo-less private-worker requests require a valid workspace binding, one specific worker name, shared-assignment metadata, and an owner filter matching the authenticated user.
…but the public schema rejects any extra keys (Unrecognized key(s)), so that flow doesn’t appear to be reachable from the public API.
The exact same worker + API flow finishes successfully (FINISHED) when the anchor repo is on GitHub — so this is specifically the API’s repository check not recognizing Origin, mirrored or not.
Why it matters
We launch agents on self-hosted My Machines workers through the Cloud Agents API and would like to host the repo on Origin instead of GitHub — but today Origin repos can’t be targeted via /v1/agents at all.
Either of these would unblock us:
/v1/agentsacceptingorigin.cursor.comrepo URLs (with access checked against the team’s Origin permissions), or- exposing the repo-less “use the worker’s registered repo” flow in the public API schema.