doc/user/gitlab_duo_cli/_index.md
{{< details >}}
{{< /details >}}
{{< collapsible title="Model information" >}}
{{< /collapsible >}}
{{< history >}}
glab 1.87.0, during the GitLab 18.9 release.{{< /history >}}
The GitLab Duo CLI is a command-line interface tool that brings GitLab Duo Agentic Chat to your terminal. Available for use with any operating system and editor, use the CLI to ask complex questions about your codebase and to autonomously perform actions on your behalf.
The GitLab Duo CLI can help you:
[!note] The GitLab Duo CLI is now generally available. Update to GitLab Duo CLI 9.0.0 or later for the full generally available experience.
You can use the GitLab Duo CLI through the GitLab CLI (glab),
or install and use the GitLab Duo CLI (duo) as a standalone AI tool.
The GitLab Duo CLI offers two modes:
It also supports custom instructions set for
the GitLab Duo Agent Platform, including chat-rules.md, AGENTS.md, and SKILL.md files.
{{< details >}}
{{< /details >}}
{{< history >}}
{{< /history >}}
By default, GitLab Duo CLI access is turned on.
On GitLab Self-Managed and GitLab Dedicated, you can turn GitLab Duo CLI access on or off for an instance.
Prerequisites:
To manually update the GitLab Duo CLI to the latest version, run the command for your setup:
{{< tabs >}}
{{< tab title="glab" >}}
glab duo cli --update
{{< /tab >}}
{{< tab title="duo" >}}
npm install --global @gitlab/duo-cli@latest
{{< /tab >}}
{{< /tabs >}}
For information on contributing to the GitLab Duo CLI, see the development guide.