Connecting a self-managed GitLab repository to your project allows AI agents to read your source code and provide code-based answers and documentation.Documentation Index
Fetch the complete documentation index at: https://docs.jitera.ai/llms.txt
Use this file to discover all available pages before exploring further.
GitLab 16.8 or later is required. If you are using an older version, use the Jitera CLI instead.
Prerequisites
Before connecting GitLab, prepare the following in your GitLab instance.1. Find your GitLab host name
- Sign in to your GitLab instance
- Click your avatar in the top-right corner and go to Settings
- Click Account — the URL path shown there is your GitLab host name
2. Generate a personal access token
An API access token is required the first time you connect GitLab. The token must belong to an account with Admin privileges and must have the api scope.- In GitLab, go to your avatar → Settings → Access Tokens
- Click Add new token
- Enter a token name and select the api scope
- Click Create personal access token and copy the generated token
Connection Steps
- Open Code sources in project settings
-
Click Connect next to Self-managed GitLab
Only one provider can be connected per project. To switch providers, disconnect all connected repositories first.
- Enter your GitLab host name and API access token, then click Connect
- In the authorization dialog, click Authorize
- In the repository selection dialog, choose the repositories to connect (up to 2)
- Set the Type and Branch for each repository, then click Connect
Repository Types
| Type | Description |
|---|---|
| Frontend | Client-side application code |
| Backend | Server-side application code |
| Monorepo | Full-stack application in a single repository |
Resync
To update connected repository code to the latest state, run a resync from the code sources page. Resync consumes credits.Disconnect
Disconnecting a repository removes the agent’s access to that repository’s code. You can reconnect after disconnecting.Related
- Code Sources (GitHub) — Connect a GitHub repository instead
- Project Setup — Basic project settings
- Agent Basics — Agent workspace overview

