Disable Telemetry #3548

Open
opened 2026-02-16 17:40:36 -05:00 by yindo · 9 comments
Owner

Originally created by @grigio on GitHub (Dec 15, 2025).

Originally assigned to: @jayair on GitHub.

Image

I tried to completly disable the telemetry but opencode still connects to remote hosts

{
  "$schema": "https://opencode.ai/config.json",
  "share": "disabled",
  "autoupdate": false,
  "experimental": {
    "openTelemetry": false
  },
  "tools": {
    "websearch": false
  },
  "disabled_providers": ["exa"],
  "provider": {
    "ollama": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "llamacpp (local)",
      "options": {
        "baseURL": "http://localhost:9292/v1"
      },
      "models": {
        "Alibaba-NLP_Tongyi-DeepResearch-30B-A3B-IQ4_NL": { "name": "Alibaba-NLP_Tongyi-DeepResearch-30B-A3B-IQ4_NL" },
        "Qwen3-4B-Instruct-2507-Q4_K_M": { "name": "Qwen3-4B-Instruct-2507-Q4_K_M" }
      }
    }
  }
}

Originally created by @grigio on GitHub (Dec 15, 2025). Originally assigned to: @jayair on GitHub. <img width="1306" height="617" alt="Image" src="https://github.com/user-attachments/assets/9a6b8614-a48e-4136-85b6-165d40261002" /> I tried to completly disable the telemetry but opencode still connects to remote hosts ``` { "$schema": "https://opencode.ai/config.json", "share": "disabled", "autoupdate": false, "experimental": { "openTelemetry": false }, "tools": { "websearch": false }, "disabled_providers": ["exa"], "provider": { "ollama": { "npm": "@ai-sdk/openai-compatible", "name": "llamacpp (local)", "options": { "baseURL": "http://localhost:9292/v1" }, "models": { "Alibaba-NLP_Tongyi-DeepResearch-30B-A3B-IQ4_NL": { "name": "Alibaba-NLP_Tongyi-DeepResearch-30B-A3B-IQ4_NL" }, "Qwen3-4B-Instruct-2507-Q4_K_M": { "name": "Qwen3-4B-Instruct-2507-Q4_K_M" } } } } } ```
Author
Owner

