Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

AI Self-Hosted Models

Connect AI agents to self-hosted LLMs or to external APIs compatible with a supported provider, such as Mistral AI.

Use a self-hosted provider when the LLM you want is not on the agent's Provider list. The Self-hosted Ollama and Self-hosted vLLM providers connect an agent to a model endpoint that you specify. That endpoint can run in your own infrastructure, or it can be an external API that is compatible with one of the supported cloud providers.

For example, Mistral AI is not on the Provider list, but its API is compatible with the OpenAI API, so you connect it through Self-hosted vLLM. The steps below use it as the example.

Prerequisites

Before you configure the agent, prepare the following items:

  • The URL of the model endpoint and the cloud provider whose API format it follows

  • The model identifier that the endpoint accepts

  • An API key or other credential, if the endpoint requires authentication

For the Mistral example, you need an API key from an account with API access enabled in your subscription plan, and a model identifier such as ministral-3b-latest.

For the available identifiers, see the Mistral models overview.

Connect an agent to a self-hosted model

1

Store the API key

In the Management Dashboard, go to Agentic AI -> AI Tokens, create a token, and enter the API key as its Token Value. Use the key exactly as your provider issued it, without adding a Bearer prefix. The agent references this token, so the key never appears in the agent definition. For details, see AI Tokens.

2

Open the agent's model settings

In the Management Dashboard, go to Agentic AI -> AI Agents, create a new agent or open an existing one, and go to the Model tab.

3

Point the agent to the model endpoint

On the Model tab, set the following values:

Field
What to enter
Mistral example

Provider

Self-hosted vLLM or Self-hosted Ollama, matching the server that hosts the model. For an external OpenAI-compatible API, use Self-hosted vLLM

Self-hosted vLLM

Custom Model Name

The model identifier that the endpoint accepts

ministral-3b-latest

Base Provider

The cloud provider whose API format the endpoint follows, which is OpenAI, Google, or Anthropic

OpenAI

Self-hosted URL

The base URL of the model endpoint

https://api.mistral.ai/v1

Authorization Header Name

The header that carries the credential, if the endpoint requires one

Authorization

Authorization Token

The token you created in the first step, listed by its Token Name

The token with your API key

Model tab with Base Provider, Self-hosted URL, and authorization settings for Mistral
Example self-hosted model settings

Leave Use OAuth authentication off when the endpoint authenticates with an API key. If your endpoint sits behind an OAuth-protected gateway, see AI OAuth-Based Gateway instead.

Configure the remaining options, such as Max Tokens and Temperature, as for any other agent. For a description of each option, see Configure AI model.

4

Save and test the agent

Select Save. Then send the agent a test request, for example through the chat endpoint described in How to communicate with an agent. If the request fails with an authentication error, check the API key stored in the token and the Authorization Header Name. If the endpoint reports an unknown model, check the Custom Model Name.

Last updated

Was this helpful?