OpenCode Learn
GitHub

🌱 起步

快速入门学习路径常见问题

🏗️ 架构与协议

系统架构
核心概念
ACPLSPMCP

🧠 核心内幕

Internals
ACP ImplementationAgentBusCLIConfigLSP ImplementationMCP ImplementationPermissionProjectProviderPtyServerSessionShareSkillSnapshotToolUtilities

🔄 关键流程

Flows
Agent LifecycleError HandlingPermission FlowPlugin LoadingSnapshot RollbackState SyncTool Execution

📦 源码包分析

Packages
Opencode
01 Agents And Permissions02 CLI Mastery03 Tools And Capabilities04 Extensions Protocols

🍳 实战指南

Cookbook
01 Create Custom Agent02 Integrate MCP Server03 Debug Session

Concepts

本章节包含以下文档:

  • ACP
  • LSP
  • MCP