AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

Running Pieces Locally: How to Get Private Code Completion Without Telemetry Leaks

Amanda Nagy · 365Finds Editorial
Indexed 88,650 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

If you installed Pieces expecting an inline, ghost-text autocomplete that finishes your lines as you type like GitHub Copilot, you are going to be disappointed. That is not how it works. Pieces handles code generation and completion through an intelligent desktop daemon and a conversational Copilot interface embedded across your IDEs and desktop.

At 365Finds, we respect software that does not pretend to be something it is not. But what developers care about even more is absolute data sovereignty: writing proprietary code without having a single token or telemetry packet ship off to a third-party server.

Pieces can run completely offline with on-device Large Language Models (LLMs), but achieving a true zero-telemetry environment requires deliberate configuration. Out of the box, Pieces defaults to cloud-hosted intelligence and sends anonymized usage diagnostics.

Here is exactly how Pieces' local architecture works, how to switch your inference engine to run locally, and how to shut off every background telemetry stream.


1. The Architecture: Why Pieces OS Changes the Privacy Equation

Most developer AI tools run entirely as thin extensions talking to cloud endpoints. Pieces approaches the problem differently.

When you install Pieces, you are installing two separate entities:

  1. The Client Interface: The Pieces Desktop App, or extensions for VS Code, JetBrains, and browsers.
  2. Pieces OS: A background daemon running locally on your operating system (localhost, port 1000).
[ IDE Extension / Desktop App ]
              │  (Local REST / WebSocket)
              ▼
    [ Pieces OS Daemon ] ─── (Local File System: com.pieces.os)
              │
       ┌──────┴──────┐
       ▼             ▼
 [ Local LLM ]  [ Cloud API ] (Disabled in Air-Gapped Mode)
 (Ollama / SLM)

Pieces OS acts as the local cognitive engine. Your saved snippets, syntax analysis, vector embeddings, and Long-Term Memory (LTM) context graph live on your physical drive:

Because the core database and indexing logic run locally, your repository context is not continuously uploaded to a proprietary remote vector database. However, this is only half the battle. If your Copilot prompt triggers a cloud frontier model, or if the client reports background telemetry, your air-gap is broken.


2. Step 1: Switch Pieces Copilot to an On-Device Model

By default, Pieces Copilot routes prompt completions through commercial cloud models (such as GPT-4o or Claude 3.5 Sonnet). When using cloud models, Pieces transmits a scoped context window containing only the immediate code references necessary to satisfy the prompt. While Pieces is SOC 2 Type II certified and explicitly does not use customer code to train public models, regulated financial or defense codebases cannot permit even scoped cloud transmissions.

To lock code generation entirely to your silicon:

  1. Open the Pieces Copilot chat panel in VS Code, JetBrains, or the Pieces Desktop app.
  2. Look at the lower-left corner of the Copilot chat pane, where the current active model is displayed.
  3. Click on the model badge and select "Manage Copilot Runtime" (or "Change Model").
  4. Navigate from the cloud models tab to Local Models.
  5. Select a supported on-device model—such as Mistral 7B, Llama 3/3.2, or Phi—or connect to your locally running Ollama instance.
  6. Trigger the local download. Once the weights reside in your local cache, inference executes via your local GPU or CPU.

When local execution is engaged, Pieces OS handles token processing and context assembly across your loopback interface. Prompts and generated completions never transit external network gateways.


3. Step 2: Severing the Telemetry Streams

Running local LLM weights does not automatically suppress client telemetry. Like many enterprise-backed developer tools, Pieces ships with anonymous diagnostics enabled to track crash reports and feature usage.

For high-security, air-gapped environments, 365Finds recommends three specific steps to silence telemetry entirely:

A. Disable Usage Analytics During Onboarding

If you are doing a fresh deployment, do not click past the onboarding screens automatically. When the setup wizard presents data sharing preferences, toggle off "Help Improve Pieces" and anonymous crash reporting before finalizing initialization.

B. Toggle Off Telemetry in Desktop Settings

If Pieces is already running on your machine:

  1. Open the Pieces for Developers Desktop app.
  2. Click your profile avatar or the gear icon to open Settings.
  3. Under the Account and Troubleshooting sections, locate the data telemetry toggles.
  4. Disable Anonymous Crash Reporting and Usage Telemetry.
  5. Restart Pieces OS and the Desktop app to flush the current session state.

C. Enterprise Admin Level Controls

For development teams managing multiple engineering seats:

  1. Log in to the administrative portal at portal.pieces.app.
  2. Navigate to the Features settings view.
  3. Under the Analytics sub-menu, disable telemetry collection across all managed organization seats.

4. Operational Trade-Offs: The 365Finds Assessment

365Finds evaluates developer tooling based on real-world engineering friction, not marketing checklists. While Pieces' local-first posture is genuine, running AI locally involves distinct operational trade-offs:

Architectural DimensionDefault Cloud ProfileHardened Local Mode
Data PrivacyScoped context sent to cloud APIs; zero model trainingStrict zero-egress; code and context stay on localhost
Telemetry StateAnonymous diagnostics activeFully severed via user and admin toggles
System Resource ImpactNegligible local memory consumptionHeavy; consumes 6GB to 16GB+ RAM and dedicated VRAM
Inference LatencyNetwork-bound; fast on frontier APIsHardware-bound; depends on local Apple Silicon or GPU
Interaction ModelContextual Copilot chat and snippet generationContextual Copilot chat and snippet generation

Our view at 365Finds is straightforward: if you need a passive autocomplete daemon that guesses your next semicolon at 50 milliseconds, look at local tab-completion engines like Continue paired with StarCoder or JetBrains Full Line. Pieces is built for contextual synthesis, snippet retrieval, and cross-application memory. If you want an intelligent, persistent assistant that indexes your local dev flow without exposing proprietary secrets to third-party endpoints, Pieces in local runtime mode delivers genuine data isolation.

To verify your configuration in an air-gapped environment, sever your machine's Wi-Fi connection or block outbound TCP traffic for pieces-os via your host firewall. Open your IDE, query the local model in Pieces Copilot, and observe the generation complete on 127.0.0.1 with zero failed network retry packets.

References