Skip to content

Latest commit

 

History

History

README.md

layout title nav_order has_children format_version
default
OpenCode Tutorial
100
true
v2

OpenCode Tutorial: Open-Source Terminal Coding Agent at Scale

Learn how to use anomalyco/opencode to run terminal-native coding agents with provider flexibility, strong tool control, and production-grade workflows.

GitHub Repo License Docs

Why This Track Matters

OpenCode is one of the fastest-growing open-source coding agents. It combines a powerful TUI, provider-agnostic model support, and a client/server architecture that can scale beyond a single terminal session.

This track focuses on:

  • building reliable coding-agent workflows in the terminal
  • controlling tool execution, permissions, and safety boundaries
  • integrating LSP/MCP capabilities into real developer loops
  • operating OpenCode for teams and production environments

Current Snapshot (auto-updated)

Mental Model

flowchart LR
    A[Developer Task] --> B[OpenCode Client]
    B --> C[Planning and Agent Loop]
    C --> D[Tools and File Ops]
    D --> E[Validation and Iteration]
    E --> F[Patch and Commit Ready Output]
Loading

Chapter Guide

Chapter Key Question Outcome
01 - Getting Started How do I install and run OpenCode fast? Stable local baseline
02 - Architecture and Agent Loop How does OpenCode orchestrate coding tasks internally? Strong execution mental model
03 - Model and Provider Routing How do I configure providers and routing safely? Reliable model strategy
04 - Tools, Permissions, and Execution How do I control shell/file tools securely? Safer automation boundaries
05 - Agents, Subagents, and Planning How do build/plan/general agent modes differ? Better task decomposition decisions
06 - Client/Server and Remote Workflows How do I run beyond a single local session? Remote-capable operating model
07 - Integrations: MCP, LSP, and Extensions How does OpenCode fit broader toolchains? Integration strategy
08 - Production Operations and Security How do I run OpenCode in teams and CI safely? Production runbook baseline

What You Will Learn

  • how to run OpenCode as a daily driver coding agent
  • how to tune model/provider and tool execution behavior
  • how to integrate OpenCode into MCP/LSP-enabled development stacks
  • how to operate secure, repeatable coding-agent workflows in production

Source References

Related Tutorials


Start with Chapter 1: Getting Started.

Navigation & Backlinks

Full Chapter Map

  1. Chapter 1: Getting Started
  2. Chapter 2: Architecture and Agent Loop
  3. Chapter 3: Model and Provider Routing
  4. Chapter 4: Tools, Permissions, and Execution
  5. Chapter 5: Agents, Subagents, and Planning
  6. Chapter 6: Client/Server and Remote Workflows
  7. Chapter 7: Integrations: MCP, LSP, and Extensions
  8. Chapter 8: Production Operations and Security

Generated by AI Codebase Knowledge Builder