OpenCode: The Complete Guide to the Open-Source AI Coding Agent

Use OpenCode from start to finish. Collaborate with AI inside your terminal, configure models, build custom commands, and extend OpenCode with tools and MCP integrations.

Beginner

11 Lessons

2h

Updated this week

Use OpenCode from start to finish. Collaborate with AI inside your terminal, configure models, build custom commands, and extend OpenCode with tools and MCP integrations.

AI-POWERED

Explanations

AI-POWERED

Explanations

This course includes

17 Playgrounds

This course includes

17 Playgrounds

Course Overview

OpenCode turns AI coding from a disconnected chat into an agent that works directly inside your codebase. Instead of copying snippets back and forth, you’ll learn how to collaborate with an AI coding agent that can read files, run commands, and make real changes while you stay in control. You’ll start with the basics: how OpenCode works, how to reference files, and how to run shell commands to inspect and update a repository. Next, you’ll use slash commands to set context, move faster, and undo changes whe...Show More

What You'll Learn

A clear understanding of what OpenCode is and how an open-source AI coding agent differs from chat-based coding assistants when working inside code repositories

Hands-on experience using OpenCode’s core workflow, including referencing files, running shell commands, and applying slash commands to control context and undo changes

Strong skills in planning reliable code changes with Plan mode vs. Build mode, separating reasoning from execution to reduce mistakes and improve code quality

The ability to safely operate OpenCode tools by configuring permissions and controlling what the agent can access across files, commands, and system resources

Working knowledge of extending OpenCode through custom commands and custom tools, enabling repeatable automation and project-specific AI workflows

Hands-on experience configuring the OpenCode ecosystem, including switching between cloud and local models, enforcing code quality with formatters, teaching agent skills, and integrating external services through MCP servers

What You'll Learn

A clear understanding of what OpenCode is and how an open-source AI coding agent differs from chat-based coding assistants when working inside code repositories

Show more

Course Content

1.

Foundations and Core Workflow

Discover OpenCode’s features, commands, and modes for efficient AI-assisted coding.
2.

Customization and Architecture

Explore OpenCode’s tools, custom commands, and model configurations for enhanced coding efficiency.
3.

Advanced Integrations and Extensions

Enhance coding efficiency and collaboration with OpenCode's features and integrations.

Course Author

Trusted by 1.4 million developers working at companies

Anthony Walker

@_webarchitect_

Emma Bostian 🐞

@EmmaBostian

Evan Dunbar

ML Engineer

Carlos Matias La Borde

Software Developer

Souvik Kundu

Front-end Developer

Vinay Krishnaiah

Software Developer

Eric Downs

Musician/Entrepeneur

Kenan Eyvazov

DevOps Engineer

Anthony Walker

@_webarchitect_

Emma Bostian 🐞

@EmmaBostian

Hands-on Learning Powered by AI

See how Educative uses AI to make your learning more immersive than ever before.

Instant Code Feedback

Evaluate and debug your code with the click of a button. Get real-time feedback on test cases, including time and space complexity of your solutions.

AI-Powered Mock Interviews

Adaptive Learning

Explain with AI

AI Code Mentor