# GitLab Duo CLI (Beta)

GitLab Duo for your command line. An AI-powered CLI tool that brings
[GitLab Duo Agentic Chat](https://docs.gitlab.com/user/gitlab_duo_chat/agentic_chat/) to your
terminal.

📖 **For installation, usage, and configuration see the [GitLab Duo CLI documentation](https://docs.gitlab.com/user/gitlab_duo_cli/).**

## Development

To run the CLI from a local checkout:

```shell
bun run cli
```

This builds and launches the app. Pass CLI flags after `--`:

```shell
bun run cli -- run --goal "example"
```

For hot-reload development, use `bun run dev:watch` instead.

See the full [Development Guide](./docs/development.md) for prerequisites, building, debugging, testing, and architecture details.

### 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`](../tui/)** — React-based terminal UI built on [Ink](https://github.com/vadimdemedes/ink). Pure presentation layer with zero domain logic. Renders the chat interface, messages, tool calls, diffs, and Markdown.

## License

See the [License](../../LICENSE) for details.
