OpenCode setup: permissions, MCP and model switching
Follow OpenCode desktop setup, a Context7 documentation query and a seating planner build with a model switch after the first algorithm fails.
Player not loading? Watch on YouTube
The presenter uses OpenCode's desktop app to build a wedding seating planner. The workflow uses provider connections; local model inference is not demonstrated.
Setup covers opening a project, creating AGENTS.md with /init and configuring opencode.json. The presenter allows npm and git, blocks rm and restricts .env access. A blocked rm command later illustrates that chosen policy. Plan mode produces a plan before Build mode edits the project.
The presenter reverts a message and its file changes, then opens a public session link created with /share. He explains /unshare without demonstrating it. He also configures Context7 through MCP and queries React Router 7 documentation. Browser authorization connects his existing ChatGPT subscription without an API key.
The model identified as DeepSeek V4 Flash handles planning and scaffolding. The first localhost launch has no UI; a follow-up request fixes it. The initial auto-seating algorithm splits households and seats keep-apart pairs together. The presenter switches to the model he calls GPT-6 Astra for a household backtracking solver, then reports that the displayed chart passes its checks. That result applies to the demonstrated example; it does not establish general solver correctness or model superiority.