Integrations
GitLab
The GitLab integration connects your repositories so you can use features like Cloud Agents and Bugbot.
Setup
Requires Grok Build admin access and GitLab maintainer access.
GitLab integration requires a paid GitLab plan (Premium or Ultimate). Project access tokens, which are required for this integration, are not available on GitLab Free.
- Go to Integrations in the dashboard
- Click Connect next to GitLab, or Manage if it's already connected
- Follow the GitLab installation flow
- Back on the Integrations tab, click Manage next to your GitLab connection and select Sync Repos
- Return to the dashboard to configure features on your repositories
To disconnect your GitLab account, return to the integrations dashboard and choose Disconnect personal from the GitLab row's menu.
Advanced networking
Self-hosted instances support multiple connection methods beyond IP whitelisting. For setup details and supported private networking options, see Private Connectivity.
AWS PrivateLink
Available for Enterprise customers. Use AWS PrivateLink when your GitLab instance is in AWS or can sit behind an AWS Network Load Balancer. PrivateLink can cover Grok Build accessing GitLab and, when needed, GitLab sending webhooks back to Grok Build without public internet egress.
Best for: AWS-hosted GitLab instances and teams that want private VPC endpoint connectivity
Security: HTTPS encryption, AWS PrivateLink, VPC endpoint policies, service account access tokens
Drawbacks: Requires coordination with Grok Build and AWS endpoint service setup.
Cloudflare Tunnel
Available for Enterprise customers. Use Cloudflare Tunnel when AWS PrivateLink is not practical or when you need an outbound-only deployment model. Grok Build creates and owns the tunnel, and provides the hostname and token. You run cloudflared outbound from your network. You do not need a Cloudflare account or contract.
Best for: Environments without inbound network access
Security: HTTPS encryption, Cloudflare Tunnel, service account access tokens
Drawbacks: Requires running and maintaining cloudflared in your environment.
Commit author
Cloud Agents commit as the bot user of the project access token Grok Build creates for each project, so their commits pass push rules that require the commit author to be a GitLab user. Creating that token needs Maintainer access to the project. If the token is unavailable or Grok Build can't resolve its bot identity, agents fall back to Cursor Agent <[email protected]>, and those push rules reject the commits.
Protected Git scopes
Lock your GitLab group or namespace to your Grok Build organization so only your teams can use its repositories with Cloud Agents, automations, and Bugbot. Protecting a scope requires the GitLab Owner role. See Protected Git Scopes.
Next steps
Once your GitLab integration is connected, configure the features that use it:
- Bugbot: automated PR reviews that catch bugs and security issues
- Cloud Agents: AI agents that run in the cloud on your repositories
Last updated: November 23, 2026