coding

Run a Local LLM for Code Review: Setup and Privacy Checks

By Platform Editorial Team•
5 min read
•
2026-09-22

A practical guide to running a language model on your own hardware and checking which parts of your editor or workflow may still use network services.

Step-by-Step Instructions

1

Choose a model that fits your hardware

Check available RAM, GPU memory, storage, and the model's context requirements before downloading weights. A model that does not fit in memory will run slowly or not at all, and the fix is a smaller model, not a more powerful prompt. Start with a smaller coding model and a test repository; model size and quantization affect speed and output quality, so a small model that answers quickly is a better first step than a large model that takes minutes per response. Download weights from the official source for the runtime you chose, and check the model's licence and terms for your intended use before putting proprietary code through it. Keep the test repository separate from real work while you learn what the model does well and where it struggles. That separation also protects real code from an early misconfiguration, such as an editor setting that sends the file to a cloud model while you believed it was local.

Recommended Prompt Template
"ollama run deepseek-coder-v2:16b"
2

Point your editor at the local inference endpoint

Install the local runtime from its official documentation, download a compatible model, and confirm that it responds on the local endpoint. Confirming the response matters: send a small test prompt and check that the answer comes back from the local runtime, not from a cached or cloud fallback. Configure your editor or script to use that endpoint, and verify the selected model is local rather than a cloud-hosted variant. Editor settings often list local and cloud models side by side with similar names, so check the exact model identifier shown in the settings rather than trusting the display name. Send a second test prompt through the editor itself, not just through the terminal, so you confirm the whole path — editor, endpoint, model, and back — works as configured. Keep the endpoint on localhost unless you have a specific reason to expose it, and if you do expose it, protect it — an open inference endpoint on a shared network is an invitation to run up your hardware bill. Write down the endpoint address, the model name, and the settings you changed, so the setup can be reproduced on another machine or rebuilt after a reinstall.

3

Verify network behavior before using private code

Local inference can keep prompt processing on your machine, but it does not automatically make every surrounding application private. Review editor telemetry, extensions, update checks, cloud fallbacks, plugins, and external tools. Each of these can send data out on its own: telemetry reports usage, extensions may call their own services, update checks phone home, and a cloud fallback can silently take over when the local model is slow or unavailable. The check that matters is empirical, not theoretical. Use a network monitor or firewall test to confirm what leaves the device before processing proprietary code: run a code review session with the local model, watch the outbound connections, and account for every one of them. Anything you cannot explain should be investigated before real code goes through the workflow. Keep a short written record of what you checked and what you found, including which services you disabled and why, so the next person who uses the setup does not have to rediscover the same gaps.

4

Maintain the setup and re-check after updates

Update the runtime and the models deliberately, not automatically. An automatic update can change the model, the endpoint behaviour, or the privacy defaults without anyone noticing, so read the release notes before updating and test the setup again afterwards. Re-run the network check after editor or plugin updates, because a new version can re-enable telemetry or add a cloud feature that was not there before. Keep a note of which parts of the workflow are local and which parts still use the network, and revisit that note whenever the workflow changes — a new extension, a new editor, or a new model all deserve a fresh check. Remove models you no longer use, both to free disk space and to reduce the chance of selecting the wrong one later. A local setup is only as private as its last check, so treat the verification in the previous step as a recurring task rather than a one-time achievement.

Official documentation & further reading

These first-party resources help verify product workflows, eligibility, privacy terms, and plan details. Providers can change features and limits, so check the current source before making a purchase or production decision.

Tools & Models Used in this Guide