Skip to main content
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, Groq, Together AI and Fireworks AI, are easier to add with it. See Your own AI providers for how providers work. For Ollama, use the Ollama provider 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).