# Gitlab (Cloud & Self-hosted)

**GitLab Cloud (gitlab.com)**

- **Token Type**: Personal Access Token or Project Access Token
- **Generation Steps**:  
    You can visit this url directly and generate access Token  
    [https://gitlab.com/-/user\_settings/personal\_access\_tokens?page=1&amp;state=active&amp;sort=expires\_asc](https://gitlab.com/-/user_settings/personal_access_tokens?page=1&state=active&sort=expires_asc)  
      
    OR  
      
    Follow this steps  
    
    1. Go to GitLab Settings → Access Tokens  
        [![Screenshot 2025-09-08 at 9.22.59 AM.png](https://docs.roost.ai/uploads/images/gallery/2025-09/scaled-1680-/EKchNBRXfb6sHzHE-screenshot-2025-09-08-at-9-22-59-am.png)](https://docs.roost.ai/uploads/images/gallery/2025-09/EKchNBRXfb6sHzHE-screenshot-2025-09-08-at-9-22-59-am.png)
    2. Enter token name and expiration date
    3. Select required scopes
    4. Click "Create token"

**GitLab Self-hosted**

- **Token Type**: Personal Access Token
- **Base URL**: Configure your GitLab instance URL

**Required Permissions**:

- `api` - Complete API access
- `read_repository` - Read repository content
- `write_repository` - Write repository content
- `read_user` - Read user information
- `read_api` - Read api information