Free Ollama config generator. Build a Modelfile (FROM, num_ctx, temperature, SYSTEM), tune the server (flash attention, KV cache, network), and copy the OpenAI-compatible env vars to connect Codex, Qwen Code, or Aider to a local model.
Ollama runs LLMs locally and exposes an OpenAI-compatible API. This tool builds a Modelfile, the commands to pull and build your model, server-tuning environment variables, and the snippet to connect a coding agent.
brew install ollamaOn Linux: curl -fsSL https://ollama.com/install.sh | sh.
A Modelfile customizes a base model: FROM picks the model (e.g. qwen3-coder:30b), PARAMETER num_ctx sets the context window, PARAMETER temperature sets sampling, and SYSTEM sets a system prompt. Build it with ollama create my-coder -f Modelfile.
Set OLLAMA_HOST=0.0.0.0:11434 to accept LAN connections, OLLAMA_FLASH_ATTENTION=1 for faster long contexts, and OLLAMA_KV_CACHE_TYPE=q8_0 to roughly halve context memory.
Point any OpenAI-compatible agent (Codex CLI, Qwen Code, Aider) at Ollama: base URL http://localhost:11434/v1 (the /v1 suffix is required) and any non-empty API key.
qwen2.5-coder:7b (~8 GB RAM), qwen2.5-coder:14b (~16 GB, the balanced pick), qwen3-coder:30b (~19 GB download), and deepseek-coder variants.