0:00
32:06
32:06

OpenCode Tutorial for Beginners: Setup, Agents, Skills & MCP

Tech

Visit sintra.ai/leonvanzyl or use my promo code leonvanzyl at checkout to receive limited time offer of 72% off on all plans 🚀 Free resources: source code, prompts, workflows + peer discussion https://skool.com/leonvanzyl 🧪 Agentic Labs: AI coding courses, live Q&A, weekly builder challenges, direct access to me + a serious builder community https://skool.com/agentic-labs OpenCode is the open source coding agent that is quickly becoming a serious alternative to Claude Code. In this opencode tutorial, you will learn how to install OpenCode, connect free AI models through OpenCode Zen or premium providers like OpenAI, and master advanced features including agent skills, sub agents, MCP servers, and background agents. ⏱️ CHAPTERS: 00:00 - OpenCode intro and overview 00:39 - Installing OpenCode in seconds 01:25 - Connecting providers and OpenCode Zen 02:20 - Free AI coding models walkthrough 03:46 - Scaffolding a Next js project 04:55 - Subscriptions vs API keys 06:00 - Connecting OpenAI and GPT 5 07:30 - Installing agent skills from skills sh 10:30 - AGENTS md memory file setup 13:00 - Sub agents and context window protection 15:30 - Design system for consistent UI 15:50 - Sponsor message 18:00 - Building the AI Project Planner app 22:30 - Saving plans for future sessions 24:30 - Creating custom sub agents 28:30 - Playwright MCP server setup 30:30 - Auto testing the app with browser MCP Business & sponsorship enquiries: [email protected] #opencode #agenticcoding

ADVERTISEMENT

Comments 63

Sign in to join the conversation

Sign in
utkarsh.kalita
utkarsh.kalita 1 week, 3 days ago

🎁 My FREE 7 Day AI Builder Challenge - learn my RAMP workflow and ship a real app in a week 👇 /leonvanzyl

J
jilllewis330 1 week, 5 days ago

i cannot paste zen key on opencode

R
rebecca_anderson 2 weeks ago

After installation it is saying genrate api key..what to do

gaelhenrique_farias
gaelhenrique_farias 2 weeks ago

You've nailed this tutorial big time. I'm sold.

gerolfechoing17
gerolfechoing17 2 weeks, 1 day ago

the curl command installed it into my WSL2 Linux when executed from the powershell terminal in windows... I see some others below have the same issues, perhaps the installer has been changed since this video was created? I deleted the unwanted wsl2 folders and .bashrc edit and tried again with CMD but it did the same thing again. Testing it with the 'opencode' command immediately fails (of course) because it isn't in the windows path. Rewatching your installation precisely, what you show doesn't work anymore on an unmodified windows 11 pro desktop. EDIT: use the npm install instead npm i -g opencode-ai then the rest of this video works as shown.

J
joe_hammond 2 weeks, 2 days ago

Kimi / Deepseek give you 90% of capabilities of SOTA models from OpenAI or Anthropic. at less than 1/10 of price. Why would anyone use expensive models?

S
suzanneshadow59 2 weeks, 3 days ago

"Keep responses concise and to the point - unless the user asks otherwise" I don't use this, because in opencode, deepseek throws out every little detail of thinking and it helps me work though how he got his result, reverse engineering automobile ecu firmware. I can't stand how useless Antigravity IDE is compared to opencode. It's hard to go back. I will not be renewing my google sub.

K
kristin.ford 2 weeks, 4 days ago

My opencode runs continuously even after answering a simple convo, when I send it hi it replies with a single line and then and then keeps on doing some shit in the name compaction how to stop this or fix this

N
nicholas_bell 2 weeks, 6 days ago

Haha, your programming stack is literally the definition of vulnerabilities, the attack surface for your choices is a black hats dream! You could not have chosen worse tools.

L
lucieadam19 2 weeks, 6 days ago

Great breakdown

F
franklinvelvet77 3 weeks, 2 days ago

Aweh oom

G
garry.hayes 3 weeks, 2 days ago

I'm here for the content, and the fond memories of South African accents!

G
gabriela.miranda 3 weeks, 4 days ago

Grazie

J
juancarlos.rolón 3 weeks, 6 days ago

My friend you gave a lot and so much more. Thank you for sharing that knowledge and incredible workflow. You video was recommended by Opencode when I asked for a good video to learn the ways of the force in OpenCode. You rock!!! and OpenCode rocks!!!

M
maytemarroquín719 3 weeks, 6 days ago

So cool thanks man

anel.valdez
anel.valdez 4 weeks ago

Thank you for the tutorial. But I would like to know if it's possible to run "parallel sub-agents" in Opencode, that is, asynchronous sub-agents that run and leave the prompt free while executing different tasks, instead of waiting in a queue. It would be like the "&" at the end of a Bash command line in Linux. Greetings from Brazil.

maanaszachariah60
maanaszachariah60 4 weeks, 2 days ago

What do you think about Kilo Code + VS Code + Ollama ?

melanie.campbell
melanie.campbell 4 weeks, 2 days ago

Thanks Leon, this is really a great walk through - you cover the parts that developers really care about.

A
amanda.matthews 1 month ago

I instantly recognized my home country's accent. RSA

C
corinne.daniel 1 month ago

Sir how to paste prompt to open code