@gitlab/duo-cli
v9.6.0
Published
GitLab Duo for your command line
Maintainers
Keywords
Readme
GitLab Duo CLI
GitLab Duo for your command line. An AI-powered CLI tool that brings GitLab Duo Agentic Chat to your terminal.
[!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. If you are on GitLab 18.11 to 19.1, you must also meet the beta requirements.
📖 For installation, usage, and configuration see the GitLab Duo CLI documentation.
Development
To run the CLI from a local checkout, from inside packages/cli:
bun run startThis builds and launches the app. Pass CLI flags after --:
bun run start -- run --goal "example"For hot-reload development, use bun run dev:watch instead.
[!note] The
bun run startandbun run dev:watchscripts are package-local and must be run from insidepackages/cli. The repository root exposes equivalent scripts (bun run cli,bun run cli:watch) that can be run from the checkout root.
See the Development Guide for prerequisites, building, debugging,
testing, architecture details, and how the CLI resolves credentials during development
(standalone vs. glab authentication paths).
Packages
The GitLab Duo CLI is split across two packages:
packages/cli— CLI entry point, command routing, backend abstraction, and controllers for interactive and headless modes.packages/tui— React-based terminal UI built on Ink. Pure presentation layer with zero domain logic. Renders the chat interface, messages, tool calls, diffs, and Markdown.
License
See the License for details.
