Get started with GitLab Duo

GitLab Duo is your AI-powered assistant. It can help you write, review, and edit code, along with a variety of other tasks throughout your GitLab workflow. It can help you troubleshoot your pipeline, write tests, address vulnerabilities, and more.

Step 1: Ensure you have a subscription

Your organization has purchased a GitLab Duo add-on subscription: either Duo Pro or Duo Enterprise. Each subscription includes a set of AI-powered features to help improve your workflow.

After your organization purchases a subscription, an administrator must assign seats to users. You likely received an email that notified you of your seat.

The AI-powered features you have access to use language models to help streamline your workflow. If you’re on self-managed GitLab, your administrator can choose to use GitLab models, or self-host their own models.

If you have issues accessing GitLab Duo features, ask your administrator. They can check the health of the installation.

For more information, see:

Step 2: Try Duo Chat in the UI

Confirm that Duo Chat is available in the GitLab UI.

Go to a project and in the upper-right corner, a button named Ask Duo Chat should be displayed. If this button is available, it means everything is configured properly. Try asking Duo Chat a question or type / to see a list of slash commands.

For more information, see:

Step 3: Try other GitLab Duo features

GitLab Duo is available in all stages of your workflow. From troubleshooting CI/CD pipelines to writing test cases and resolving security threats, GitLab Duo can help you in a variety of ways.

If you want to test a feature, you can go to one of your failed CI/CD jobs and at the bottom of the page, select Troubleshoot.

Or, in an issue that has a lot of comments, in the Activity section, select View summary. GitLab Duo summarizes the contents of the issue.

For more information, see:

Step 4: Prepare to use GitLab Duo in your IDE

To use GitLab Duo, including Code Suggestions, in your IDE:

  • Install an extension in your local IDE.
  • Authenticate with GitLab from the IDE. You can use either OAuth or a personal access token.

Then you can confirm that GitLab Duo is available in your IDE and test some of the features.

Alternately, you can use the Web IDE, which is included in the GitLab UI and already fully configured.

For more information, see:

Step 5: Confirm that Code Suggestions is on in your IDE

Finally, go to the settings for the extension and confirm that Code Suggestions is enabled, as well as the languages you want suggestions for.

You should also confirm that Duo Chat is enabled.

Then test Code Suggestions and Duo Chat in your IDE.

  • Code Suggestions recommends code as you type.
  • Duo Chat is available to ask questions about your code or anything else you need.

For more information, see: