Opencode_
Docs Recipes News
◇ Learn Guided routes from install to team rollout ⚖ Compare vs Cursor, Claude Code, Cline ◎ Ecosystem Plugins, MCP servers, SDKs ⚙ Source Code Architecture deep dive
GitHub
🇺🇸 English 🇨🇳 简体中文 🇯🇵 日本語 🇰🇷 한국어
Docs Recipes News Learn Compare Ecosystem Source Code GitHub ↗
$ npm i -g opencode
  1. ~/Home
  2. Source Code

Source Code Analysis

Deep dive into the architecture and core modules of OpenCode.

New here? Follow the bottom-up learning path — 8 chapters from foundation to interface.

Start the guided course →

Foundation

1

Config

→

Configuration management, layered strategy

Read →
2

Provider

→

Interface design, model routing, fallback strategy

Read →
3

Permission

→

Permission system, security model

Read →

Integration

4

MCP

→

Model Context Protocol, toolchain integration

Read →
5

LSP

→

Language Server Protocol integration, code intelligence

Read →

Core

6

Agent

→

Decision loop, tool calling, context management

Read →

Interface

7

Command

→

Slash command system, command registration

Read →
8

CLI

→

Command-line entry point, interaction loop

Read →
Opencode_

The Open Source AI Coding Agent.

$ npm i -g opencode

Get Started

Quick StartInstallationLearnIntroduction

Explore

Recipes· Content & Expression· Knowledge & Workspace· Browser & Frontend Automation· Design, Collaboration & DevOps· Mobile & Personalized Workspace· Developer Tools & DebuggingNewsChangelogCompare

Ecosystem

EcosystemPluginsMCP ServersSDKSource CodeCustom Skills

Community

GitHubDiscordX (Twitter)Blog

© 2026 Anomaly Co. Open Source (Apache 2.0).

English简体中文日本語한국어