Skip to content
PluginStats

gitlab-ai-provider weekly downloads statistics

By GitLab CI/CD (2 listings) · npm · AI SDKs

GitLab Duo provider for Vercel AI SDK

View on npm Fresh · Oct 18, 2026

gitlab-ai-provider has 165,171 recorded weekly downloads on npm, a decrease of 34.4% over the past 30 days, ranking #415 of 2,322 tracked listings.

Weekly downloads
165,171
Official API · Oct 18, 2026
7-day growth
-29.2%
-68.1K weekly downloads
30-day growth
-34.4%
-86.6K weekly downloads
90-day growth
+332%
+127K weekly downloads
Rank
#415
Among tracked npm listings

About gitlab-ai-provider

GitLab AI Provider

A comprehensive TypeScript provider for integrating GitLab Duo AI capabilities with the Vercel AI SDK. This package enables seamless access to GitLab's AI-powered features including chat, agentic workflows, and tool calling through a unified interface.

🌟 Features

  • 🤖 Multi-Provider Agentic Chat: Native tool calling support via GitLab's AI Gateway (Anthropic & OpenAI)
  • 🔄 Duo Workflow Service: Server-side agentic loop with WebSocket streaming and dynamic model discovery
  • 🔐 Multiple Authentication: Support for OAuth, Personal Access Tokens, and OpenCode auth
  • 🌐 Self-Hosted Support: Works with both GitLab.com and self-hosted instances
  • 🔧 Tool Support: Native tool calling via Vercel AI SDK and MCP tools for workflows
  • 🔍 Project Detection: Automatic GitLab project detection from git remotes
  • 💾 Smart Caching: Project, token, and model discovery caching for optimal performance
  • 🎯 Type-Safe: Complete TypeScript definitions with Zod validation

📦 Installation

npm install gitlab-ai-provider
Peer Dependencies
npm install @ai-sdk/provider @ai-sdk/provider-utils

🚀 Quick Start

Basic Chat
import { createGitLab } from 'gitlab-ai-provider';
import { generateText } from 'ai';

const gitlab = createGitLab({
  apiKey: process.env.GITLAB_TOKEN,
  instanceUrl: 'https://gitlab.com', // optional, defaults to gitlab.com
});

// All equivalent ways to create a chat model:
const model = gitlab('duo-chat'); // callable provider
const model2 = gitlab.chat('duo-chat'); // .chat() alias (recommended)
const model3 = gitlab.languageModel('duo-chat'); // explicit method

const { text } = await generateText({
  model: gitlab.chat('duo-chat'),
  prompt: 'Explain how to create a merge request in GitLab',
});

console.log(text);
Agentic Chat with Tool Calling
import { createGitLab } from 'gitlab-ai-provider';
import { generateText } from 'ai';

const gitlab = createGitLab({
  apiKey: process.env.GITLAB_TOKEN,
});

// Use agentic model for native tool calling support
const model = gitlab.agenticChat('duo-chat', {
  anthropicModel: 'claude-sonnet-4-20250514',
  maxTokens: 8192,
});

const { text } = await generateText({
  model,
  prompt: 'List all open merge requests in my project',
  tools: {
    // Your custom tools here
  },
});
Model Variants

The provider automatically maps specific model IDs to their corresponding provider models (Anthropic or OpenAI) and routes requests to the appropriate AI Gateway proxy:

import { createGitLab } from 'gitlab-ai-provider';
import { generateText } from 'ai';

const gitlab = createGitLab({
  apiKey: process.env.GITLAB_TOKEN,
});

// Anthropic Models (Claude)
const opusModel = gitlab.agenticChat('duo-chat-opus-4-5');
// Automatically uses: claude-opus-4-5-20251101

const sonnetModel = gitlab.agenticChat('duo-chat-sonnet-4-5');
// Automatically uses: claude-sonnet-4-5-20250929

const haikuModel = gitlab.agenticChat('duo-chat-haiku-4-5');
// Automatically uses: claude-haiku-4-5-20251001

// OpenAI Models (GPT-5)
const gpt5Model = gitlab.agenticChat('duo-chat-gpt-5-4');
// Automatically uses: gpt-5.4-2026-03-05

const gpt5MiniModel = gitlab.agenticChat('duo-chat-gpt-5-4-mini');
// Automatically uses: gpt-5.4-mini

const gpt5NanoModel = gitlab.agenticChat('duo-chat-gpt-5-4-nano');
// Automatically uses: gpt-5.4-nano

const codexModel = gitlab.agenticChat('duo-chat-gpt-5-codex');
// Automatically uses: gpt-5-codex

// You can still override with explicit providerModel option
const customModel = gitlab.agenticChat('duo-chat-opus-4-5', {
  providerModel: 'claude-sonnet-4-5-20250929', // Override mapping
});

Available Model Mappings:…

Description from the npm listing.

  • ai
  • gitlab
  • gitlab-duo
  • duo
  • language-model
  • llm
  • vercel-ai-sdk
  • ai-sdk
  • chat
  • chatbot
  • agentic
  • tool-calling
  • anthropic
  • claude
  • code-generation
  • code-completion
  • developer-tools
  • devops
  • typescript
  • ml

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

gitlab-ai-provider weekly downloads on npm, last 90 days: 165,171 weekly downloads as of Oct 18, 2026, +332% over 90 days.gitlab-ai-providerWeekly downloads on npm · Last 90 days165,171downloads / week+332% over 90 days050K100K150K200K250K300KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
gitlab-ai-provider weekly downloads on npm, last 90 days: 165,171 weekly downloads as of Oct 18, 2026, +332% over 90 days.

7/30/90-day growth

gitlab-ai-provider weekly downloads growth on npm: -29.2% over 7 days, -34.4% over 30 days, +332% over 90 days.gitlab-ai-providerWeekly downloads growth on npm165,171downloads / week now7-day growth-68,129 weekly downloads-29.2%30-day growth-86,575 weekly downloads-34.4%90-day growth+126,977 weekly downloads+332%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
gitlab-ai-provider weekly downloads growth on npm: -29.2% over 7 days, -34.4% over 30 days, +332% over 90 days.

Ranking history

gitlab-ai-provider npm ranking history: currently #415 (by weekly downloads).gitlab-ai-providernpm ranking · by weekly downloads · Last 90 days#415current rank#410#415#420#425#430#435Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
gitlab-ai-provider npm ranking history: currently #415 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 21, #15 (overall #415)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs259 listings · 13 pages · page 1, #17 (overall #17)
AI SDKs: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (122)
Recent weekly downloads observations for gitlab-ai-provider
Date (UTC)Weekly downloadsChange vs. previous
165,171+44.3K
120,859-31.3K
152,144+9.5K
142,684-43.8K
186,452-48K
234,4090
234,409+1.1K
233,300+3.3K
230,045-379
230,424-3.4K
233,865+3.8K
230,098+13.6K
216,543-34.5K
251,070—

Similar npm AI SDKs plugins

All 20 gitlab-ai-provider alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/gitlab-ai-provider. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.