How to Keep Code Private With Continue.dev and a Local Model
The selling point of Continue.dev for regulated teams is that it can run with zero external calls: a local model for chat and autocomplete, local embeddings for codebase context, and telemetry disabled. The claim is easy to make and needs proof, because one misconfigured provider sends your code to an API.
Here is the setup, then how to verify it.
What does a no-egress configuration include
Four pieces:
- A local inference server (Ollama or an OpenAI-compatible local runtime) with a code model pulled.
- Chat, edit and autocomplete roles all pointed at that local endpoint.
- Embeddings for codebase indexing generated by a local embedding model.
- Telemetry and any anonymous usage reporting turned off in settings.
If any role points at a hosted provider, that role is an external call. Check all of them rather than just chat.
How do you verify nothing leaves the machine
The honest test is a network capture. Run a chat request and an autocomplete with a monitoring tool watching outbound connections. You should see requests to your local port and nothing to a provider hostname.
Second check: grep the config file for any hosted URL and for key fields that are non-empty. A leftover key from a quick test is the most common leak.
| Check | Expected |
|---|---|
| Config provider URLs | All local |
| API key fields | Empty |
| Telemetry setting | Disabled |
| Embedding model | Local |
| Outbound connections during use | Local port only |
Verify once with a network monitor, then write the result into your compliance record with a date. A setting is not evidence.
What do you lose by going fully local
Answer quality on hard questions, and speed on long files. A 14B code model handles refactors and test writing; it fails at cross-file reasoning that a frontier model manages. Expect more wrong first drafts and more time spent reading them.
Autocomplete is nearly indistinguishable on short completions, which is where most of the daily value sits.
How do you handle the team rollout
Distribute the config file through your normal dotfile or MDM channel, with an approved model version pinned by digest rather than by tag. A tag that updates silently is a supply-chain risk in a regulated environment.
Pin the model digest. It is the difference between a reproducible setup and a moving target.
If some code may go to a hosted model, split the policy by repository rather than by person: a separate config for internal services, another for open-source work. Teams wanting a managed agent for that second category often use Cline with an approved key.
Who should not attempt this
Teams without hardware to run a 14B model at usable speed, and teams where nobody can own the local inference server’s uptime. A half-working local server is worse than an approved hosted provider with a data processing agreement.
Quick Summary
- Point all four roles at a local endpoint, including embeddings.
- Verify with a network monitor and an empty-key grep; record the result with a date.
- Expect weaker cross-file reasoning and similar-quality completions.
- Pin model versions by digest and distribute config centrally.
- Split policy by repository, not by person.
