Skip to content
PrivateAI
← Back to Home
Workflow & Productivity

How to Use AI at Work Without Leaking Sensitive Data: A Complete Workflow Guide

11 min readBy PrivateAI Team

The Uncomfortable Truth: Your AI Assistant Has a Very Good Memory

Here's the situation most developers, consultants, and knowledge workers are quietly ignoring: every prompt you send to ChatGPT, Gemini, or Claude (cloud version) is transmitted to a third-party server, stored, potentially reviewed by human trainers, and used to improve models. The exact retention and usage policies vary — and they change. What doesn't change is that once your prompt leaves your device, you have lost control of it.

For most queries that's fine. But if you're pasting in:

  • Client source code under NDA
  • Internal database schemas or API keys (even accidentally)
  • Draft contracts, financial projections, or HR documents
  • Proprietary business logic you've spent years developing

...then you're not just violating your own privacy. You may be violating a client contract, GDPR obligations, or your employer's acceptable-use policy. Several large enterprises have already banned consumer AI tools after employees inadvertently uploaded confidential data. Samsung's 2023 source code leak via ChatGPT is the case study everyone cites — and it won't be the last.

The answer is not to stop using AI. It's to build a workflow where the right tool handles the right task, with your most sensitive work staying on hardware you control.


The Three-Layer Private AI Stack

Think of private AI work in three layers:

  1. Sensitive processing — tasks involving confidential data (code, documents, client info). This must stay local.
  2. Research and web queries — gathering information from the public web. This can use a cloud tool, but should use one with a privacy-respecting policy.
  3. Storage and sharing — saving outputs, collaborating with clients or teammates. This needs end-to-end encryption.

Each layer has a tool designed for it. The rest of this guide walks through setting up all three.


Layer 1: Local LLMs for Sensitive Processing

For anything involving data you can't afford to leak, the answer is a local model — one that runs entirely on your own machine, with zero network calls.

Why Ollama is the practical choice in 2026

Ollama has become the de facto standard for running open-weight models locally. It abstracts away the complexity of model loading, GPU memory management, and API serving behind a single clean interface. You get a local REST endpoint at http://localhost:11434 that behaves like the OpenAI API — meaning tools built for ChatGPT often work with Ollama out of the box.

Installation is a one-liner:

```bash

curl -fsSL https://ollama.com/install.sh | sh

```

Then pull a model:

```bash

Good all-rounder for coding and analysis

ollama pull llama3.2

Stronger for complex reasoning (requires ~8GB VRAM or RAM)

ollama pull qwen2.5-coder:14b

Lightweight, fast, surprisingly capable

ollama pull phi4-mini

```

For most knowledge work on a modern MacBook Pro or a mid-range workstation, llama3.2 or qwen2.5-coder will cover 80% of your tasks. If you're on Apple Silicon, Metal GPU offloading means these models run meaningfully faster than on equivalent Intel/AMD CPUs.

Connecting your editor to a local model

If you use VS Code, install the Continue extension and point it at your Ollama endpoint. You get inline code completion and a chat panel — functionally similar to GitHub Copilot, but with zero data leaving your machine.

For ~/.continue/config.json:

```json

{

"models": [

{

"title": "Local Qwen Coder",

"provider": "ollama",

"model": "qwen2.5-coder:14b",

"apiBase": "http://localhost:11434"

}

]

}

```

Every autocomplete suggestion and every chat message stays local. Your proprietary code never hits a remote server.

