ollama/server
Devon Rifkin 948de6bbd2
add ability to disable cloud (#14221)
* add ability to disable cloud

Users can now easily opt-out of cloud inference and web search by
setting

```
"disable_ollama_cloud": true
```

in their `~/.ollama/server.json` settings file. After a setting update,
the server must be restarted.

Alternatively, setting the environment variable `OLLAMA_NO_CLOUD=1` will
also disable cloud features. While users previously were able to avoid
cloud models by not pulling or `ollama run`ing them, this gives them an
easy way to enforce that decision. Any attempt to run a cloud model when
cloud is disabled will fail.

The app's old "airplane mode" setting, which did a similar thing for
hiding cloud models within the app is now unified with this new cloud
disabled mode. That setting has been replaced with a "Cloud" toggle,
which behind the scenes edits `server.json` and then restarts the
server.

* gate cloud models across TUI and launch flows when cloud is disabled

Block cloud models from being selected, launched, or written to
integration configs when cloud mode is turned off:

- TUI main menu: open model picker instead of launching with a
  disabled cloud model
- cmd.go: add IsCloudModelDisabled checks for all Selection* paths
- LaunchCmd: filter cloud models from saved Editor configs before
  launch, fall through to picker if none remain
- Editor Run() methods (droid, opencode, openclaw): filter cloud
  models before calling Edit() and persist the cleaned list
- Export SaveIntegration, remove SaveIntegrationModel wrapper that
  was accumulating models instead of replacing them

* rename saveIntegration to SaveIntegration in config.go and tests

* cmd/config: add --model guarding and empty model list fixes

* Update docs/faq.mdx

Co-authored-by: Jeffrey Morgan <jmorganca@gmail.com>

* Update internal/cloud/policy.go

Co-authored-by: Jeffrey Morgan <jmorganca@gmail.com>

* Update internal/cloud/policy.go

Co-authored-by: Jeffrey Morgan <jmorganca@gmail.com>

* Update server/routes.go

Co-authored-by: Jeffrey Morgan <jmorganca@gmail.com>

* Revert "Update internal/cloud/policy.go"

This reverts commit 8bff8615f9.

Since this error shows up in other integrations, we want it to be
prefixed with Ollama

* rename cloud status

* more status renaming

* fix tests that weren't updated after rename

---------

Co-authored-by: ParthSareen <parth.sareen@ollama.com>
Co-authored-by: Jeffrey Morgan <jmorganca@gmail.com>
2026-02-12 15:47:00 -08:00
..
internal docs: fix typos in repository documentation (#10683) 2025-11-15 20:22:29 -08:00
aliases.go add ability to disable cloud (#14221) 2026-02-12 15:47:00 -08:00
auth.go server: reject unexpected auth hosts (#13738) 2026-01-16 14:10:36 -05:00
auth_test.go server: reject unexpected auth hosts (#13738) 2026-01-16 14:10:36 -05:00
create.go Clean up the manifest and modelpath (#13807) 2026-01-21 11:46:17 -08:00
create_test.go Clean up the manifest and modelpath (#13807) 2026-01-21 11:46:17 -08:00
download.go Clean up the manifest and modelpath (#13807) 2026-01-21 11:46:17 -08:00
fixblobs.go
fixblobs_test.go
images.go x/imagegen: add image edit capabilities (#13846) 2026-01-22 20:35:08 -08:00
images_test.go x/imagegen: add image edit capabilities (#13846) 2026-01-22 20:35:08 -08:00
logprob.go logprob: add bytes to logprobs (#13068) 2025-11-13 13:49:25 -08:00
model.go Clean up the manifest and modelpath (#13807) 2026-01-21 11:46:17 -08:00
prompt.go server: optimize chatPrompt to reduce tokenization calls (#14040) 2026-02-04 01:21:31 -08:00
prompt_test.go server: optimize chatPrompt to reduce tokenization calls (#14040) 2026-02-04 01:21:31 -08:00
quantization.go model: add qwen3-next architecture (#14051) 2026-02-03 23:27:21 -08:00
quantization_test.go Reapply "feat: incremental gguf parser (#10822)" (#11114) (#11119) 2025-06-20 11:11:40 -07:00
routes.go add ability to disable cloud (#14221) 2026-02-12 15:47:00 -08:00
routes_aliases.go cmd: ollama launch improvements (#14099) 2026-02-05 15:08:17 -08:00
routes_aliases_test.go add ability to disable cloud (#14221) 2026-02-12 15:47:00 -08:00
routes_cloud_test.go add ability to disable cloud (#14221) 2026-02-12 15:47:00 -08:00
routes_create_test.go Clean up the manifest and modelpath (#13807) 2026-01-21 11:46:17 -08:00
routes_debug_test.go server: use tiered VRAM-based default context length 2026-02-02 10:47:09 -08:00
routes_delete_test.go Clean up the manifest and modelpath (#13807) 2026-01-21 11:46:17 -08:00
routes_generate_renderer_test.go server: use tiered VRAM-based default context length 2026-02-02 10:47:09 -08:00
routes_generate_test.go server: use tiered VRAM-based default context length 2026-02-02 10:47:09 -08:00
routes_harmony_streaming_test.go preserve tool definition and call JSON ordering (#13525) 2026-01-05 18:03:36 -08:00
routes_list_test.go Update the /api/create endpoint to use JSON (#7935) 2024-12-31 18:02:30 -08:00
routes_options_test.go server: use tiered VRAM-based default context length 2026-02-02 10:47:09 -08:00
routes_test.go server: return error when embedding contains NaN or Inf values (#13599) 2026-01-03 02:20:12 -05:00
sched.go chore: move x/mlxrunner into x/imagegen (#14100) 2026-02-05 18:25:56 -08:00
sched_test.go server: fix ollama ps showing configured instead of actual context length 2026-02-02 10:47:09 -08:00
sparse_common.go
sparse_windows.go
test_home_test.go add ability to disable cloud (#14221) 2026-02-12 15:47:00 -08:00
upload.go Clean up the manifest and modelpath (#13807) 2026-01-21 11:46:17 -08:00