Ollama and Nemotron 3.5 Lightning: Secure Local-to-Cloud Agent Routing
Use Nemotron 3.5 Lightning as a local execution model only behind a separate policy boundary. Let the model propose tool calls; let deterministic application code decide which tools, data and destinations are allowed. Cloud escalation must be an explicit data-release decision, not an automatic response to a weak answer.
Ollama's August 11 announcement describes NVIDIA Nemotron 3.5 Lightning as a 30B-total, 3B-active open model for ongoing agent work and documents local launch commands.[1] Runtime changes since then matter too: the release index marks Ollama v0.40.19 (November 26, 2026) as latest, while v0.40.20-rc1 is a prerelease, not the same production target.[5] Since v0.40.0, Ollama runs MLX-supported model architectures on MLX by default on Apple silicon.[5]
This article designs a bounded local/cloud agent architecture, rather than a general air-gap installation. All configuration snippets are documentation-derived and unexecuted for this article; the security policy is a proposed design, not an Ollama built-in. Sources were rechecked December 2, 2026.
Start with the data flow, not the integration command
Ollama's announcement offers ollama launch claude --model nemotron-3.5-lightning and similar integrations.[1] Those commands connect a harness to a model. They do not determine which files the harness can read, what its plugins transmit or whether a tool may change production state.
Use this separation of responsibilities:
User / application
|
Identity + task authorization
|
Local orchestrator ----> Local Ollama / Nemotron
| |
| Proposed tool calls
v |
Policy-enforcing tool broker <----+
|
Allowed read tools / approval-gated write tools
|
Optional export gate --> Separate cloud client
The model is an untrusted planner in this design. The broker holds narrow capabilities, and the export gate controls data leaving the local boundary. Neither component should accept a model-generated claim such as “the user approved this” as authorization.
Ollama's tool-calling documentation demonstrates returning tool calls, executing application functions and supplying tool results in a follow-up request.[6] That application-controlled execution point is where your own validation and permission enforcement belong.
Pin the runtime and the model variant
The Nemotron announcement advertises up to a 1M-token context and an Apple-silicon nemotron-3.5-lightning:30b-mlx variant.[1] The model library is more specific: its retrieved listing shows the standard 30b tag at 19–25 GB and 1M context, while the MLX tag is 19 GB with 256K context.[7] Do not copy the family headline into a capacity plan for every variant.
Those library sizes are not complete memory requirements. Reserve space for runtime buffers, context state, concurrent requests and the rest of the application. “3B active” describes the model's active parameters, not a promise that the entire serving process fits like a 3B dense model.[1]
Record the installed Ollama version, selected tag, resolved local model identity and template with each evaluation. Because Apple-silicon installs now default to MLX where the architecture supports it, confirm which runtime and context limit the loaded model actually uses.[5] The September v0.34.1 notes also say MLX safetensors creation is no longer experimental, while GGUF creation requires llama.cpp conversion and quantization tooling.[5] Treat that as a migration consideration if your build pipeline relied on older creation behavior; it is not a reason to rewrite a working pipeline without testing.
What changes with the Nemotron 4 announcement?
On December 1, 2026, NVIDIA announced the Nemotron 4 family: Nemotron 4 Super is due in early 2027, followed by Ultra and Lightning models, so no Nemotron 4 model is available to deploy yet.[8] NVIDIA also said Nemotron 3.5 Decision, an 8-billion-parameter decision model that can judge when to escalate to a larger model or a person, is due December 15, 2026.[8][9] Neither changes this design: a decision model can recommend a route, but the export gate below still makes the data-release decision. See our Nemotron 4 on-premise deployment guide for how to plan around it.
Make local-only the default inference lane
Ollama documents OLLAMA_NO_CLOUD=1 and the disable_ollama_cloud server setting as ways to disable its cloud models and web search.[2] It also documents a default bind address of 127.0.0.1:11434.[2] A foreground evaluation server can make both intentions explicit:
# Documentation-derived shell example; not executed here.
# Stop any existing Ollama listener before starting another.
OLLAMA_NO_CLOUD=1 \
OLLAMA_HOST=127.0.0.1:11434 \
OLLAMA_CONTEXT_LENGTH=8192 \
ollama serve
The 8,192-token value is a deliberately bounded smoke-test setting, not a recommendation for long-running agents. For a managed app or service, configure the environment through that service's documented mechanism; an unrelated shell export will not reliably configure an already-running process.[2]
After restart, check for the documented Ollama cloud disabled: true log entry.[2] Then independently test outbound policy. This switch controls Ollama's cloud features, not every network client, browser extension or tool in your agent process. A local model calling an external CRM still causes data to leave through the CRM tool.
Keep downloads and dependency updates separate from inference sessions that handle sensitive data. Use network policy to enforce the intended boundary rather than relying on a model instruction to “stay private.”
Verify inference before attaching tools
The announcement's basic local launch is:[1]
ollama run nemotron-3.5-lightning
It may download the model, so confirm storage and permitted network access first. For an API smoke test with no tools, adapt Ollama's documented chat interface:[4]
curl --fail-with-body http://127.0.0.1:11434/api/chat \
-H 'Content-Type: application/json' \
-d '{
"model": "nemotron-3.5-lightning",
"messages": [{"role": "user", "content": "Reply with READY."}],
"stream": false,
"options": {"num_ctx": 8192}
}'
ollama ps
Inspect the actual response, selected model and processor/context allocation. ollama ps is documented for checking model offloading and allocated context.[2][3] A successful response confirms an inference path; it does not establish isolation, correct tool behavior or readiness for production.
There is a documentation discrepancy worth avoiding: the FAQ describes a 4,096-token default, while the dedicated context page describes VRAM-dependent defaults.[2][3] Set and verify context explicitly instead of relying on either default description. The dedicated page recommends at least 64,000 tokens for context-heavy agent work and warns that larger contexts need more memory.[3] Raise your configured budget only after measuring the representative workload.
Put authorization in the tool broker
Start with read-only capabilities. Give the broker access to a dedicated workspace rather than a user's entire home directory. Canonicalize paths, reject escapes and enforce tenant boundaries before opening files. Use separate credential scopes for reading records and changing them.
The following is proposed policy pseudocode, not a supported Ollama configuration format:
if identity is missing: deny
if tool is not in task.allowed_tools: deny
if arguments fail the tool schema: deny
if resource is outside task.authorized_scope: deny
if tool writes and approval is missing: require_approval
if approval is for different arguments: require_new_approval
if tool uses network and destination is not allowed: deny
otherwise execute with timeout and audit event
Bind approvals to the exact operation, target and arguments. Add expiry and single-use semantics for sensitive actions. For a payment, email or record deletion, require a clear preview and affirmative authorization rather than interpreting general task permission broadly.
Treat retrieved documents, web pages and tool responses as untrusted data. Instructions embedded in those results cannot grant tool permissions or authorize cloud export. The model may suggest an action; only the broker can release the capability.
Route to cloud only through an export contract
Ollama says its cloud-hosted models process prompts and responses but do not store or log their content or train on it.[2] That is a provider policy statement, not local processing or an automatic compliance finding. Evaluate the applicable agreement and your own data classification separately.
Use a routing matrix like this:
| Task state | Inference route | Required boundary |
|---|---|---|
| Internal document classification | Local | Authorized document scope; bounded output |
| Local answer lacks evidence | Local retrieval or human review | No silent export of the original document |
| Public technical question | Cloud eligible | Approved provider, endpoint and budget |
| Mixed public and confidential context | Local by default | Reviewed, minimized export package if escalation is allowed |
| External write or irreversible action | Either model, same broker | Exact-action approval and idempotency controls |
| Timeout or local model failure | Fail closed | Retry budget or human escalation, not automatic cloud fallback |
The export package should contain only approved fields and source excerpts. Do not forward the full conversation, hidden reasoning, unrelated files or raw tool history by default. Have the gate inspect the final serialized payload after context assembly, so later middleware cannot append confidential material unnoticed.
Use a separate cloud client and credential scope from the local-only Ollama process. Log route decisions and authorization identifiers without unnecessarily duplicating payload content. If the approval or policy service is unavailable, deny export rather than guessing that a prior approval still applies.
Evaluate the architecture as a system
Build a replay suite before enabling writes. Include correct read-only tasks, malformed arguments, unauthorized paths, injected instructions in documents, duplicate write requests, expired approvals and a cloud destination disguised as a local fallback. Use fake accounts and sandbox resources; no production credentials are needed to test these boundaries.
Measure task success, unauthorized-action attempts and executions, export decisions, human approvals, retries, complete-task latency and peak memory. Re-run identical fixtures after runtime, model, template or permission-policy changes. The model's own confidence is not a sufficient routing or safety score.
Ollama's announcement reports vendor claims of fourfold throughput and 30% faster task completion versus comparable models.[1] Those are not independent results for this architecture. Your meaningful metric is successful, authorized work per resource budget—not the rate at which a model proposes actions.
For an environment that prohibits every cloud route, use the existing air-gapped deployment guide as a separate infrastructure reference. Do not call the hybrid architecture here air-gapped.
Where does this fit in a production deployment?
For implementation support, see optimized inference and AI for engineering and manufacturing. These services are separate from the documentation-derived procedures above; this article does not report a completed customer deployment.
Sources
[1] https://ollama.com/blog/nemotron-3-5-lightning — NVIDIA Nemotron 3.5 Lightning · Ollama Blog [2] https://docs.ollama.com/faq — FAQ - Ollama [3] https://docs.ollama.com/context-length — Context length - Ollama [4] https://docs.ollama.com/api/chat — Generate a chat message - Ollama [5] https://github.com/ollama/ollama/releases — Releases · ollama/ollama [6] https://docs.ollama.com/capabilities/tool-calling — Tool calling - Ollama [7] https://ollama.com/library/nemotron-3.5-lightning — Nemotron 3.5 Lightning model library [8] https://nvidianews.nvidia.com/news/nvidia-open-models-advance-frontier-for-enterprises-and-industries — NVIDIA Open Models Advance Frontier for Enterprises and Industries | NVIDIA Newsroom [9] https://blogs.nvidia.com/blog/gtc-washington-dc-kari-briski-open-models — NVIDIA's Kari Briski: Open Models Are Driving a 'Fundamental Shift in Developing and Building Software' | NVIDIA Blog
Questions we get
Frequently asked questions
Does disabling Ollama cloud make the whole agent offline?
No. The documented setting disables Ollama's cloud models and web search. Your application and tools need their own outbound restrictions and verification.
Can every Nemotron 3.5 Lightning tag use 1M context?
Do not assume so. The retrieved Ollama library lists 1M for the standard 30b tag and 256K for the MLX tag. Verify the selected artifact and allocated runtime context.
Should cloud fallback happen automatically when the local model fails?
Not for confidential workloads. A timeout or low-quality answer is not permission to export data. Require an explicit policy decision, a minimized payload and any necessary user authorization.
Take the 40 Claude skills and the briefing with you
The Vault 2026 skills pack (calendar audits, hiring scorecards, calibration, continuity plans) plus the sovereignty briefing: model releases, deployment economics and regulatory shifts for regulated firms. One click to unsubscribe.
Ready to move from reading to running?
We design, build, fine-tune, host, and maintain sovereign AI deployments end to end.
Book a sovereignty assessment How deployment works