What local models are good at (and what they're not)

Local models running on consumer hardware are excellent for:

  • Code review, refactoring, and explanation
  • Drafting documents and emails from your own notes
  • Summarizing long texts you've pasted in
  • Answering questions about code you've written

They are weaker on:

  • Real-time information (they have a training cutoff, no web access)
  • Tasks requiring broad world knowledge with high accuracy
  • Very long context windows on constrained hardware

For anything requiring current web information, you move to Layer 2.


Layer 2: Privacy-Respecting Web AI for Research

Not every AI query involves sensitive data. When you need to search the web, research a library, or ask about current events, a local model can't help — it doesn't have internet access by design.

The instinct is to reach for ChatGPT or Google Gemini. But both use your queries to train models and associate your activity with your account. There's a better option.

Perplexity Pro: Web AI that doesn't build a profile on you

Perplexity Pro is a search-AI hybrid that retrieves live web results and synthesizes answers with citations. Unlike Google's AI or ChatGPT with search, Perplexity explicitly does not use your queries to train its models when you're a Pro subscriber. Your searches are not tied to a persistent behavioral profile the way Google queries are.

Affiliate Disclosure: This article may contain affiliate links. If you make a purchase through these links, we may earn a small commission at no extra cost to you. We only recommend products we genuinely believe in. This helps support our work and allows us to continue providing free content.

For a privacy-conscious professional, the workflow looks like this:

  • Sensitive task → local Ollama model (code review, document drafting with client data)
  • Research task → Perplexity Pro (what does this library do, what's the current CVE status, what are competitors doing)

The discipline is keeping those two buckets separate. Never paste proprietary code or client names into Perplexity. Use it the way you'd use a search engine — for public information only.

Perplexity Pro also supports focused collections (called Spaces) where you can store context across sessions. Useful for ongoing research projects where you want continuity without contaminating your local environment.


Layer 3: Encrypted Storage for AI Outputs

Here's a failure mode that's easy to overlook: you run everything locally, you're disciplined about what goes into Perplexity — and then you save your AI-generated outputs to Google Drive or Dropbox.

Google Drive scans files to improve its services. Dropbox has had privacy incidents. Both are cloud services operating under US jurisdiction, meaning subpoenas, national security letters, and government access are a real — if unlikely — vector. For most people, that risk is theoretical. For professionals handling genuinely sensitive client data, it's a due-diligence gap.

Tresorit: Zero-knowledge encrypted cloud storage

Tresorit uses end-to-end, zero-knowledge encryption. Files are encrypted client-side before upload — Tresorit's servers receive ciphertext they cannot read. Unlike Dropbox's "encryption at rest" (which means Dropbox holds the keys), Tresorit's architecture means only you and your explicitly authorized recipients can decrypt your files.

Affiliate Disclosure: This article may contain affiliate links. If you make a purchase through these links, we may earn a small commission at no extra cost to you. We only recommend products we genuinely believe in. This helps support our work and allows us to continue providing free content.

For a private AI workflow, Tresorit handles:

  • Saving and versioning AI-generated drafts and analysis
  • Sharing deliverables with clients without exposing them to third-party platforms
  • Archiving sensitive prompts and outputs that you want to retain but not expose

Tresorit integrates with Windows, macOS, iOS, and Android, and has a Teams tier for sharing encrypted folders with collaborators without giving the platform visibility into contents.

A practical folder structure for professional use:

```

/Tresorit/

/Clients/

/ClientA-2026/

/research/ ← Perplexity exports, public research

/ai-drafts/ ← local LLM outputs on confidential material

/deliverables/ ← final docs shared with client

/Templates/ ← prompt templates for recurring work types

```

Everything in this structure is encrypted in transit and at rest with keys you control. If Tresorit were subpoenaed, the encrypted blobs they'd hand over would be useless without your keys.


Securing the Communication Layer

Storage is solved. What about sending AI-assisted work to clients via email?

Standard email — Gmail, Outlook, even corporate email — is not end-to-end encrypted by default. Your email provider can read every message. If you're sending a contract draft or analysis you generated with sensitive data, that's another exposure point.

Proton Mail: Encrypted email with zero knowledge

Proton Mail provides end-to-end encrypted email between Proton users. For external recipients (Gmail, Outlook), you can send password-protected encrypted messages. For internal team communication, everything is E2EE by default.

Affiliate Disclosure: This article may contain affiliate links. If you make a purchase through these links, we may earn a small commission at no extra cost to you. We only recommend products we genuinely believe in. This helps support our work and allows us to continue providing free content.

Proton's full suite (Mail + Drive + VPN + Calendar) runs on Swiss jurisdiction, outside EU and US data-sharing agreements. For professionals under GDPR obligations or handling client data governed by confidentiality agreements, the jurisdiction matters.

The workflow integration is simple: draft AI-assisted communications using your local Ollama model, then send via Proton Mail. For clients who are also Proton users, you get automatic E2EE. For everyone else, password-protect sensitive attachments.


Putting It All Together: A Real Work Session

Here's what a full private AI workflow looks like in practice, using a realistic scenario: you're a consultant doing a technical audit of a client's codebase under NDA.

Step 1: Code review (local)

```bash

Start Ollama if not running

ollama serve

In Continue (VS Code), chat with local model:

"Review this authentication middleware for security issues"

Paste the client's code — stays entirely local

```

Step 2: Research a library you found in the codebase (Perplexity)

Open Perplexity Pro. Search: "passport-jwt known vulnerabilities 2026" — public information, no client data included. Get your answer with citations.

Step 3: Draft the findings report (local)

Back in your editor or a local Markdown app: use Ollama to help structure and polish the report. Client-specific findings stay local throughout.

Step 4: Save to Tresorit

Save the completed report to your encrypted Tresorit folder for the client. Add version history as you revise.

Step 5: Deliver via Proton

Send the final deliverable link or attachment from Proton Mail. If the client is on Gmail, use a password-protected message for the most sensitive content.

Total data exposure: zero. Not a single character of client code or identifying information touched a third-party server that wasn't end-to-end encrypted.


Common Mistakes to Avoid

Mixing local and cloud in the same session. The risk isn't usually deliberate — it's pasting something into the wrong window because you have ChatGPT and Continue both open. Close the cloud AI tab during sensitive work sessions.

Assuming incognito mode makes cloud AI private. Incognito prevents local browser history. It does nothing for the server receiving your prompt. ChatGPT still logs your session regardless of browser mode.

Forgetting about screenshots and clipboard. If you take a screenshot of a sensitive conversation and sync your clipboard to iCloud or Google Photos, you've just uploaded it. Use a local screenshot tool and keep cloud photo sync off on work machines.

Using a local model with an internet-connected plugin. Some local model frontends offer web browsing or third-party plugin integration. Enabling these can route queries through external servers even if the base model is local. Read the plugin documentation before enabling.


Hardware Reality Check

If you're running local models on a machine with less than 16GB unified memory (Apple Silicon) or less than 8GB VRAM (discrete GPU), expect meaningful quality trade-offs at larger model sizes. The practical floor for useful work is the 7B–14B parameter range. Below that, quality degrades noticeably for complex tasks.

For most professionals, a current-generation MacBook Pro M3/M4 Pro handles 14B models smoothly. A Mac Mini M4 Pro handles 32B models well. If you're on Windows/Linux with a current NVIDIA RTX 40-series GPU (16GB+), you're in the same bracket.

You don't need a $5,000 workstation. But if your machine is 5+ years old with 8GB RAM, your local model experience will be limited. Perplexity Pro fills the gap for non-sensitive queries in the meantime.


Start Here If You're Setting This Up Today

  1. Install Ollama and pull llama3.2: 20 minutes, free
  2. Install Continue in VS Code and point it at your local endpoint: 10 minutes, free
  3. Subscribe to Perplexity Pro for web research: $20/month, immediate access
  4. Move your sensitive project files to Tresorit: free tier covers basic testing, paid tier for production use
  5. Migrate work email to Proton (or add Proton as a secondary for client communication): free tier available, paid for full suite

The marginal cost of this stack is modest. The reduction in data exposure is absolute.


The Bottom Line

Using AI at work without leaking data isn't about paranoia — it's about professional responsibility. The same instinct that makes you use a password manager and lock your screen before stepping away from your desk should apply to your AI tooling.

Local models handle what's sensitive. Privacy-respecting cloud tools handle what's public. Encrypted storage and communication close the loop. None of these tools require you to accept a worse AI experience — in many cases, Continue with a good local model outperforms GitHub Copilot for focused coding tasks. Tresorit's UX is as smooth as Dropbox. Proton Mail works like any modern email client.

The workflow exists. It works. The only thing left is building the habit.


Ready to Lock Down Your AI Workflow?

Get our Private AI Workflow Checklist — a one-page PDF covering tool setup, prompt hygiene rules, and the three questions to ask before pasting anything into any AI tool.

Get the Private AI Workflow Checklist

One-page PDF. No fluff. The exact setup we use and recommend.