Sensitive Data Stays Local: A Setup Without the Cloud

NDAs, personal data, trade secrets — for this layer there is one answer: local models, data never leaves the machine. The setup comes together in an evening on hardware with 16 GB of RAM or more: private routine work at the quality level of small cloud models. A complete build with commands.

Hardware for the privacy setup

LevelHardwareModelWhat it covers
MinimumA laptop with 16 GB RAMGPT-OSS 20B / Qwen 14B Q4Texts, analysis, drafts
StandardPC + a 24 GB cardQwen MoE 35B-A3B80–100 tok/s, agentic routine
Server2×V100 16 GB + 64 GB RAMDense 27B Q8 / MoEA team, a 24/7 bot
MaximumDense 70B / a sharded giantQwen Flash NextComplex analysis offline

The minimal setup is a laptop: private drafts on the road; the standard one is a developer workstation; the server one is a 24/7 Telegram bot with no external calls (the DonEx case: a bot on local Qwen).

A build in five commands

ollama pull gpt-oss:20b        # or qwen3.8:27b / deepseek-r1:8b
ollama serve                    # OpenAI-compatible API on localhost:11434
# check
curl http://localhost:11434/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-oss:20b",
       "messages": [{"role": "user", "content": "Private test: reply ok"}]}'

The loop is closed: the model runs on the machine, no data goes out, and the API works with every tool (an n8n node pointed at localhost, your own script, a local agent). For 24/7 operation — llama-server as a systemd service on a server.

The honest limits of local privacy

  • Quality is below the flagships: a 20B–35B setup is at the level of mid-tier cloud models; complex decisions — a hybrid (anonymized to the cloud, or done by hand).
  • Speed is bounded by hardware: 20–100 tok/s versus hundreds in the cloud; interactive use is acceptable, batch jobs are slow.
  • Maintenance: model updates, disk space, cooling — ordinary server work.
  • The model is also a trusted party: weights of openly licensed families — verify the download source (Hugging Face/ModelScope officially).

Scenarios for the setup

  1. Lawyer/accountant: reviewing NDA documents and contracts — GPT-OSS 20B on a laptop, not a single byte leaves.
  2. Medicine/personal data: a server build — summary reports over sensitive databases with no export.
  3. Trade secrets: a standard-level setup — drafts and analysis of production documents.
  4. Personal correspondence and photos: a home assistant on small models — nobody sees what you asked.

Routing in a hybrid pipeline

Which model to put on a laptop first? GPT-OSS 20B or Qwen 14B in Q4 — the minimum level of the setup: texts, analysis, drafts. It downloads via ollama pull in one evening and runs even without a discrete GPU. Drafts travel with the laptop, not with someone else’s data center.

Is the setup compatible with existing tools? Yes: Ollama serves an OpenAI-compatible API on localhost:11434, so n8n nodes, custom scripts, and local agents connect without rework. Replacing the API address in the tool’s settings is enough. CLI agents, editor plugins, and Telegram bots connect the same way.

What happens when a model is updated? Nothing by itself: a new version is downloaded manually from the official source and run through ten standard tasks before switching. That is where the setup’s predictability comes from — an update becomes a decision, not a surprise. The ten-task run is a mandatory step, not over-caution.

Should you check the model’s license? Yes: weights of openly licensed families are downloaded from Hugging Face or ModelScope officially, and the source is recorded in the project file. The model is a trusted entity too, like any other software in the setup. A verified source is part of the project’s data map.

A local setup rarely lives alone: a free layer and a paid layer work next to it, and privacy becomes the question of which step runs on which layer. An example route: a contract is reviewed locally, its anonymized summary goes to the free layer, and comparing terms goes to the paid one. The table ties the setup to the three-bucket map; the rows are revisited at every pipeline update:

Data typeLayerWhy
NDAs, contracts, personal dataLocal: GPT-OSS 20B / Qwen 14BData never leaves the machine
Keys, tokens, passwordsNo layer at allNever go into prompts, even anonymized
Drafts and internal documentsLocal or a paid tierSecond bucket: paid — with a no-training commitment
Public documentation and routine workFree layerFirst bucket: 70–80% of pipeline volume
Complex analysis of anonymized dataVendor paid tierFlagship quality without training on your data
Medical and financial databasesLocal server buildSummary reports with no external export
Personal correspondence and photo archiveA home assistant on small modelsNobody sees what you asked
Team training materialsLocal or freeDepends on whether internal data is in the text

The routing rule is one: when in doubt, drop a level down, from cloud to local. An extra cautious step costs minutes of waiting; a leak from the red bucket costs clients and reputation. Changing the layer for data is irreversible: once something is sent to the cloud, control does not come back, so the route is applied before the button is pressed. A hybrid beats a pure cloud precisely at this boundary: routine is cheap, secrets stay local. The table is revisited together with the policy map: the quarterly review covers the local layer too, because model updates and license terms are checked on the same cycle.

A separate case is agentic scenarios. If an agent with file access runs on a cloud model, everything it reads is read by the cloud provider; for the red bucket the agent runs on a local model. Before the start — check the history and the desktop for exposures: the Cowork case with keys in hundreds of files applies to any machine, including yours. A pre-start check is the same discipline as in a cloud pipeline, only with a shorter pattern list. The agent’s history is stored only on the machine — one more reason to review it regularly. The agent’s route is written into the project rules as explicitly as the data route.

Frequently asked questions

Quality for real tasks? For mechanics and drafts — yes; for architectural decisions — a hybrid with anonymized cloud. A ten-task test will show the boundary.

Is fully offline possible? Yes: the model is downloaded, inference is local; model updates are manual downloads.

How much does the setup cost? From zero (a laptop you already have) to 170 thousand rubles (a server with GPUs) — build cases are in the hardware materials.

Do Ollama logs go anywhere external? No: it is a local process; there is no telemetry. You can verify with a firewall — no outbound requests.

A local setup is the one answer to the red list of data: an evening of assembly, zero external calls, routine quality intact. The limits are honestly drawn — a hybrid for the complex. The builds are current as of fall 2026.

Like this post? Please share to your friends:
11AI - Your Free LLM
Leave a Reply

;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: