docs/providers.md
How llmfit detects and talks to Ollama, llama.cpp, Docker Model Runner, LM Studio, and remote instances.
llmfit supports multiple local runtime providers:
mlx-community/* repos on HuggingFace, not the original model publisherWhen more than one compatible provider is available for a model, pressing d in the TUI opens a provider picker modal.
llmfit integrates with Ollama to detect which models you already have installed and to download new ones directly from the TUI.
ollama serve or the Ollama desktop app)http://localhost:11434 (Ollama's default API port)To connect to Ollama running on a different machine or port, set the OLLAMA_HOST environment variable:
# Connect to Ollama on a specific IP and port
OLLAMA_HOST="http://192.168.1.100:11434" llmfit
# Connect via hostname
OLLAMA_HOST="http://ollama-server:666" llmfit
# Works with all TUI and CLI commands
OLLAMA_HOST="http://192.168.1.100:11434" llmfit --cli
OLLAMA_HOST="http://192.168.1.100:11434" llmfit fit --perfect -n 5
This is useful for:
On startup, llmfit queries GET /api/tags to list your installed Ollama models. Each installed model gets a green ✓ in the Inst column of the TUI. The system bar shows Ollama: ✓ (N installed).
When you press d on a model, llmfit sends POST /api/pull to Ollama to download it. The row highlights with an animated progress indicator showing download progress in real-time. Once complete, the model is immediately available for use with Ollama.
If Ollama is not running, Ollama-specific operations are skipped; the TUI still supports other providers like llama.cpp where available.
llmfit integrates with llama.cpp as a runtime/download provider in both TUI and CLI.
Requirements:
llama-cli or llama-server available in PATH (for runtime detection)How it works:
| Variable | Default | Description |
|---|---|---|
LLAMA_CPP_PATH | (none) | Directory containing llama.cpp binaries (llama-cli, llama-server). Checked before PATH lookup. |
LLAMA_SERVER_PORT | 8080 | Port used when probing a running llama-server health endpoint for runtime detection. |
If llama.cpp is installed in a non-standard location, set LLAMA_CPP_PATH so llmfit can find it without requiring it in your PATH.
llmfit integrates with Docker Model Runner, Docker Desktop's built-in model serving feature.
Requirements:
http://localhost:12434How it works:
GET /engines to list models available in Docker Model Runnerai/<tag> naming)d in the TUI pulls via docker model pullTo connect to Docker Model Runner on a different host or port, set the DOCKER_MODEL_RUNNER_HOST environment variable:
DOCKER_MODEL_RUNNER_HOST="http://192.168.1.100:12434" llmfit
llmfit integrates with LM Studio as a local model server with built-in model download capabilities.
Requirements:
http://127.0.0.1:1234How it works:
GET /v1/models to list models available in LM Studiod in the TUI triggers a download via POST /api/v1/models/downloadGET /api/v1/models/download-statusTo connect to LM Studio on a different host or port, set the LMSTUDIO_HOST environment variable:
LMSTUDIO_HOST="http://192.168.1.100:1234" llmfit
If your LM Studio instance has Require API Key enabled (required for MCP server access), set the LMSTUDIO_API_KEY environment variable to provide a Bearer token with all requests:
export LMSTUDIO_API_KEY="your-api-key-here"
llmfit
llmfit's database uses HuggingFace model names (e.g. Qwen/Qwen2.5-Coder-14B-Instruct) while Ollama uses its own naming scheme (e.g. qwen2.5-coder:14b). llmfit maintains an accurate mapping table between the two so that install detection and pulls resolve to the correct model. Each mapping is exact — qwen2.5-coder:14b maps to the Coder model, not the base qwen2.5:14b.