# Cloud Agent API: Support for GitLab/Self-hosted Git Repositories

**URL:** <https://forum.cursor.com/t/cloud-agent-api-support-for-gitlab-self-hosted-git-repositories/149476>\
**Category:** Feature Requests\
**Tags:** github, gitlab, cloud-agents\
**Created:** [January 21, 2026, 11:43am UTC](https://forum.cursor.com/t/cloud-agent-api-support-for-gitlab-self-hosted-git-repositories/149476 "2026-01-21T11:43:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pandaa](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@pandaa](https://forum.cursor.com/u/pandaa)\
**Post date:** [January 21, 2026, 11:43am UTC](https://forum.cursor.com/t/cloud-agent-api-support-for-gitlab-self-hosted-git-repositories/149476/1 "2026-01-21T11:43:01Z")

</div>

### Where does the bug appear (feature/product)?

Background Agent (GitHub, Slack, Web, Linear)

### Describe the Bug

Hi Cursor team,

I’m trying to use the Cloud Agent API to create agents for our internal GitLab repository (self-hosted). I’ve set up a public proxy via Cloudflare Tunnel to make the repository accessible from the internet.

### Steps to Reproduce

**Request:**

```bash
curl --request POST \
  --url https://api.cursor.com/v0/agents \
  -u mykey: \
  --header 'Content-Type: application/json' \
  --data '{
  "prompt": {
    "text": "Analyze the login flow"
  },
  "source": {
    "repository": "https://my-proxy-domain.com/org/my-repo",
    "ref": "develop/1.0.2"
  }
}'

```

**Response:**

```json
{
  "error": "Failed to verify existence of branch 'develop/1.0.2' in repository my-proxy-domain.com/org/my-repo. Please ensure the branch name is correct."
}

```

**What I’ve verified:**

1. The branch `develop/1.0.2` exists in the repository
2. The repository is publicly accessible via the proxy URL
3. I can `git clone -b develop/1.0.2` from the proxy URL successfully

**Questions:**

1. Does the Cloud Agent API support non-GitHub repositories (GitLab, self-hosted Git)?
2. If so, is there any additional authentication or configuration required?
3. How does the API verify branch existence? Does it require public read access without authentication?

**Environment:**

- Repository: Self-hosted GitLab behind a public HTTPS proxy
- Branch format: `develop/x.x.x` (contains forward slash)

### Expected Behavior

The Cloud Agent API should be able to:

1. **Accept non-GitHub repository URLs** - Support GitLab self-hosted Git repositories that are publicly accessible via HTTPS

2. **Successfully verify branch existence** - When the repository and branch are accessible via `git ls-remote` or `git clone`, the API should be able to verify them

3. **Clone and analyze the repository** - Once verification passes, the agent should clone the repository and start analyzing the code

**Current Behavior:**

The API returns `"Failed to verify existence of branch"` error even though:

- The repository URL is publicly accessible
- The branch exists and can be cloned manually using `git clone -b <branch> <url>`

**Workaround Attempted:**

We’ve tried accessing the same repository through Cursor’s web interface ([cursor.com/agents](http://cursor.com/agents)), which works correctly. This suggests the backend can handle non-GitHub repos, but the public API `/v0/agents` endpoint may have different validation logic.

Thank you for your help!

### Operating System

MacOS

### Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.3.41  
VSCode Version: 1.105.1  
Commit: 2ca326e0d1ce10956aea33d54c0e2d8c13c58a30  
Date: 2026-01-16T19:14:00.150Z  
Electron: 37.7.0  
Chromium: 138.0.7204.251  
Node.js: 22.20.0  
V8: 13.8.258.32-electron.0  
OS: Darwin arm64 25.2.0

### Does this stop you from using Cursor

Yes - Cursor is unusable

---

<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:** [January 21, 2026, 12:50pm UTC](https://forum.cursor.com/t/cloud-agent-api-support-for-gitlab-self-hosted-git-repositories/149476/3 "2026-01-21T12:50:50Z")

</div>

Hey there @pandaa

Unfortunately, `POST /v0/agents` only supports GitHub today, and not Gitlab. ☹

In the meantime, you’ll need to continue using the Web UI to launch agents for Gitlab repo.

---

<div class="post-metadata">

**Author:** ![pandaa](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@pandaa](https://forum.cursor.com/u/pandaa)\
**Post date:** [January 22, 2026, 1:53am UTC](https://forum.cursor.com/t/cloud-agent-api-support-for-gitlab-self-hosted-git-repositories/149476/4 "2026-01-22T01:53:20Z")

</div>

This is a feature we’ve been looking forward to, and we hope it can be implemented as soon as possible. It would be a great help for us in managing day-to-day issues in the backend. Thank you very much!

---

<div class="post-metadata">

**Author:** ![Hans\_Brouwer](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@Hans\_Brouwer](https://forum.cursor.com/u/Hans_Brouwer)\
**Post date:** [February 2, 2026, 10:52am UTC](https://forum.cursor.com/t/cloud-agent-api-support-for-gitlab-self-hosted-git-repositories/149476/5 "2026-02-02T10:52:30Z")

</div>

Sadly the WebUI is also not functional for GitLab repositories.

> [@GitHub Agent "Select Branch" Dropdown Disabled for Org Repo](https://forum.cursor.com/t/github-agent-select-branch-dropdown-disabled-for-org-repo/146757):
>
> Where does the bug appear (feature/product)? Background Agent (GitHub, Slack, Web, Linear) Describe the Bug I am unable to select a branch when attaching a GitHub repository in the Cursor Web UI (Agents). The repository attaches successfully, but the “Select branch” dropdown remains unresponsive/empty. This is occurring for a specific repository within an Organization. Environment Platform: Cursor Web UI (Agents) Integration: GitHub App (connected to an Organization) Repository Type: Organi…

GitLab seems to have quite bad support in general based on all of the open bug reports with no solutions.

> [@Cloud Agents in Gitlab self hosted](https://forum.cursor.com/t/cloud-agents-in-gitlab-self-hosted/145052):
>
> Where does the bug appear (feature/product)? Background Agent (GitHub, Slack, Web, Linear) Describe the Bug I am trying to configure my Team’s self hosted Gitlab, but after i configured the application ID and secret, it is not working correctly. When I open cursor IDE, when I try to run a agent in the cloud, it finishes in 0.2 seconds. (Image 1) When I try to open agents in the web, sometimes gitlab is not found, and sometimes it is, but I can’t select the branch of the repo. (Images 2 and 3) …

Are there any updates on support for GitLab in the last three months?

---

<div class="post-metadata">

**Author:** ![Hans\_Brouwer](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@Hans\_Brouwer](https://forum.cursor.com/u/Hans_Brouwer)\
**Post date:** [February 2, 2026, 10:53am UTC](https://forum.cursor.com/t/cloud-agent-api-support-for-gitlab-self-hosted-git-repositories/149476/6 "2026-02-02T10:53:18Z")

</div>

(two more links because I can only do 2 per post)

> [@Cloud Agent API: Support for GitLab/Self-hosted Git Repositories](http://forum.cursor.com/t/cloud-agent-api-support-for-gitlab-self-hosted-git-repositories/149476):
>
> Where does the bug appear (feature/product)? Background Agent (GitHub, Slack, Web, Linear) Describe the Bug Hi Cursor team, I’m trying to use the Cloud Agent API to create agents for our internal GitLab repository (self-hosted). I’ve set up a public proxy via Cloudflare Tunnel to make the repository accessible from the internet. Steps to Reproduce Request: curl --request POST \ --url https://api.cursor.com/v0/agents \ -u mykey: \ --header 'Content-Type: application/json' \ --data '{ …

> [@Gitlab cloud agent](https://forum.cursor.com/t/gitlab-cloud-agent/143689):
>
> Where does the bug appear (feature/product)? Background Agent (GitHub, Slack, Web, Linear) Describe the Bug I’ve connected my gitlab to the cursor but when I try using the cloud agent for gitlab repository, there is no branch. I even tried the cloud agent API but I got this error Failed to validate access to repository xxx/xxx. Please check repository access and that Cursor GitHub App is installed. I was trying to use gitlab repository but as you can see it said try connect github app Steps …

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [February 24, 2026, 10:53am UTC](https://forum.cursor.com/t/cloud-agent-api-support-for-gitlab-self-hosted-git-repositories/149476/7 "2026-02-24T10:53:38Z")

</div>

Closed on February 24, 2026, 10:53am UTC

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.
