Answer: Pass a directory to opencode to work in a different project, for example: opencode ~/code/my-project. Status: Check failed Entry: tool/opencode/commands-and-shortcuts/open-project-directory Revision: 1 Digest: sha256:9f99cbe9870e3fb6 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:56:08Z Last changed: 2026-11-13T03:56:08Z Last verified: 2026-11-17T14:11:04Z Last attempt: 2026-11-20T13:44:54Z (failed) Next check: 2026-11-20T14:44:54Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of command | opencode ~/code/my-project | [1] | 2026-11-17 Sources: [1] opencode. "Intro | OpenCode". https://opencode.ai/docs/cli/ Role: primary. Accessed: 2026-11-17T14:11:04Z Quote: "Pass a directory to work in a different project: Terminal Copy Copied Failed opencode ~/code/my-project" (Supports: command) Snapshot SHA-256: c8e3e93ab10bf01d6972e9cde055b5849d0038aecd1de0e51620794ba0607f44 (captured 2026-11-13T03:56:06Z) 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:56:08Z, so the values verified then were kept. Cross-check: not-available at 2026-11-17T14:11:04Z. No independent second source is configured for this entry Last successful check: 2026-11-17T14:11:04Z Last attempt: 2026-11-20T13:44:54Z (failed) Notes and limitations: Extracted automatically from a single official source (section "Intro"). Related: https://latestn.com/tool/opencode/commands-and-shortcuts/rollback-shortcuts What keyboard shortcuts does opencode use to stage or cancel a rollback? https://latestn.com/tool/opencode/commands-and-shortcuts/run-non-interactive-prompt How do I run a single opencode prompt without opening the interactive interface? https://latestn.com/tool/opencode/commands-and-shortcuts/run-shell-command How do I run a shell command in opencode TUI? https://latestn.com/tool/opencode/commands-and-shortcuts/disable-keybinding How do I disable a keybinding in opencode? https://latestn.com/tool/opencode/commands-and-shortcuts/insert-new-line How do I insert a new line in the opencode TUI prompt? https://latestn.com/tool/opencode/commands-and-shortcuts/mini-interface How do I start opencode's minimal interface instead of the full TUI? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T13:38:34Z | check-failed | Extraction did not pass verification: section "Intro" not found in the source (the page may have been reorganized) | — 2026-11-13T03:56:08Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/commands-and-shortcuts/open-project-directory/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/commands-and-shortcuts/open-project-directory POST: https://latestn.com/dispute/tool/opencode/commands-and-shortcuts/open-project-directory with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/commands-and-shortcuts/open-project-directory?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I open opencode in a different project directory? Revision 1, last verified 2026-11-17T14:11:04Z. https://latestn.com/tool/opencode/commands-and-shortcuts/open-project-directory (accessed 2026-11-21T09:58:06Z). @misc{LatestN_tool_opencode_commands_and_shortcuts_open_project_directory_r1, title = {How do I open opencode in a different project directory?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/commands-and-shortcuts/open-project-directory}}, note = {Revision 1; digest sha256:9f99cbe9870e3fb6; last verified 2026-11-17T14:11:04Z; accessed 2026-11-21T09:58:06Z} } 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/commands-and-shortcuts/open-project-directory