Help us learn about your current experience with the documentation. Take the survey.
Configure self-hosted models for GitLab Dedicated
- Tier: Ultimate
- Offering: GitLab Dedicated
Use the AI Gateway for GitLab Dedicated to connect your self-hosted models. With the GitLab Duo Agent Platform, you can connect the AI Gateway to Amazon Bedrock to maintain inference in your AWS region. Alternatively, you can use your preferred provider.
Add a self-hosted model
You can add a self-hosted model to use on your GitLab instance.
To add a self-hosted model:
In the upper-right corner, select Admin.
In the left sidebar, select GitLab Duo.
Select Manage models.
Select Add self-hosted model.
Complete the fields:
- Deployment name: Enter a name to uniquely identify the model deployment
(for example,
Mixtral-8x7B-it-v0.1 on GCP). - Model family: Select the model family the deployment belongs to. You can select a supported or compatible model.
- Endpoint: Enter the URL where the model is hosted.
- API key: Optional. Add an API key to access the model.
- Model identifier: Enter the model ID based on your deployment method.
The model ID must match the following format:
Deployment method Format Example Amazon Bedrock (model ID) bedrock/<model ID>bedrock/mistral.mixtral-8x7b-instruct-v0:1Amazon Bedrock (application inference profile ARN) bedrock/converse/<application inference profile ARN>bedrock/converse/arn:aws:bedrock:us-east-1:123456789012:application-inference-profile/abcd1234efghGemini Enterprise Agent Platform vertex_ai/<model ID>vertex_ai/claude-sonnet-4-6@defaultAnthropic anthropic/<model ID>anthropic/claude-opus-4-6OpenAI openai/<model ID>openai/gpt-5Azure OpenAI azure/<model ID>azure/gpt-35-turbo
- Deployment name: Enter a name to uniquely identify the model deployment
(for example,
Select Add self-hosted model.