Skip to content

Add GitLab Duo as an AI Provider #11612

@badesoji-glitch

Description

@badesoji-glitch

Description

Overview

In-line with GitLab’s open-core strategy, we want to officially integrate GitLab Duo with the Vercel AI SDK as an AI Provider, operable with GitLab.com and self-hosted GitLab instances. To streamline our user’s journey across tools, GitLab wants to upstream the required provider packages to this repo.

Technical Underpinning

To achieve this strategy, we’ve built our GitLab AI Provider npmjs package to surface GitLab Duo's AI features and tooling within the Vercel AI SDK. More information exists on the package's README.md but here's the highlights

🌟 Features

  • 🤖 Agentic Chat: Native tool calling support via GitLab's Anthropic proxy
  • 🔐 Multiple Authentication: Support for OAuth, Personal Access Tokens, and OpenCode auth
  • 🌐 Self-Hosted Support: Works with both GitLab.com and self-hosted instances
  • 📦 Tool Executors: Built-in Anthropic and GitLab API tool executors
  • 🔍 Project Detection: Automatic GitLab project detection from git remotes
  • 💾 Smart Caching: Project and token caching for optimal performance
  • 🎯 Type-Safe: Complete TypeScript definitions with Zod validation

Next Step(s)

AI SDK Version

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions