Does OpenCode (OpenCode Models gateway (formerly OpenCode Zen)) train on your code?
Anomaly (OpenCode) · OpenCode Models gateway (formerly OpenCode Zen) · checked 2026-11-23
Paid models are ZDR at the provider; free ones may train. OpenCode's own policy is vague.
Trains on code
Not published
Default
OpenCode Models (the gateway formerly called OpenCode Zen; renamed in OpenCode's docs as of Nov 2, 2026) providers follow zero-retention and no-training, EXCEPT listed free models (as of Nov 23, 2026: Big Pickle and Flint 40B Free, whose data may be used to improve the model; Tidepool Alpha Free, new this week, and Iceman Free, whose data is retained and used to improve the model; plus NVIDIA free endpoints Nemotron 3.5 Lightning Free and Nemotron 3.5 Super VL Free, which log use to improve NVIDIA products). Inkling 2 Small Free, Nemotron 3 Ultra Free, LongCat 2.5 Free, MiniMax M3.1 Flash Free and GLM-5.3-Flash Free are no longer listed, and MiMo-V2.6-Flash Free was dropped from the exceptions list. Free models listed as zero-retention and no-training: DeepSeek V4.1 Flash Free and Hy4 flash Free. OpenCode's own use of prompts isn't stated; its privacy policy lists prompts as collected and 'Improving the Services' as a purpose.
How to opt out
Use paid OpenCode Models (formerly Zen) models, not the free ones listed as exceptions. To hide free models entirely, set OPENCODE_DISABLE_FREE_MODELS=1 (documented on the Zen and Models docs pages).
Retention
Providers: zero retention, except some free models (e.g. Flint 40B Free and Beam Free: 30 days; Iceman Free and Tidepool Alpha Free: retained, period not stated), OpenAI, Anthropic and xAI APIs (30 days) and Google APIs (up to 55 days for abuse monitoring). OpenCode's privacy policy says prompts are passed through to the upstream provider and not stored, except by OpenCode-hosted agents (sessions deleted 30 days after last activity). Other personal data: 'as long as necessary'.
Telemetry
Not published.
Disable telemetry
Not published.
Zero data retention
partial · Provider-side ZDR on most models.
Offline / local model
no · Hosted gateway.
Self-hostable
no · n/a
Score
19/100 · training 8/40 · retention 6/25 · offline 0/20 · telemetry 5/15
Classes: training Not published · retention Not published · telemetry Not published · offline no
Not published (not found in the vendor's official sources)
OpenCode's own training use of prompts, telemetry_sent
Notes
OpenCode's Nov 9, 2026 privacy policy adds hosted agents (OpenCode Console agents in Slack, GitHub, Discord, email or the Console), which store session content, sandbox files and tool results until 30 days after the last activity. That's a separate product from the Models gateway and isn't scored here.
The opencode.ai/zen landing page now says you can choose whether any model can train on your data, but OpenCode's docs don't describe that setting yet, so it isn't scored.