Answer: Installed builds write logs to ~/.local/share/opencode/log/opencode.log; follow the log while reproducing the problem with tail -f ~/.local/share/opencode/log/opencode.log. Each line includes a process run ID and a role field, and you can use role=server for session, provider, plugin, permission, and tool activity. Status: Overdue (check was due 2026-11-20T13:37:33Z and has not succeeded) Entry: tool/opencode/troubleshooting/read-logs Revision: 1 Digest: sha256:24ec342261906c5e (changes whenever the content changes) Timeline: Created: 2026-11-13T03:58:20Z Last changed: 2026-11-13T03:58:20Z Last verified: 2026-11-19T13:37:33Z Next check: 2026-11-20T13:37:33Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of log file path | ~/.local/share/opencode/log/opencode.log | [1] | 2026-11-19 follow command | tail -f ~/.local/share/opencode/log/opencode.log | [1] | 2026-11-19 line fields | a process run ID and a role field | [1] | 2026-11-19 server role filter | role=server | [1] | 2026-11-19 grep role command | grep 'role=server' ~/.local/share/opencode/log/opencode.log | [1] | 2026-11-19 grep run command | grep 'run=8fc3b1d5' ~/.local/share/opencode/log/opencode.log | [1] | 2026-11-19 Sources: [1] opencode. "Troubleshooting | OpenCode". https://opencode.ai/docs/troubleshooting/ Role: primary. Accessed: 2026-11-19T13:37:33Z Quote: "Installed builds write logs to: Copy Copied Failed ~/.local/share/opencode/log/opencode.log" (Supports: log file path) Quote: "tail -f ~/.local/share/opencode/log/opencode.log" (Supports: follow command) Quote: "Each line includes a process run ID and a role field." (Supports: line fields) Quote: "Use role=server for session, provider, plugin, permission, and tool activity." (Supports: server role filter) Quote: "grep 'role=server' ~/.local/share/opencode/log/opencode.log" (Supports: grep role command) Quote: "grep 'run=8fc3b1d5' ~/.local/share/opencode/log/opencode.log" (Supports: grep run command) Snapshot SHA-256: 85ba446ac5eebf200b39205d01942bf2de8291207d41e80db5840279bca1e233 (captured 2026-11-13T03:58:18Z) 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-13T03:58:20Z, so the values verified then were kept. Cross-check: not-available at 2026-11-19T13:37:33Z. No independent second source is configured for this entry Last successful check: 2026-11-19T13:37:33Z Last attempt: 2026-11-19T13:37:33Z Notes and limitations: Extracted automatically from a single official source (section "Read logs"). Related: https://latestn.com/tool/opencode/troubleshooting/verify-network-config How do I verify that opencode's network and proxy configuration is working? https://latestn.com/tool/opencode/troubleshooting/verify-ported-plugin How do I verify a ported opencode plugin works in V2? https://latestn.com/tool/opencode/troubleshooting/web-ui-over-ssh How do I access the opencode web UI over SSH? https://latestn.com/tool/opencode/troubleshooting/check-background-service-status How do I check the status of the opencode background service? https://latestn.com/tool/opencode/troubleshooting/loopback-no-proxy-requirement Why does opencode require loopback addresses in NO_PROXY when a proxy is configured? https://latestn.com/tool/opencode/troubleshooting/raycast-free-models-403 Why do free-tier chat models return HTTP 403 in Raycast with OpenCode? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:58:20Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/troubleshooting/read-logs/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/troubleshooting/read-logs POST: https://latestn.com/dispute/tool/opencode/troubleshooting/read-logs with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/troubleshooting/read-logs?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I read opencode logs to debug an issue? Revision 1, last verified 2026-11-19T13:37:33Z. https://latestn.com/tool/opencode/troubleshooting/read-logs (accessed 2026-11-21T09:52:52Z). @misc{LatestN_tool_opencode_troubleshooting_read_logs_r1, title = {How do I read opencode logs to debug an issue?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/troubleshooting/read-logs}}, note = {Revision 1; digest sha256:24ec342261906c5e; last verified 2026-11-19T13:37:33Z; accessed 2026-11-21T09:52:52Z} } 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/troubleshooting/read-logs