

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
Not enough gems
Cost: 6 gems
1: Learn AI Coding
incomplete
2: Chat, Autocomplete, and Agents
incomplete
3: Installing OpenCode
incomplete
4: OpenCode Console
incomplete
5: The Unix Philosophy
incomplete
6: OpenCode Config
incomplete
7: CLI Config
incomplete
8: OpenCode Run
incomplete
9: GUI Clients
incomplete
10: Mobile Usage
incomplete
11: Remote Server
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
OpenCode is an open-source AI coding agent. It can read your repository, edit files, run commands, and use your local dev tooling to validate its own work.
If that sounds similar to Claude Code, Cursor, or Codex, that's because it is. They all do the same thing: let an LLM work inside a real software project instead of just chatting about one.
I've used Claude Code, Cursor, and Zed's in-editor agents. They're all in the same category, but I think the OpenCode team's taste, especially around UX, is the best.
OpenCode is:
In this course, we'll be working on "Sloperator," an interpreter for the SlopLang programming language. You'll use OpenCode to help you build Sloperator and learn about effective agentic AI usage. Sloperator is written in Python, but runs .slop files, which are text files containing SlopLang code.
Get OpenCode running in Sloperator.
From this lesson on, the panel that shows run/submit commands for the CLI will instead have copy-pastable prompts that you can give to your agent. Each prompt asks it to run the Boot.dev CLI on your behalf.
curl -fsSL https://opencode.ai/v2/install | bash
curl -fsSL https://docs.astral.sh/uv/install.sh | bash
opencode --version
uv --version
uv python install 3.13
git clone https://github.com/bootdotdev/learn-ai-coding-starter.git
cd learn-ai-coding-starter
uv sync
Use uv to run examples/hello.slop using the sloperator.py interpreter. Don't change any files.
Copy the Submit prompt from the test panel, paste it into OpenCode's chat, and send it. Approve the command if asked.