On an Ollama 0.35 box meant to keep every prompt local, how can a model name still send prompts to ollama.com, and how do you forbid it?
answer
- a suffix in the tag
- same localhost URL, remote inference
- a prompt that preselects Yes
- SIZE shows a dash
- OLLAMA_NO_CLOUD or server.json
basics
~20 sIn Ollama 0.35.0 a tag ending in :cloud or -cloud runs on ollama.com: the local daemon forwards the request there once you are signed in. Set OLLAMA_NO_CLOUD=1 or disable_ollama_cloud in server.json and restart to forbid it.
solid answer
~40 sIn Ollama 0.35.0, a model name whose tag is `cloud` or ends in `-cloud` (`gemma4:cloud`, for instance) is a **cloud model**: nothing is downloaded, and the local server forwards any request naming it to ollama.com, signed with the machine's key, so an app calling `localhost:11434` cannot tell from the URL that its prompt left the box. `ollama ls` shows such a model with `-` as its size. The CLI can also lead people there: when an untagged `ollama run` or `ollama pull` finds no local build but a `:cloud` tag exists, an interactive terminal asks "Did you mean ...:cloud?" with Yes preselected. To forbid it, set `OLLAMA_NO_CLOUD=1` or `"disable_ollama_cloud": true` in `~/.ollama/server.json` and restart; the log then shows `Ollama cloud disabled: true` and cloud requests get HTTP 403 "ollama cloud is disabled".
go deeper
Recall that a tag ending in :cloud or -cloud runs on ollama.com rather than on your machine.
Explain that the local daemon proxies cloud requests, so the localhost URL hides where inference runs, and how ollama ls marks such models.
Lock a privacy-sensitive box into local-only mode with OLLAMA_NO_CLOUD or server.json, confirm it in the log, and audit configs and the interactive cloud suggestion that can switch models silently.
Decide whether hybrid local-plus-cloud use is acceptable for a team's data classes, and whether the switch belongs in machine provisioning rather than in individual habits.
## Local by default, remote by name Ollama's default is local inference: a model is pulled into the store and runs on the machine's CPU and GPU. Ollama 0.35.0 also offers **cloud models**, which run on ollama.com and are reached through the **same local daemon and the same model-name syntax**. That is why this belongs in a question about names: on a box where prompts must not leave the machine, the model name is the switch. The daemon decides a model is remote from the suffix of its tag: | Name | Where it runs | |---|---| | `gemma4`, `llama3:70b` | locally, after a pull | | `gemma4:cloud` | ollama.com | | a tag ending in `-cloud`, such as `your-model:31b-cloud` | ollama.com | When a request reaches the local API with such a model in its `model` field, the server does not load anything. It proxies the request to ollama.com, signs it with the machine's Ollama key, and streams the answer back. The application still talks to `http://localhost:11434`; nothing in its configuration says "remote". ## How a cloud model gets onto a machine Cloud models need a signed-in Ollama: `ollama signin`, or sign-in from the desktop app, registers the local public key with an ollama.com account. After that, several paths lead to remote inference without anyone deciding to send data out: - **A config value.** Someone sets the app's model to a `:cloud` name because it was faster on their laptop, and the shared box inherits it. - **The CLI's suggestion.** When an untagged `ollama run` or `ollama pull` against the default registry finds no such model locally but a `:cloud` tag exists, an interactive terminal asks `Did you mean "<model>:cloud"?` with **Yes preselected**, so pressing Enter switches to the cloud model. A non-interactive run prints the cloud name as a hint instead. The existence check itself sends the model name to ollama.com. - **The model list.** A cloud model shows up in `ollama ls` like any other, with `-` in the `SIZE` column because no weights are stored. ## Forbidding cloud use Ollama has a local-only mode. Either switch works: 1. Set the environment variable `OLLAMA_NO_CLOUD=1` for the server process. 2. Or add `"disable_ollama_cloud": true` to `~/.ollama/server.json` (the home of the user the server runs as). 3. Restart Ollama. 4. Confirm the log line `Ollama cloud disabled: true`. Once disabled: - requests that name a cloud model are refused with **HTTP 403** and an error beginning `ollama cloud is disabled`; - the `:cloud` suggestion no longer appears, because its existence check fails; - web search, the other cloud feature, is disabled too. Like `OLLAMA_MODELS` and every other server setting, the variable must reach the **server**: exporting it in your shell does nothing to a running macOS app or Linux service. ## Why the name is the switch - The route, the port and the client library are identical for local and cloud models, so code review of the HTTP call shows nothing. - The decision travels in a string that usually lives in configuration, where a teammate can change it without touching code. - Signing in once on a machine makes every cloud name usable from every app on that machine until cloud is disabled. ## Auditing a box - List `ollama ls` and look for names ending in `:cloud` or `-cloud`, or a `-` size. - Grep application configs and scripts for those suffixes. - Check the startup log for the cloud-disabled line after any upgrade or reinstall. - Remember that signing in is what makes cloud models usable; a machine that never needs ollama.com may not need a registered key either, but pushing and private pulls do need one. ## What Ollama says about the data Ollama's documentation says local runs are not seen by Ollama, and that for cloud-hosted models it processes prompts and responses to provide the service, does not store or log that content and does not train on it. Whether that policy satisfies a customer's data-residency rules is a decision for whoever owns those rules; the technical point is that a `:cloud` name moves inference off the machine, and the switches above are how you make sure it cannot.
- An app on a locked-down Ollama box gets HTTP 403 with "ollama cloud is disabled". What happened, and what is the fix?The request named a cloud model, a tag ending in `:cloud` or `-cloud`, and the server is in local-only mode, so it refused to forward the prompt. That refusal is the policy working. The fix is in the app's config: pull a local tag of the model and name that instead, rather than re-enabling cloud.
- Does setting `OLLAMA_NO_CLOUD=1` affect models already pulled into the local store?No. Local models keep running exactly as before; the switch only stops the server forwarding requests for cloud models to ollama.com and disables web search. Pushing your own models or pulling private ones still relies on the registered key, which is a separate concern from cloud inference.
- Anything served from localhost:11434 runs on the local machine.
- A cloud model shows its full weight size in ollama ls.
- Cloud models work without signing in to ollama.com.
- Exporting OLLAMA_NO_CLOUD in your shell disables cloud for the running service.
- Disabling cloud also stops local models from running.
Assumes Ollama 0.35.0; cloud models, the :cloud and -cloud suffixes and the OLLAMA_NO_CLOUD switch are recent features that older releases lack.