← Catalog

pi-gitlab-duo

GitLab Duo provider extension for pi

Package

Install

Install with PiG

pig install npm:pi-gitlab-duo

Install with Pi

pi install npm:pi-gitlab-duo
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.4 (README.md). PiG does not review it.

pi-gitlab-duo

GitLab Duo provider extension for pi.

Provides access to GitLab Duo AI models (Claude and GPT) through GitLab's AI Gateway.

Models

Model IDName
claude-opus-4-5-20251101Claude Opus 4.5
claude-sonnet-4-5-20250929Claude Sonnet 4.5
claude-haiku-4-5-20251001Claude Haiku 4.5
gpt-5.1-2025-11-13GPT-5.1
gpt-5-mini-2025-08-07GPT-5 Mini
gpt-5-codexGPT-5 Codex

All models support extended thinking/reasoning.

Installation

pi install npm:pi-gitlab-duo

Authentication

pi
/login gitlab-duo

This will open GitLab's OAuth flow. After authorizing, copy the callback URL and paste it when prompted.

Personal Access Token

Set the GITLAB_TOKEN environment variable:

export GITLAB_TOKEN=glpat-xxxxxxxxxxxxxxxxxxxx
pi --provider gitlab-duo --model claude-sonnet-4-5-20250929

Usage

# Interactive mode
pi --provider gitlab-duo --model claude-sonnet-4-5-20250929

# With thinking enabled
pi --provider gitlab-duo --model claude-sonnet-4-5-20250929 --thinking medium

# Print mode
pi --provider gitlab-duo --model claude-sonnet-4-5-20250929 -p "explain git rebase"

Requirements

  • GitLab Duo subscription (Duo Pro or Duo Enterprise)
  • pi >= 0.49.0

License

MIT