OpenCode 2.0 tutorial: setup, agents and model costs

Build a tournament app with OpenCode 2.0, custom agents, skills and Playwright MCP, then compare reported model costs and review bugs.

Player not loading? Watch on YouTube

This course uses OpenCode 2.0's desktop app to build Bracket Night, a JavaScript tournament app. It covers file references, Steer and Queue follow-ups, Plan and Build, custom agents, skills and project rules. The demonstrated workflow uses connected model providers; it does not show local inference.

A read-only subagent finds a bug that advances players past unplayed matches, and Build fixes it. A later review finds that duplicate player names prevent matches from being played. The source does not show that bug being fixed. Playwright MCP runs locally and checks six-player seeding in a browser. The hosted DeepWiki MCP service answers a question about skill discovery.

For the same print-button request, the speaker reports 4 minutes 31 seconds for Big Pickle, 20 seconds and $0.02 for GLM 5.3 through OpenRouter, and 35 seconds for GPT-6 Luna through a ChatGPT plan. These are example results. The $0.02 is pay-as-you-go spending, not the cost of the subscription. Free model availability and data-training policies vary.

Undo requires Git and skips ignored files and very large new files. The push exercise stops because the project has no remote, so it does not verify the configured permission prompt. The speaker also explains that automatic permission acceptance bypasses requests set to ask.