How-toConnections
Use a local model or your own endpoint
Run chats on Ollama, LM Studio, a llama.cpp server, LiteLLM or any server that speaks the Anthropic Messages API.
All pagesAbout 3 minutes. The server must speak the Anthropic Messages API, as Ollama does. How well tools work depends on the model. Spark runs it through the claude CLI, so install that first.
- In Settings → AI providers, select Custom endpoint.
- Enter the Server address, such as
http://localhost:11434. - Enter the Model, and optionally a Fast model.
- Add an API key if the server needs one. Send the key as is Authorization: Bearer; pick x-api-key for a server that reads only that header, such as Anthropic's API.
- Select Test connection.