Disabling Ollama cloud features for local-only use

Set OLLAMA_NO_CLOUD or the server configuration file so inference stays on your hardware, then confirm the setting in logs and enforce it on every server.

On this page

How to disable Ollama cloud features for local-only use

A team running a shared Ollama server that must keep prompts and inference on owned hardware should set OLLAMA_NO_CLOUD=1 in the server environment or turn off cloud features in the server configuration file, then verify that the setting took effect. That setting controls where inference runs, not who can reach the server. Cloud features are cloud-hosted models, web search, and direct calls to the ollama.com API, which requires an API key sent as a Bearer token. A regulated team needs these off when its data rules forbid sending prompts or documents to a third-party service, even by accident, such as a user pulling a cloud model name into an application.

The local API on port 11434 does not require authentication, so disabling cloud features does not protect the server from other machines on the network. Anyone who can reach the port can still submit prompts and load models. Access control belongs to the network layer and to a gateway or proxy in front of Ollama, and those are covered in the exposure and access sections of this guide. Treat this setting as a data path control that you can audit, and record it as one control among several.

Confirm the setting before you rely on it. Check the server logs after a restart for evidence that cloud features are disabled, and test a request that would use a cloud model to confirm it fails rather than silently routing out. Because a single workstation or container can still override the environment, plan to apply the same configuration to every server in scope and to review it after each Ollama upgrade. Confirm the exact behavior for your installed version against the Ollama FAQ, since release notes change how cloud features are handled.

Which switch to use for local-only inference

This table compares the three ways to turn off Ollama cloud features: an environment variable, the server configuration file and a process-manager or container setting. Read each row for where the switch lives, which deployment it suits and the mistake that most often leaves cloud features on. Confirm exact file locations and precedence in the Ollama FAQ before you standardize on one path.

OptionWhere it is setBest fitMain risk
OLLAMA_NO_CLOUD=1 environment variableUser shell profile, or the environment of the process that starts the Ollama serverSingle workstation, quick test or one-off setupA service or terminal started without the variable runs with cloud features on
server.json configuration fileOllama's server configuration file, at the location the FAQ gives for your operating systemManaged Linux or Windows service where one reviewed file controls settingsA user-level file can be overridden by a system-level file, so confirm which one loads
Process manager or container settingService unit environment, orchestrator manifest or container runtime environmentContainer fleets and managed services that deploy the same image everywhereA rebuilt image or changed template can drop the variable without anyone noticing
Verification after any changeServer startup log, checked on every hostEvery server, whichever method you chooseAssuming the setting took effect without reading the startup log

Setting up local-only mode step by step

This sequence finds every dependency on cloud models and direct ollama.com calls, turns cloud features off on each server, and proves the change with tests, logs and a versioned record. The result is a server that keeps inference on your hardware and can be audited later.

  1. Inventory cloud dependencies on every host

    The platform engineer lists every Ollama server and asks each owning team which clients use model names that run in the cloud, which applications call ollama.com/api or ollama.com/v1 with a Bearer token, and whether any tool relies on web search. Include scripts, notebooks, IDE plugins and CI jobs, since they often call an endpoint without anyone reviewing them. The step is done when each host has a written list of cloud model names, direct cloud calls and owners, and each item has a decision: move to a local model or stop using it.

  2. Set the cloud-disable configuration

    The engineer sets OLLAMA_NO_CLOUD=1 in the environment of the Ollama service, such as a systemd drop-in, a container environment block or the host's service manager. Alternatively, they add the equivalent setting to the server configuration file. Confirm the exact key name and which source takes precedence in the Ollama FAQ for your version, and avoid setting conflicting values in both places. The step is done when the effective configuration on the host shows the setting and no other source overrides it.

  3. Restart the service to apply changes

    A running Ollama process keeps the configuration it loaded at startup, so the operator restarts the service or container. On a systemd host this is typically systemctl restart ollama, and on a container platform it is a restart of the workload so the new environment is applied. Then the operator checks the running process or container environment to confirm OLLAMA_NO_CLOUD is present. The step is done when the service is healthy after restart and the process environment matches the configuration file.

  4. Test that cloud requests fail

    From a client that is not on the host, the tester attempts to pull a cloud-hosted model and sends a generate request to it, then calls ollama.com/api directly with and without an API key. Each attempt should fail, and the tester records the HTTP status codes and error messages. The tester also runs a request that depends on web search and confirms it no longer returns results. The step is done when every cloud path fails, and any path that still succeeds is traced to a client or host that needs fixing.

  5. Confirm the cloud-disabled state in logs

    The operator reads the service logs from the restart, for example with journalctl -u ollama on systemd or the container log command on a container platform. They look for a startup message showing that cloud features are disabled, and confirm its exact wording against the release they run, since the wording is not reproduced here. They also check the host's outbound connections for attempts to ollama.com, using the egress controls described in the network isolation topic if those exist. The step is done when the logs show the disabled state and no outbound cloud traffic appears during the tests.

  6. Record and enforce the configuration in version control

    The engineer commits the service drop-in, container definition or configuration file to version control, along with the test scripts from the earlier step. They add a configuration check to CI or the configuration management tool that fails when OLLAMA_NO_CLOUD is missing or changed on any server. Because Ollama ships releases often, the team repeats the tests after each upgrade and before any change to the service unit. The step is done when a reviewer can see the setting, its history and the most recent test results for each server in one place.

