Answer: Yes, opencode config supports comments and trailing commas by using JSONC format. The text states that OpenCode supports JSON and JSONC, and to use JSONC when you want comments or trailing commas. Status: Confirmed Entry: tool/opencode/settings/jsonc-format-support Revision: 1 Digest: sha256:1e01d92ef69c1678 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:56:39Z Last changed: 2026-11-13T03:56:39Z Last verified: 2026-11-20T13:45:43Z Next check: 2026-11-21T13:45:43Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of supported formats | JSON and JSONC | [1] | 2026-11-20 when to use JSONC | comments or trailing commas | [1] | 2026-11-20 Sources: [1] opencode. "Config | OpenCode". https://opencode.ai/docs/config/ Role: primary. Accessed: 2026-11-20T13:45:43Z Quote: "OpenCode supports JSON and JSONC." (Supports: supported formats) Quote: "Use JSONC when you want comments or trailing commas." (Supports: when to use JSONC) Snapshot SHA-256: d03b055dad38e89a68db5764e6da7ba61ffbf573bfd2443c0350640f8718a8f5 (captured 2026-11-17T14:11:49Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-17T14:11:52Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:45:43Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:45:43Z Last attempt: 2026-11-20T13:45:43Z Notes and limitations: Extracted automatically from a single official source (section "Format"). Related: https://latestn.com/tool/opencode/settings/local-directory-reference How do I use a local directory as a reference in opencode? https://latestn.com/tool/opencode/settings/migrate-plugin-configuration How do I migrate an opencode plugin's configuration from V1 to V2? https://latestn.com/tool/opencode/settings/migrate-v1-config-to-v2 How do I migrate my opencode V1 configuration to V2? https://latestn.com/tool/opencode/settings/global-mcp-server How do I make an MCP server available in every opencode project? https://latestn.com/tool/opencode/settings/harness-base-urls What base URLs do I use to point a harness at the opencode Console gateway? https://latestn.com/tool/opencode/settings/inline-cli-config How do I apply opencode CLI settings from inline JSON? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:56:39Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/settings/jsonc-format-support/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/opencode/settings/jsonc-format-support POST: https://latestn.com/dispute/tool/opencode/settings/jsonc-format-support with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/settings/jsonc-format-support?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). Does opencode config support comments and trailing commas? Revision 1, last verified 2026-11-20T13:45:43Z. https://latestn.com/tool/opencode/settings/jsonc-format-support (accessed 2026-11-21T09:50:34Z). @misc{LatestN_tool_opencode_settings_jsonc_format_support_r1, title = {Does opencode config support comments and trailing commas?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/settings/jsonc-format-support}}, note = {Revision 1; digest sha256:1e01d92ef69c1678; last verified 2026-11-20T13:45:43Z; accessed 2026-11-21T09:50:34Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/opencode/settings/jsonc-format-support