Skip to content

Free local models with Ollama

Ollama runs open models on your own computer. With kunji you can chat with them like any other provider: no key, no bill, and nothing leaves your machine.

  1. Install Ollama from ollama.com/download.

  2. Download a model. Smaller models run on most laptops:

    Terminal window
    ollama pull llama3.2
  3. Add it to kunji:

    Terminal window
    kunji keys add ollama

    No key is asked for. kunji connects to Ollama at http://localhost:11434 and lists the models you’ve downloaded. Pick one.

  4. Chat:

    Terminal window
    kunji chat -m ollama:llama3.2
  • Model names can contain colons, like ollama:qwen2.5:7b. kunji splits only at the first colon, so this works.
  • Local models cost nothing, so they show $0 or no price.
  • Mix local and cloud in one chat: start with a local model, then /model openai:gpt-4o-mini for a harder question.
  • Use a local model as a fallback when your cloud provider is down; see Fallback models.

If Ollama runs on another machine on your network, point kunji at it in config.toml:

[providers.ollama]
base_url = "http://192.168.1.20:11434/v1"

“Could not reach Ollama”: start Ollama (open the app, or run ollama serve) and try again. Check ollama list shows at least one model.