Skip to content

Disable Telemetry #5554

Closed
Closed

Description

@grigio
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" }
      }
    }
  }
}

Activity

  1. github-actions commented on Dec 15, 2025

    @github-actions
    Contributor

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

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

  2. rekram1-node commented on Dec 15, 2025

    @rekram1-node
    Contributor

    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)

  3. grigio commented on Dec 15, 2025

    @grigio
    Author

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

  4. rekram1-node commented on Dec 15, 2025

    @rekram1-node
    Contributor

    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?

  5. grigio commented on Dec 15, 2025

    @grigio
    Author

    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

  6. Mastermjr commented on Dec 19, 2025

    @Mastermjr

    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)

  7. jayair commented on Dec 19, 2025

    @jayair
    Contributor

    Yeah there are a few steps involved.

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

  8. tredondo commented on Feb 12, 2026

    @tredondo

    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?

  9. paralin commented on Feb 15, 2026

    @paralin
    Contributor

    Here try this: paralin@2cd6264 adds fully offline mode.

  10. github-actions commented on Apr 17, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  11. grigio commented on Apr 17, 2026

    @grigio
    Author

    is it fixed now?

  12. Ben-Nupa commented on Sep 24, 2026

    @Ben-Nupa

    Is there some kind of telemetry in OpenCode v2 ? According to the docs https://opencode.ai/v2/docs/migrate-v1/ the config field openTelemetry is not supported. This is very important for apps requiring absolute privacy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions