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
| Level | Hardware | Model | What it covers |
|---|---|---|---|
| Minimum | A laptop with 16 GB RAM | GPT-OSS 20B / Qwen 14B Q4 | Texts, analysis, drafts |
| Standard | PC + a 24 GB card | Qwen MoE 35B-A3B | 80–100 tok/s, agentic routine |
| Server | 2×V100 16 GB + 64 GB RAM | Dense 27B Q8 / MoE | A team, a 24/7 bot |
| Maximum | Dense 70B / a sharded giant | Qwen Flash Next | Complex 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
- Lawyer/accountant: reviewing NDA documents and contracts — GPT-OSS 20B on a laptop, not a single byte leaves.
- Medicine/personal data: a server build — summary reports over sensitive databases with no export.
- Trade secrets: a standard-level setup — drafts and analysis of production documents.
- 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 type | Layer | Why |
|---|---|---|
| NDAs, contracts, personal data | Local: GPT-OSS 20B / Qwen 14B | Data never leaves the machine |
| Keys, tokens, passwords | No layer at all | Never go into prompts, even anonymized |
| Drafts and internal documents | Local or a paid tier | Second bucket: paid — with a no-training commitment |
| Public documentation and routine work | Free layer | First bucket: 70–80% of pipeline volume |
| Complex analysis of anonymized data | Vendor paid tier | Flagship quality without training on your data |
| Medical and financial databases | Local server build | Summary reports with no external export |
| Personal correspondence and photo archive | A home assistant on small models | Nobody sees what you asked |
| Team training materials | Local or free | Depends 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.