Where inference and cloud calls travel with cloud features off

The diagram starts with client applications sending requests to the Ollama server on port 11434. The server loads models from local model storage and runs inference on the host's own hardware, so prompts stay inside the organization's trust boundary. The dashed path to ollama.com is the one to check: with cloud features disabled through OLLAMA_NO_CLOUD or the server configuration file, cloud models and web search calls should be refused rather than sent out. Confirm the blocked path in the server logs, and test it from the host's network as well.

Inference stays local while cloud calls to ollama.com are blocked.

What stops working when cloud features are off

Turning off cloud features removes anything that reaches ollama.com, so every client that depends on those paths needs a planned change. The cards below cover the items most likely to break, how each one fails and what to check in your applications before and after the setting is enforced.

Cloud-hosted model access

Model names that point to cloud-hosted models will no longer run on your server once cloud features are disabled. Requests for those models return errors, so any client with a hard-coded cloud model name fails at its first call. Before the change, list every model name your applications and users request, and replace each cloud model with a model pulled and stored on your own hardware. Confirm the exact error text your clients receive so monitoring can catch it.

Ollama FAQ

Web search features

Web search calls are routed through Ollama's cloud, so they stop working when cloud features are off. Agents, chat tools or plugins that rely on search will return empty results or errors rather than falling back silently. Decide whether your use case needs search at all. If it does, plan an internal retrieval source or a separately approved search service, and confirm that the client handles a failed search call without stalling the request.

Direct calls to ollama.com with a Bearer token

Direct inference at ollama.com/api and ollama.com/v1 requires an API key sent as a Bearer token, and it sends prompts off your hardware. Scripts or applications that point at these endpoints must be moved to your local server on port 11434. Search your code, configuration and secrets stores for ollama.com hostnames and for API keys, then remove the keys from clients that no longer need them.

Ollama API authentication

Applications that assume cloud models exist

Some tools ship with a default model list that includes cloud models or fail when a model is missing. Their startup checks can block the application even when local models are present. Review each client's model selection, default settings and health checks, and set a local model as the default. Test the application from a clean start with cloud features disabled to confirm it does not depend on a model that is no longer reachable.

Paid plan features tied to cloud usage

Cloud model usage is billed through the paid plans listed on the pricing page, so accounts and API keys tied to those plans have no effect on local inference. Any budget, team or key management you set up for cloud usage should be reviewed and retired or redirected. Running models on your own hardware is unlimited according to the pricing page, and local inference is not affected by this change. Confirm with your procurement team which subscriptions can be cancelled.

Ollama pricing

How to confirm the setting is active in logs

The only reliable proof that cloud features are off is what the server logs and how it responds after a restart. Set OLLAMA_NO_CLOUD=1 or the equivalent entry in the server configuration file, then restart the Ollama service completely, since a running process keeps the environment it started with. Open the server log for that service and look near the startup lines for any message that reports cloud features as disabled. The exact wording of that message is not something this page can guarantee, so compare what you see against the release you actually installed, and against the log lines from a server you know has the setting off, before you record the check as passed. Keep the startup log from each change so you can show the state of the server at a given date.

