AI & Models / macOS

Set up Ollama in AlgoZilla

Run AI coaching locally on your Mac. Install Ollama, download a model, and connect it to AlgoZilla.

  1. Install and open Ollama

    Download Ollama for macOS, open the disk image, and drag Ollama into Applications. Open it from Applications and leave it running while you use AlgoZilla. If Ollama offers to install its command-line tool, follow the prompt so you can use it in Terminal.

    Download Ollama for macOS
  2. Download a local model

    Open Terminal and run these commands. The first downloads qwen3.5:4b, the example model in this guide. Wait for the download to finish, then run the second command to check that the model appears in the list. If you already have a local chat model, you can use it and skip the download.

    Terminal
    ollama pull qwen3.5:4b
    ollama list
    View the example model in Ollama’s library
  3. Choose Ollama in AlgoZilla

    In AlgoZilla, press ⌘ + , to open Settings. Select AI & Models. Under Coaching Mode, open the Provider menu and choose Ollama. Automatic mode tries Apple Foundation Models first, so pick Ollama directly to make it your provider.

    AlgoZilla AI & Models settings with Ollama listed in the open Provider menu.
    AI & Models → Coaching Mode → Provider → Ollama Select the image to enlarge.
  4. Test the connection and select a model

    In Ollama Setup, leave the Ollama server at http://127.0.0.1:11434 for a standard installation. Click Test Connection. When the status reads Ready, choose your downloaded model in the Model menu.

    Ollama Setup shows the loopback server URL, Ready status, qwen3.5:4b as the model, and a completed connection test.
    A successful connection in Ollama Setup. Select the image to enlarge.

    In Coaching Mode, check that Effective Provider is Ollama and Effective Model shows your selected model.

  5. Ask the coach for a hint

    Open a challenge in Coding. In the right-hand Inspector, select Coaching and send a message in Conversation.

    Give me one hint without revealing the solution.

    The first reply may take longer while Ollama loads the model. Look for Ollama above the reply.

    Coaching Conversation shows a hint request for Two Sum and an answer labeled Ollama.
    A hint from Ollama in the expanded Coaching Conversation. Select the image to enlarge.

Try it yourself

After your first coaching reply, select another model you already installed in Ollama. Use Test Connection, then ask one focused question in a sample Coding challenge.

What to look for
Effective Model should show the newly selected model, and the reply should identify Ollama. If the model is absent from the picker, confirm it appears in ollama list before refreshing.

Troubleshooting

Terminal says “command not found”
Open Ollama from Applications and follow its CLI setup prompt. If you installed it in Applications, you can also run /Applications/Ollama.app/Contents/Resources/ollama in place of ollama in the commands above.
AlgoZilla can’t connect
Make sure Ollama is running on the same Mac and that the server field matches its loopback address and port. For the default setup, run curl http://127.0.0.1:11434/api/tags in Terminal to check that the server responds, then run Test Connection again.
The connection works but the model is missing
Run ollama list. If your model is missing, wait for the download to finish or run the pull command again. Then click Test Connection in AlgoZilla to reload the list.