Run a local coding agent with Ollama, LM Studio, llama.cpp or MLX
Dial is an open-source AI coding agent that runs fully on your own machine if you want it to. It finds a local model server that is already running, or downloads and serves open models itself. No API key, and your code stays on your computer.
Use the Ollama or LM Studio you already run
- Start your model server as usual, for example the Ollama app or
ollama serve, or LM Studio's local server. Have at least one model downloaded in it. - Install Dial, then run it in your project:
cd your-project dial - On first launch Dial checks the usual local addresses for LM Studio, Ollama, llama.cpp, MLX-Serve, Docker Model Runner and Osaurus. It names the servers it finds and highlights Local model. Press Enter and pick a model.
The check only opens a connection: it lists no models and selects nothing until you choose. If your server listens somewhere else, set OLLAMA_HOST or the server's *_BASE_URL variable. Later, /models switches models at any time.
Or let Dial download and run the model
Dial can run open models itself: MLX checkpoints on Apple Silicon with its own MLX server, and GGUF files through llama.cpp's llama-server.
- Open
/modelsand choose Get models (or go straight there with/models local). - Pick the MLX or GGUF shelf. Suggestions come first; type to search Hugging Face.
- Press Enter on a model to download it in the background. For GGUF, Dial asks which quantization first and shows each file's exact size.
Browsing never downloads anything; only Enter on a result does. On an Apple Silicon Mac with no server running, the first launch suggests an MLX model that fits your memory.
Choosing a model that works
- Size: models under about 7B parameters often produce broken tool calls, so an agent can't use them reliably.
- Tool calls: the model must support them.
/modelsmarks vision, tools and reasoning support from the model's own metadata, and Dial won't offer tools to a model that declares it can't call them. - Fit: run
dial models recommendto estimate which downloaded MLX and GGUF models fit this machine's memory.
Context size
Local servers decide how much context a loaded model gets, and it can be smaller than the model's advertised window. Dial asks the server what is actually loaded and plans around that.
- Ollama: if the default context is too small, raise it in Ollama's model configuration or with
OLLAMA_CONTEXT_LENGTH. Dial also offers a Keep alive setting so Ollama doesn't unload the model between requests. - LM Studio: it loads a model on first use with a context of its choosing. If it refuses to load one, load it in LM Studio first with a smaller context, or pick another model.
Any OpenAI-compatible server
Point Dial at any server that speaks the OpenAI chat API, local or not:
dial --endpoint http://localhost:1234/v1 --api-key-env KEY -m <model-name>Hosted models remain an option too: Claude or ChatGPT/Codex subscriptions, or an API key from OpenAI, Anthropic, Gemini, OpenRouter and others. See the provider catalog for every provider.