A log line is weaker evidence than a failed request, so test the behavior directly. From a client on the same host, send a request for a cloud-hosted model through the local API on port 11434 and confirm that it fails rather than being forwarded to a hosted service. Also confirm that a local model still answers, which shows the restriction is targeted and the server is otherwise healthy. Record the request, the error text, and the time in your change record. Run the same two tests from a client on another machine if the server is reachable across the network, because a proxy or gateway in front of Ollama can behave differently from a direct call.

Treat this check as a version-specific result and repeat it after every upgrade. Ollama ships frequent releases, and the flag names, log messages and cloud model catalog can change between them. Confirm the setting and the failing request again after any Ollama upgrade, after changing the service unit or container image, and after editing the configuration file. Check the official release notes for changes to cloud behavior before you upgrade, and keep the verification output with the version number so auditors and your own team can see which release the evidence describes.

Enforcing local-only mode across many Ollama servers

How do I make sure every Ollama server in a fleet has cloud features disabled?

Put the setting in the configuration management that already controls your Ollama hosts, then check each host directly. Set OLLAMA_NO_CLOUD=1 in the environment of the Ollama service, or add the equivalent entry to the server configuration file, and apply it with the same playbooks, roles or Helm values you use for other settings. Keep one source of truth, because a value defined in two places will eventually disagree. Restart the service after the change, since a running process keeps the environment it started with. Confirm the exact key names and file locations for your installed version in the Ollama FAQ before you write the templates.

How do I detect drift when someone removes OLLAMA_NO_CLOUD from a server?

Check the live process and the logs on a schedule, and alert when either disagrees with the expected value. A configuration file can be correct while the running service still carries an old environment from an earlier start, so read the process environment as well as the file. Next, confirm the wording of the cloud status entry in the startup logs for your version, then match that line in your log pipeline. A host that stops reporting the expected entry should be treated as unverified until someone checks it. Drift most often comes from manual edits made during troubleshooting, so restrict who can edit the service file on these hosts.

Should cloud features be disabled in container images or only at deploy time?

Bake the variable into the image only when that image will serve local-only hosts. An ENV OLLAMA_NO_CLOUD=1 line in the Dockerfile means every container started from that image begins with cloud features off, and the setting is reviewed in source control like any other change. The trade-off is that teams who need cloud models must use a separate image or tag, so plan those variants before the first build. Check that orchestrator manifests, compose files and run commands do not override the value with their own environment entries. Rebuild and redeploy when you change it, and record the image digest each server runs so the audit trail shows which build was live.

How do we handle new Ollama hosts added to the fleet later?

Make the setting part of provisioning so a new host has it before its first start. Add the host through the same pipeline that applies your configuration, and do not admit it to the inventory until a verification step passes. That step should confirm the live environment value and send one test request for a cloud model, which should be refused on a correctly configured host. Confirm that behavior on your version, use a test model name your team agrees on, and record the result with the host name and date. Hosts built by hand, outside the pipeline, are the usual gap, so compare your inventory against the hosts that actually answer on port 11434 at least once.

Can developer workstations keep cloud features enabled while servers stay local-only?

Workstations sit outside the server fleet unless you bring them in, and each one can be configured separately. A developer who installs Ollama directly on a laptop can enable cloud features on that machine without touching any server. Where your endpoint management tool can set environment variables or policies for the Ollama app, apply the same value there. Where it cannot, write the expectation into your acceptable use standard and check a sample of machines. Developers who point their tools at the shared server only need the shared endpoint, but they should not run a second local instance that the policy does not cover. Confirm which setting the desktop app honors for your version.

What audit evidence should we keep to show local-only inference?

Keep three records: the managed configuration with its change history, the results of each check with timestamps, and approved exceptions with an owner and an end date. Together they show the setting was defined, applied and verified over time, which is what an assessor will ask for. The managed configuration can come from your version control system, and the check results can come from your monitoring or log store. Agree the evidence format with your auditor or compliance lead before you start, since requirements vary by framework. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors and certification bodies issue the reports and attestations.

