Step 1 Create a personal access token so your AI assistant can interact with GitLab on your behalf.
A new PAT can be created if needed by following the instructions below.
An access token is like a password for your AI assistant. It lets it read and write to your GitLab projects on your behalf.
api for full access, or read_api for read-onlyNeed help? See GitLab's guide: Managing personal access tokens
| Scope | What It Lets Your AI Do |
|---|---|
api | Create issues, edit files, open MRs, **create project tokens for git operations**, and more |
read_api | View issues, MRs, files, and pipelines (read-only). Write tools will be disabled. |
Your GitLab role on each project controls what your AI can do there. Maintainer is needed for write actions (editing files, creating branches) and for the server to create short-lived project tokens for git operations. Developer allows read access and limited writes, but the server can't create project tokens — it will fall back to using your PAT directly for git operations. Reporter is enough for reading issues and files.