@github-actions[bot] commented on GitHub (Dec 15, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #459: Privacy and Data Collection Clarification Request - discusses privacy concerns and data collection transparency
  • #2836: Simple zero-retention model boolean feature flag - requests stricter privacy controls to prevent data retention
  • #2224: Support for airgapped installation - requests ability to run OpenCode in environments without network access (related privacy/security concern)
  • #2666: Detailed per-interaction telemetry - discusses telemetry and data visibility controls

Feel free to ignore if your specific case is distinct from these.

@github-actions[bot] commented on GitHub (Dec 15, 2025): This issue might be a duplicate of existing issues. Please check: - #459: Privacy and Data Collection Clarification Request - discusses privacy concerns and data collection transparency - #2836: Simple zero-retention model boolean feature flag - requests stricter privacy controls to prevent data retention - #2224: Support for airgapped installation - requests ability to run OpenCode in environments without network access (related privacy/security concern) - #2666: Detailed per-interaction telemetry - discusses telemetry and data visibility controls Feel free to ignore if your specific case is distinct from these.
Author
Owner

@rekram1-node commented on GitHub (Dec 15, 2025):

there isnt any telemetry, the open telemetry thing is if you want to get spans like the ai sdk has spans to track tokens and stuff but we dont send them anywhere and they arent enabled either

most likely these requests are for models.dev (our models api which allows us to update the models list without needing new releases)

@rekram1-node commented on GitHub (Dec 15, 2025): there isnt any telemetry, the open telemetry thing is if you want to get spans like the ai sdk has spans to track tokens and stuff but we dont send them anywhere and they arent enabled either most likely these requests are for models.dev (our models api which allows us to update the models list without needing new releases)
Author
Owner

@grigio commented on GitHub (Dec 15, 2025):

@rekram1-node ok, but why can't it be disabled? with http://localhost:9292/v1/models I already have the local models list

@grigio commented on GitHub (Dec 15, 2025): @rekram1-node ok, but why can't it be disabled? with `http://localhost:9292/v1/models` I already have the local models list
Author
Owner

@rekram1-node commented on GitHub (Dec 15, 2025):

No reason, Just havent implemented a disabled state, ultimately we are gonba have a setting thats more future proof but I can add an experimental disable of it for now for you?

we are shipping an “airgapped” config option for full local stuff but it is still a wip for now

hows that?

@rekram1-node commented on GitHub (Dec 15, 2025): No reason, Just havent implemented a disabled state, ultimately we are gonba have a setting thats more future proof but I can add an experimental disable of it for now for you? we are shipping an “airgapped” config option for full local stuff but it is still a wip for now hows that?
Author
Owner

@grigio commented on GitHub (Dec 15, 2025):

For me opencode is fine, just i'd like to disable at run runtime the internet connections i don't need. like the ones 104.26., 172.67., if is there a flag to disable those connections i'll try that

@grigio commented on GitHub (Dec 15, 2025): For me opencode is fine, just i'd like to disable at run runtime the internet connections i don't need. like the ones `104.26.`, `172.67.`, if is there a flag to disable those connections i'll try that
Author
Owner

@Mastermjr commented on GitHub (Dec 19, 2025):

asked about this on the discord, but I'll ask here, I would also be really interested in an "airgapped" feature,
or even instructions for how to build a docker with all the depends pre-installed (aka npm packages, lsp servers, etc... )

just learning opencode, and I already love it (especially as a previous vim user)

@Mastermjr commented on GitHub (Dec 19, 2025): asked about this on the discord, but I'll ask here, I would also be really interested in an "airgapped" feature, or even instructions for how to build a docker with all the depends pre-installed (aka npm packages, lsp servers, etc... ) just learning opencode, and I already love it (especially as a previous vim user)
Author
Owner

@jayair commented on GitHub (Dec 19, 2025):

Yeah there are a few steps involved.

But for organizations we help set this up through: https://opencode.ai/enterprise

@jayair commented on GitHub (Dec 19, 2025): Yeah there are a few steps involved. But for organizations we help set this up through: https://opencode.ai/enterprise
Author
Owner

@tredondo commented on GitHub (Feb 12, 2026):

I've also disabled telemetry and checking for updates in OC Desktop (and restarted it), but keep seeing connection attempts to opencode.ai on startup.

Note that unckecking "Check for updates on startup" did not sync that setting into the .JSON. Is this expected @jayair ?

{
  "$schema": "https://opencode.ai/config.json",
  "autoupdate": true,
  "experimental": {
    "openTelemetry": false,
  },
  "share": "disabled",
  "disabled_providers": ["opencode"],
}
Image

What's happening here? Is OC Desktop checking for updates due to incorrectly merging the two settings?

Or is there another setting I'm missing?

@tredondo commented on GitHub (Feb 12, 2026): I've also disabled telemetry and checking for updates in OC Desktop (and restarted it), but keep seeing connection attempts to `opencode.ai` on startup. Note that unckecking "Check for updates on startup" did not sync that setting into the .JSON. Is this expected @jayair ? ``` { "$schema": "https://opencode.ai/config.json", "autoupdate": true, "experimental": { "openTelemetry": false, }, "share": "disabled", "disabled_providers": ["opencode"], } ``` <img width="1208" height="603" alt="Image" src="https://github.com/user-attachments/assets/40adbc35-7df3-4bc7-8124-f8490c91f4be" /> What's happening here? Is OC Desktop checking for updates due to incorrectly merging the two settings? Or is there another setting I'm missing?
Author
Owner

@paralin commented on GitHub (Feb 15, 2026):

Here try this: https://github.com/paralin/opencode/commit/2cd626487fe8d2f138bd567881f1c7796cca3d3d adds fully offline mode.

@paralin commented on GitHub (Feb 15, 2026): Here try this: https://github.com/paralin/opencode/commit/2cd626487fe8d2f138bd567881f1c7796cca3d3d adds fully offline mode.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3548