Engineering teams want AI code completion, but security teams cannot stomach cloud prompts. Sending proprietary algorithms, unreleased financial software, or regulated health records to commercial endpoints creates compliance liability. Continue bridges this divide. As an open-source IDE extension for VS Code and JetBrains, Continue decouples the user interface from the underlying model, enabling a completely self-hosted AI development environment.
At 365Finds, our research indicates that simply downloading a local model is not enough to guarantee privacy. Many teams switch to local inference while leaving background telemetry active, or they assign an oversized chat model to tab completion and abandon local setups due to excruciating latency. Locking down Continue requires a three-tier setup: role-based model separation, strict local loopback endpoints, and proactive exclusion of sensitive workspace assets.
1. Why Role Separation Dictates Local Success
Running a private assistant locally forces hard architectural trade-offs. In the cloud, a single massive model cluster can serve multiple roles. On a local workstation or internal enterprise server, compute and VRAM are finite.
Continue categorizes model interactions into three functional roles:
| Role | Operational Priority | Recommended Local Weights | VRAM Target (Quantized) |
|---|---|---|---|
| Autocomplete (Tab) | Latency below 250ms; fill-in-the-middle (FIM) support | Qwen2.5-Coder 1.5B or StarCoder2 3B | ~2 GB to 4 GB |
Chat & Edit (/edit) | Instruction following; contextual reasoning; code refactoring | Qwen2.5-Coder 7B/14B, Llama 3.1 8B, or DeepSeek-R1-Distill 8B | ~6 GB to 12 GB |
Embeddings (@codebase) | High chunk retrieval accuracy; low memory footprint | nomic-embed-text or bge-large-en | ~1 GB |
At 365Finds, we strongly advise against using your primary chat model for tab completion. A 14B model running on a consumer GPU takes 800ms to 1.5s to generate a completion. That delay breaks typing rhythm. Pairing a nimble 1.5B model for autocomplete with an 8B or 14B model for conversational coding preserves responsiveness without sacrificing code privacy.
2. Setting Up the Local Inference Backend with Ollama
Ollama provides the simplest orchestration layer for local weight serving on macOS, Linux, and Windows.
First, start the Ollama service and download the required private models through your terminal:
# Pull the fast autocomplete engine
ollama pull qwen2.5-coder:1.5b
# Pull the primary chat and editing engine
ollama pull qwen2.5-coder:7b
# Pull the dedicated vector embedding model
ollama pull nomic-embed-text
Verify that the local API daemon is reachable on http://localhost:11434. By default, Ollama binds strictly to 127.0.0.1, keeping all network requests confined to internal host sockets.
3. Configuring Continue (config.yaml)
Modern releases of Continue use config.yaml located in ~/.continue/config.yaml (macOS/Linux) or %USERPROFILE%\.continue\config.yaml (Windows).
Open the file and map the local Ollama endpoints directly to each respective role:
name: Local Private Rig
version: 1.0.0
schema: v1
# Explicitly disable external telemetry pings
allowAnonymousTelemetry: false
models:
# Primary chat, code generation, and inline edit model
- name: Qwen2.5-Coder 7B
provider: ollama
model: qwen2.5-coder:7b
apiBase: http://localhost:11434
roles:
- chat
- edit
- apply
defaultCompletionOptions:
contextLength: 4096
tabAutocompleteModel:
name: Qwen2.5-Coder 1.5B
provider: ollama
model: qwen2.5-coder:1.5b
apiBase: http://localhost:11434
embeddingsProvider:
provider: ollama
model: nomic-embed-text
apiBase: http://localhost:11434
context:
- provider: code
- provider: docs
- provider: diff
- provider: terminal
- provider: problems
- provider: folder
- provider: codebase
This configuration routes prompt payloads, diff edits, tab completions, and codebase RAG indexing strictly to http://localhost:11434. No code bytes leave your network interface.
4. Closing the Remaining Data Leak Vectors
Redirecting model inference is only the first layer of defense. Enterprise security audits frequently catch two additional leaks in default editor extensions: telemetry traffic and sensitive workspace file indexing.
Disabling Telemetry in the IDE Host
By default, Continue collects anonymous product analytics via PostHog to monitor feature usage and error rates. While Continue states that prompts and source code are not included in telemetry, strict air-gapped environments must block all outbound telemetry requests.
- Open IDE Settings (
Ctrl + ,on Windows/Linux;Cmd + ,on macOS). - Search for
Continue: Allow Anonymous Telemetry. - Uncheck the setting.
- Alternatively, add
"continue.telemetryEnabled": falseto your globalsettings.json.
Shielding Secrets with .continueignore
When using @codebase, Continue parses your workspace and stores vector embeddings locally in ~/.continue/index/index.sqlite. While this database stays on your disk, developers often inadvertently index production keys, test databases, or credential files.
Create a .continueignore file in the root directory of your project:
# Credentials and environment secrets
.env
.env.*
*.pem
*.key
*.pfx
secrets/
# Build artifacts and compiled binaries
dist/
build/
target/
node_modules/
*.min.js
# Internal database snapshots
*.sqlite
*.dump
To purge any previously indexed workspace state after updating rules, open the IDE Command Palette (Ctrl/Cmd + Shift + P) and execute Continue: Rebuild codebase index.
5. The 365Finds Assessment: Practical Trade-Offs
Configuring Continue with local LLMs produces an impenetrable boundary around intellectual property. For defense contractors, fintech platforms, and internal tooling teams bound by non-disclosure agreements, this architecture eliminates SaaS compliance hurdles.
However, 365Finds emphasizes setting pragmatic expectations. A local 7B or 14B model handles function stubs, docstrings, unit tests, and single-file refactoring reliably. It will not match the holistic multi-file reasoning or deep architectural decomposition of a 200B+ frontier cloud model. Autocomplete on a 1.5B parameter model is swift and helpful, but demands disciplined type definitions to keep suggestions on target.
For organizations running distributed teams on thin-client laptops, running local inference on individual developer machines often creates thermal throttling and battery drain. In those scenarios, hosting a centralized Ollama or vLLM instance on an isolated internal server within the corporate VPN—pointing Continue's apiBase to that internal private IP—delivers the ideal compromise between inference speed and zero-leak governance.