OpenCode 2.0 tutorial: setup and local models with Ollama

Learn OpenCode 2.0 setup, shared sessions and Ollama configuration through a bill splitter app, with background reviews and a .env permission plugin.

Player not loading? Watch on YouTube

This OpenCode 2.0 tutorial uses a browser-based bill splitter to explain the open source coding assistant. The presenter covers upgrading an existing installation and installing the terminal client or desktop app on Windows, Mac and Linux. A session started in the terminal appears in the desktop app; the presenter also describes continuing it on a phone.

The workflow uses Beam to build the app and Big Pickle for a background review. Moving a development server task into the background lets the conversation continue. The presenter notes that users cannot message subagents directly. Code mode runs tool calls through scripts, demonstrated with Playwright MCP. A separate Git worktree holds light and dark mode changes before merging them into the main branch.

A generated TypeScript plugin requests permission before reading a .env file in the demonstration. The presenter also warns that free model prompts might be used for training; this is a caution from the speaker, not a verified policy statement.

The final section connects Ollama to OpenCode to run models locally. It covers downloading a model, enabling Ollama in model management and selecting the model. Hardware determines which model fits: the presenter says the example transcribed as "Queen 3.8" needs about 16 GB of VRAM and mentions smaller options. The speaker reports earlier discovery problems and says the demonstrated local setup can work offline.