Disable Telemetry
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" }
}
}
}
}
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.
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 ok, but why can't it be disabled? with http://localhost:9292/v1/models I already have the local models list
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?
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
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)
Yeah there are a few steps involved.
But for organizations we help set this up through: https://opencode.ai/enterprise