How often should we run periodic checks on local-only settings?

Run the checks after every Ollama upgrade and on a fixed schedule set by your change policy. Ollama ships frequent releases, for example v0.40.5 on 14 October 2026 and v0.40.6 as a pre-release on 16 October 2026, so an upgrade can arrive between scheduled checks. Treat each upgrade as a trigger to re-verify the setting, the process environment and a test request. Ask your compliance team which frequency their assessment expects, and document it alongside the check. Record every check result, including failures and the time each failure was fixed, so the history shows how the control behaves in practice.

Who should own local-only enforcement, and can DeployOpen set it up for us?

Ownership usually sits with the platform team that runs the servers, with security owning the control definition and reviewing the results. Your team can do this internally if it already has configuration management, centralized logs and a change process. DeployOpen can plan and implement the configuration, checks, alerting and evidence as a fixed-scope engagement, with scope, deliverables and timelines agreed in writing before work starts, and a quote follows from that scope. Ongoing checks and upgrade verification can run under a retainer. Ask any partner to show how they handle a host that drifts and who gets notified.

Security and operational considerations

Turning off cloud features keeps inference on your hardware, but it does not secure the server or the clients around it. The cards below cover the controls that sit outside OLLAMA_NO_CLOUD: network exposure, outbound traffic, client credentials and change control.

Local API has no authentication

The local Ollama API on port 11434 does not require authentication. Anyone who can reach the listener can run models, pull models and read responses, whatever the cloud setting says. If OLLAMA_HOST moves off localhost, put a private bind address, a firewall rule and an authenticating proxy or gateway in front of the server before other hosts connect. Treat the cloud switch as unrelated to access control.

Ollama FAQ

Firewall egress rules for the host

Setting OLLAMA_NO_CLOUD is an application setting, so it can be bypassed by a changed configuration, a new release or a process that runs outside Ollama's defaults. Enforce the policy at the network layer by blocking outbound connections from the server except to the model source your team has approved, such as a internal mirror or proxy. Confirm with your network team which destinations are allowed and log denied attempts.

Client-side Ollama API keys

Direct cloud inference at ollama.com uses an API key sent as a Bearer token, so a developer's laptop, script or IDE plugin may still hold a valid key even after the server is configured for local-only use. Ask teams to remove keys from client environments and config files, and check your secrets store for any key issued to the project. Revoke keys that are no longer needed.

Ollama API authentication

Change control during upgrades

Ollama ships frequent releases. Release v0.40.5 was published on 14 October 2026, and v0.40.6 followed as a pre-release on 16 October 2026. Each upgrade can change defaults or configuration handling, so record the server.json contents, the environment variables and the systemd or container settings in version control. Re-run the no-cloud checks after every upgrade before the server returns to service.

Retest after each release

Because releases arrive often, a check that passed last month may not describe the current build. Keep a short test list covering the bind address, the cloud-model request failure, the web search failure and the log lines that confirm the setting. Run it on a staging host with the same configuration, then promote the change. Confirm the release notes for any change to the cloud or networking settings.

Ollama GitHub releases

Questions buyers ask about disabling Ollama cloud features

Does turning off Ollama cloud features cost anything?

No. Setting OLLAMA_NO_CLOUD=1 or the equivalent entry in the server configuration file does not change what you pay for local use. Ollama's pricing page states that running models on your own hardware is always unlimited. The cost questions arise elsewhere: the paid cloud plans are separate subscriptions, with Pro at $20 per month ($200 per year), Team at $500 per month and Enterprise at custom pricing, according to the Ollama pricing page. If you already pay for a cloud plan, disabling cloud features means you stop using those models, so confirm with finance whether any subscription needs to be cancelled or changed. Ask your implementation partner for a written quote that lists the configuration work, verification and any fleet-wide enforcement as separate line items.

How long does a rollout take for a fleet of Ollama servers?

The duration depends mainly on how many servers you run, how they are deployed and how they are managed. A single workstation can be changed in minutes, but a shared fleet needs the setting applied consistently, verified in logs on every host and kept in place through restarts and upgrades. Drivers that extend the timeline include mixed operating systems, containers built from older images, configuration managed by several teams, and change windows for production hosts. Ask for a schedule based on your inventory, and confirm whether the plan includes a rollback step and a recheck after each Ollama version upgrade.

