What you need
- The server’s base address, the part before
/chat/completions, usually ending in/v1, for examplehttps://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
- Open Settings → AI providers and select Add provider.
- Choose Custom (OpenAI-compatible) and give it a name.
- Enter the base address, and the key and headers if needed.
- Select Add provider.
Choose models
Add each model by the id your server uses for it: themodel 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).