GitLab
Prefer guided AI setup?
Instead of following these steps manually, you can use the AI Credential Assistant — describe what you want to connect and the AI will walk you through the setup step by step, tailored to your account.
Overview
Connect your GitLab account to Nirvai to automate repository management, issues, merge requests, and CI/CD pipelines.
Supported Authentication Methods
- Personal Access Token (PAT) - Recommended for most use cases
- Supports both GitLab.com and self-hosted GitLab instances
Prerequisites
- A GitLab account (GitLab.com or self-hosted)
- Access to create Personal Access Tokens
Setup Instructions
Personal Access Token (Recommended)
- Log in to your GitLab account
- Click your avatar in the top-right corner
- Select Edit profile
- In the left sidebar, select Access tokens
- Click Add new token
- Enter a descriptive name (e.g., "Nirvai Integration")
- Set an expiration date (optional but recommended)
- Select the required scopes:
api- Full access to the API (required for most operations)read_user- Read user profile informationread_repository- Read repository data
- Click Create personal access token
- Copy the token immediately (it won't be shown again)
- In Nirvai, enter:
- GitLab Server URL:
https://gitlab.com(or your self-hosted URL) - Token: Paste your Personal Access Token
- GitLab Server URL:
For Self-Hosted GitLab
If you're using a self-hosted GitLab instance:
- Use your GitLab server URL (e.g.,
https://gitlab.yourcompany.com) - Ensure your server allows API access
- The token creation process is the same as GitLab.com
Required Scopes
| Scope | Description | Required For |
|---|---|---|
api | Full API access | Most operations |
read_user | Read user info | User-related actions |
read_repository | Read repos | Repository access |
write_repository | Write to repos | Push, merge operations |
Troubleshooting
Common Issues
- 401 Unauthorized: Token may be expired or invalid. Generate a new token.
- 403 Forbidden: Token may lack required scopes. Check scope permissions.
- Connection Error (Self-hosted): Verify server URL is correct and accessible.
- SSL Certificate Error: Ensure your self-hosted server has valid SSL certificates.
Token Expiration
Personal Access Tokens can have expiration dates. If your integration stops working:
- Check if your token has expired
- Generate a new token with appropriate expiration
- Update the credential in Nirvai
Related Resources
Adapted from n8n documentation for Nirvai platform
Next Steps
Got your credential? Connect it to an agent
Use the AI Tool Creator to turn this credential into agent-callable tools. Describe what your agent should be able to do and the AI investigates the API, configures the endpoints, and gives you a reviewable toolkit before saving anything.