Answer: Use a local directory as a reference by setting its path in the references config, e.g. "design-system": { "path": "../design-system" }. Relative paths resolve from the directory containing the config file, and absolute and home-relative paths like ~/docs are supported. Status: Overdue (check was due 2026-11-20T13:37:19Z and has not succeeded) Entry: tool/opencode/settings/local-directory-reference Revision: 1 Digest: sha256:dad6ef1093675bb3 (changes whenever the content changes) Timeline: Created: 2026-11-13T13:31:19Z Last changed: 2026-11-13T13:31:19Z Last verified: 2026-11-19T13:37:19Z Next check: 2026-11-20T13:37:19Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of example path | ../design-system | [1] | 2026-11-19 relative path behavior | Relative paths resolve from the directory containing the config file. | [1] | 2026-11-19 absolute paths | Absolute paths are supported. | [1] | 2026-11-19 home-relative paths | ~/docs | [1] | 2026-11-19 shorthand example | ../docs | [1] | 2026-11-19 shorthand prefix rule | A shorthand string is a local path only when it starts with . , / , or ~ . | [1] | 2026-11-19 Sources: [1] opencode. "References | OpenCode". https://opencode.ai/docs/references/ Role: primary. Accessed: 2026-11-19T13:37:19Z Quote: ""path" : "../design-system"" (Supports: example path) Quote: "Relative paths resolve from the directory containing the config file." (Supports: relative path behavior) Quote: "Absolute paths are supported." (Supports: absolute paths) Quote: "Home-relative paths such as ~/docs are supported." (Supports: home-relative paths) Quote: ""docs" : "../docs"" (Supports: shorthand example) Quote: "A shorthand string is a local path only when it starts with . , / , or ~ ." (Supports: shorthand prefix rule) Snapshot SHA-256: c7d00f8bd3cada26d2179651cb9b423e30f0569c773b4907f81c5c9ca322cb02 (captured 2026-11-13T03:58:07Z) 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-13T13:31:19Z, so the values verified then were kept. Cross-check: not-available at 2026-11-19T13:37:19Z. No independent second source is configured for this entry Last successful check: 2026-11-19T13:37:19Z Last attempt: 2026-11-19T13:37:19Z Notes and limitations: Extracted automatically from a single official source (section "Local"). Related: 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/persist-proxy-for-service How do I make proxy environment variables persist for the opencode background service? 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/opencode/settings/jsonc-format-support Does opencode config support comments and trailing commas? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T13:31:19Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/settings/local-directory-reference/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/local-directory-reference POST: https://latestn.com/dispute/tool/opencode/settings/local-directory-reference with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/settings/local-directory-reference?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I use a local directory as a reference in opencode? Revision 1, last verified 2026-11-19T13:37:19Z. https://latestn.com/tool/opencode/settings/local-directory-reference (accessed 2026-11-21T09:50:30Z). @misc{LatestN_tool_opencode_settings_local_directory_reference_r1, title = {How do I use a local directory as a reference in opencode?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/settings/local-directory-reference}}, note = {Revision 1; digest sha256:dad6ef1093675bb3; last verified 2026-11-19T13:37:19Z; accessed 2026-11-21T09:50:30Z} } 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/local-directory-reference