Home/Guides/How to install Ollama on a remote Mac mini and run local models long term

How to install Ollama on a remote Mac mini and run local models long term

Updated · airankrush

What this guide covers

When you finish, you can call local models from the terminal and from the local API, and you know where the disk and memory are going. You need: a configuration with enough memory and disk, and a remote desktop.

Steps

  1. Install the app the official way

    The method recommended in the official Ollama macOS docs is to mount the downloaded ollama.dmg and drag Ollama into the system Applications folder. Download it from the official website in the browser inside the remote desktop; see that page for the macOS version requirement. On first launch the app checks whether an ollama command is on PATH. If not, it asks to create a link in /usr/local/bin, and at that point you enter the administrator password when prompted.

  2. Pull a model and try it

    According to the official CLI reference: ollama pull <model> downloads, ollama run <model> starts a chat, and ollama ls lists downloaded models. Model files are usually large, and download time depends on the line and its load. Pull inside a tmux session so that disconnecting the remote desktop does not matter. How large a model to choose depends on this machine's memory, so start with a small one.

  3. Keep the API listening on the local machine only

    The official FAQ states that Ollama binds to port 11434 on 127.0.0.1 by default, so only programs on this Mac can reach it. Keep that default. The docs mention that OLLAMA_HOST can change the bind address, but on a rented machine do not make it listen externally, and certainly do not combine it with port forwarding or tunneling tools to put the model API on the public internet. That breaks the rule against changing the network configuration, and the API itself has no authentication. Keep the callers (scripts, agents, editors) on the same machine as the model.

  4. Know where models take up disk space

    The official docs state that ~/.ollama holds models and configuration, with logs in ~/.ollama/logs. A few models can take a considerable amount of space, and the built-in disk cannot be expanded during the rental term. Delete models you do not use with ollama rm <model>. To change the storage directory, the official way is to set the OLLAMA_MODELS environment variable. When running as an app, environment variables are set with launchctl setenv, followed by restarting Ollama. External storage has to be arranged with support first.

  5. Understand idle unloading and do not mistake it for a fault

    The official FAQ explains that by default a model stays in memory for a few minutes and is then unloaded, and that OLLAMA_KEEP_ALIVE adjusts this. So the first request after a pause is slower because the model is being loaded again. ollama ps shows which models are currently in memory and whether they run on GPU or CPU, and ollama stop <model> unloads one by hand. If other tasks are running on the same machine, do not set the keep-alive to forever.

  6. Updates and the state after startup

    The vendor says the macOS version downloads updates automatically, and they are applied only when you click Restart to update in the menu bar icon. Do not click it while a batch job is running. After the machine restarts, Ollama serves requests only once your account has logged in to the desktop and the app has started. Scripts that depend on it need to cope with the API being temporarily unreachable.

  7. Clean up before the rental ends

    For uninstall steps, see the Uninstall section of the official macOS docs. A few of the commands need the administrator password; follow that page. Models can be downloaded again at any time and need no backup. Take your own Modelfiles, prompts and evaluation results with you.

FAQ

If I run a local model on the remote Mac, can the platform see my prompts?

Ollama states that when you run locally they cannot see your prompts and data. On the platform side there is the necessary operational and security monitoring (processes, network connections, configuration state), which does not record the screen or the content of your business data.

How large a model can it run, and how fast?

That depends on the memory and chip of the configuration you choose. We have no measured figures to publish. For how to choose a configuration, see using it for local LLMs. The available configurations are on the plans page.

Can I call the model API on the remote Mac from my own computer?

We do not provide ports open to the public internet, and you should not set up forwarding yourself. Run the calling script on the remote Mac and sync the results back.

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All guides