S-SCOTTEK← HomepageNewsGuidesBuyingTeamForumSupportlog in · sign up
local-ai 2026-10-07

OpenCode Guide: Install, Setup, Use cases.

This guide is a companion to the video, which is the starting point for everything below. Watch the video first for the on-screen flow, then use this article for the docs links and safe-setup notes.

What follows keeps two layers separate. Anything described as from the video comes from the video description and auto-subtitles. Anything described as added research was verified in the official docs or repo and is linked inline.

What the video covers

From the video, the walkthrough presents OpenCode as an open-source AI coding agent and harness that runs in the terminal, a desktop app, or an IDE extension. The presenter points it at a project, picks a model, and describes the change wanted.

Install OpenCode

Added research confirms the fastest documented install is the official script in the official docs intro, which also lists Node, Homebrew, Arch, and Windows routes. From the video, the presenter advises downloading or paging through the script before running it, then checking the recorded release because commands and defaults change over time.

Connect cloud and local models

From the video, first-run setup uses /connect to add provider keys, with OpenCode Zen presented as the tested default for newcomers. Added research confirms this flow on the providers page, where keys added through /connect are stored under ~/.local/share/opencode/auth.json.

Merged model config: remote defaults plus global, project, and managed files
Merged model config: remote defaults plus global, project, and managed files (Still from the walkthrough video.)

Project rules, modes, and safe permissions

From the video, project setup runs /init inside the repo so OpenCode can scan files, ask questions, and create or improve AGENTS.md. Added research confirms /init creates AGENTS.md in the project root in the official docs intro.

Running init to draft AGENTS.md, keeping project rules separate from global preferences
Running init to draft AGENTS.md, keeping project rules separate from global preferences (Still from the walkthrough video.)

Use cases and cautious next steps

From the video, the closing use cases are small debugging tasks, automated test generation, staged multi-step refactors, and supervised pair programming starting in Plan mode. Added research adds the repo as the source of truth for agents and building on top, at the OpenCode repo.

A custom test slash command built from frontmatter, prompt template, and shell output
A custom test slash command built from frontmatter, prompt template, and shell output (Still from the walkthrough video.)

Watch the walkthrough

Watch on YouTube