What does the work need from our team?

Your team needs to provide access and decisions, not heavy development effort. Typically that means an inventory of Ollama hosts with their operating system and install method, access to the service configuration or container definitions, a named owner who approves changes, and a list of applications or users that depend on cloud models or web search. You should also decide who can override the setting later, because a local user can still change environment variables. Confirm your change process and maintenance windows before work starts, since the scope and schedule depend on them.

Can our own engineers do this without outside help?

Yes, for a small number of hosts with a clear inventory. The core change is one environment variable or one configuration key, followed by a restart and a log check. The harder parts are consistency and evidence: every host must receive the same setting, the setting must survive service restarts and reinstalls, and someone must prove it took effect. Internal teams usually stop short on fleet enforcement and on the documentation that a security or compliance reviewer will ask for. Hiring help makes most sense when you need a written verification record or enforcement across many servers.

Which features stop working, and will users notice?

Cloud models and web search stop working once cloud features are disabled. Requests that name a cloud model will fail, and any application that depends on web search will lose that function. Local models continue to run on your hardware. Before the change, list every application, script and user workflow that calls Ollama, then test each one against the server with cloud features disabled. This prevents surprises such as a tool that silently falls back to a cloud model name.

How do we confirm the setting is active on every server?

Check the server logs after a restart and test behavior, not just the configuration file. The configuration may be present but overridden by an environment variable, a container setting or a stale service definition. A sound check combines the logs for cloud features, a request that names a cloud model to confirm it is refused, and a record of the host, version and file path checked. Keep that record with your change tickets, because auditors and security reviewers will ask how you know the setting holds.

Does disabling cloud features make Ollama compliant with our data rules?

No. Disabling cloud features reduces the paths by which inference requests could leave your environment, but it does not by itself establish compliance. Ollama states that when it runs locally it does not see your prompts or data, and the cloud setting can be turned off with OLLAMA_NO_CLOUD=1 or the server configuration file, according to the Ollama FAQ. Compliance depends on your wider controls, including network egress, access control, logging and model vetting. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors and certification bodies issue any audit report or certification.

What should we ask a partner before agreeing to scope?

Ask for the scope in writing before work starts, since most engagements are fixed-scope with agreed deliverables and timelines. Confirm which hosts are covered, how the setting will be enforced and re-verified after upgrades, what evidence you will receive, and what happens if a host fails verification. Ask whether the work includes testing of dependent applications, and whether it includes support for later Ollama releases. Compare the quote against the cost components described above rather than against a single headline number.

How DeployOpen scopes local-only Ollama work

DeployOpen scopes local-only Ollama work as a written, fixed-scope engagement with five parts: an inventory of every Ollama host and the clients that call it, configuration of the cloud-disabling settings on each host, verification that the setting is active, enforcement so that new or rebuilt servers inherit it, and documentation that a compliance or security reviewer can read without a walkthrough. The scope, deliverables and timeline are agreed in writing before work starts, so you know what is included and what is not. The inventory step matters because a setting such as OLLAMA_NO_CLOUD only protects the hosts where it is actually applied, and shared servers often have undocumented callers, service accounts and older installs that nobody listed. All work is delivered inside your own infrastructure, on your hosts, under your change control.

The documentation is written for evidence reviews. For each host, the deliverable records the installed version, the configuration source (environment variable, server.json or both), the verification output from the server logs, the enforcement method and the named owner. DeployOpen prepares this evidence and the controls behind it for assessments your auditors or certification bodies will run, but DeployOpen does not issue audit reports, attestations or certifications. Those come from independent auditors and certification bodies, and you should confirm with your assessor which artifacts they expect before the engagement starts. Note also that Ollama ships frequent releases, so the evidence describes the state at a specific date and version.

Retainers are optional and cover what changes after handover: upgrades to new Ollama releases, rechecking the cloud-disabling settings after each upgrade, and retesting when hosts, configuration or client integrations change. Ask any provider for the retainer scope in writing, including who runs the retest, how often it occurs and how changes are reported back to you. Your quote should separate the one-time build from the recurring work so that you can budget each part on its own terms.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.