> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spojit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom (OpenAI-compatible)

> Run workflow steps on any server that speaks the OpenAI Chat Completions format.

Many model servers and gateways accept the same requests as OpenAI's Chat Completions API: vLLM, LiteLLM, LM Studio and llama.cpp's server among them. Add any of them as a Custom provider. Hosted services with their own card, such as [Mistral](https://docs.spojit.com/ai-providers/mistral.md), [Groq](https://docs.spojit.com/ai-providers/groq.md), [Together AI](https://docs.spojit.com/ai-providers/together.md) and [Fireworks AI](https://docs.spojit.com/ai-providers/fireworks.md), are easier to add with it. See [Your own AI providers](https://docs.spojit.com/ai-providers/overview.md) for how providers work.

For Ollama, use the [Ollama provider](https://docs.spojit.com/ai-providers/ollama.md) instead.

## What you need

* **The server's base address**, the part before `/chat/completions`, usually ending in `/v1`, for example `https://llm.example.com/v1`. It must be a public **https** address. Private, local and cloud metadata addresses are refused, and redirects aren't followed.
* **A key**, if the server needs one. Spojit sends it as `Authorization: Bearer <key>`.
* **Headers**, if the server or the gateway in front of it needs them, for example an access token header. Add up to ten.

## Add it in Spojit

1. Open **Settings → AI providers** and select **Add provider**.
2. Choose **Custom (OpenAI-compatible)** and give it a name.
3. Enter the base address, and the key and headers if needed.
4. Select **Add provider**.

## Choose models

Add each model by the id your server uses for it: the `model` value its requests take. Many servers list their ids at `<base address>/models`.

The Test shows what each model supports. Agent steps need a model that can call tools; on self-hosted servers this often has to be switched on (vLLM, for example, needs tool calling enabled when it starts).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.