Answer: Set the theme and mode in your global CLI settings file at ~/.config/opencode/cli.json, using a "theme" object with "name" and "mode" keys, for example "name": "tokyonight" and "mode": "dark". Status: Confirmed Entry: tool/opencode/settings/theme-cli-json Revision: 2 Digest: sha256:9363de2cf110cf15 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:56:24Z Last changed: 2026-11-19T13:35:20Z (schema URL: — → https://opencode.ai/v2/cli.json) Last verified: 2026-11-20T13:45:16Z Next check: 2026-11-21T13:45:16Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of settings file path | ~/.config/opencode/cli.json | [1] | 2026-11-20 theme name example | tokyonight | [1] | 2026-11-20 theme mode example | dark | [1] | 2026-11-20 schema URL | https://opencode.ai/v2/cli.json | [1] | 2026-11-20 default theme | opencode | [1] | 2026-11-20 Sources: [1] opencode. "CLI theme | OpenCode". https://opencode.ai/docs/cli/theme/ Role: primary. Accessed: 2026-11-20T13:45:16Z Quote: "You can also set the theme and mode in your global CLI settings : ~/.config/opencode/cli.json" (Supports: settings file path) Quote: ""theme" : { "name" : "tokyonight" , "mode" : "dark" }" (Supports: theme name example, theme mode example) Quote: "{ "$schema" : "https://opencode.ai/v2/cli.json"" (Supports: schema URL) Quote: "The default theme is opencode ." (Supports: default theme) Snapshot SHA-256: 6244ffebcf1b4dd1937ec4d448f596ffc4baf071af39de53abae60d12984cf63 (captured 2026-11-18T13:38:48Z) 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-18T13:38:48Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:45:16Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:45:16Z Last attempt: 2026-11-20T13:45:16Z Notes and limitations: Extracted automatically from a single official source (section "Choose a theme"). Related: https://latestn.com/tool/opencode/settings/theme-mode How do I set the opencode theme mode to dark, light, or system? https://latestn.com/tool/opencode/settings/upgrade-from-integration-use How do I upgrade opencode policies from integration.use? https://latestn.com/tool/opencode/settings/warming-options How do I change the warming prompt, idle interval, or active window in opencode? https://latestn.com/tool/opencode/settings/snapshot-settings How do I configure snapshot settings in opencode? https://latestn.com/tool/opencode/settings/switch-workspaces How do I switch between workspaces in OpenCode Console? https://latestn.com/tool/opencode/settings/system-theme-colors What does the system theme and system mode do in opencode? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:35:20Z | changed | schema URL: — → https://opencode.ai/v2/cli.json | [1] 2026-11-13T03:56:24Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/settings/theme-cli-json/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/theme-cli-json POST: https://latestn.com/dispute/tool/opencode/settings/theme-cli-json with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/settings/theme-cli-json?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set the opencode theme and mode in the global CLI settings file? Revision 2, last verified 2026-11-20T13:45:16Z. https://latestn.com/tool/opencode/settings/theme-cli-json (accessed 2026-11-21T09:50:22Z). @misc{LatestN_tool_opencode_settings_theme_cli_json_r2, title = {How do I set the opencode theme and mode in the global CLI settings file?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/settings/theme-cli-json}}, note = {Revision 2; digest sha256:9363de2cf110cf15; last verified 2026-11-20T13:45:16Z; accessed 2026-11-21T09:50:22Z} } 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/theme-cli-json