Start opencode in your project

getting started

// what it does

Running opencode with no arguments opens the terminal UI (TUI) rooted at the current working directory; pass a path to point it elsewhere. opencode reads project context — AGENTS.md, git state, opencode.json — from that root, so launch it from the repository you actually want it to work on.

// shell

$ opencode
$ opencode /path/to/project

// gotcha

opencode operates on the directory it was launched from, not the file open in your editor. Cd into the repo root first, or pass the path explicitly, so @-references and AGENTS.md resolve.

// resources