Local OpenCode documentation reference (latest). Use when asked about OpenCode AI coding agent, agents, skills, tools, configuration, CLI, TUI, IDE integration, or MCP servers.
OpenCode is an open source AI coding agent available as a terminal interface (TUI), desktop app, IDE extension, or web app. This package contains the full official documentation.
contents/ # All 36 docs in flat structure
āāā index.mdx # Getting started
āāā cli.mdx # CLI reference
āāā config.mdx # Configuration
āāā tui.mdx # Terminal UI
āāā agents.mdx # Sub-agents
āāā skills.mdx # Skills system
āāā tools.mdx # Built-in tools
āāā mcp-servers.mdx # MCP servers
āāā providers.mdx # AI providers
āāā models.mdx # Model selection
āāā rules.mdx # Agent rules
āāā permissions.mdx # Permissions
āāā plugins.mdx # Plugin system
āāā sdk.mdx # JS/TS SDK
āāā ... # (36 files total, see TOC.md)
| Topic | Key Files |
|---|---|
| Getting started / installation | contents/index.mdx |
| CLI commands and flags | contents/cli.mdx, contents/commands.mdx |
| Configuration (opencode.json) | contents/config.mdx |
| Terminal UI (TUI) | contents/tui.mdx, contents/keybinds.mdx |
| Web interface | contents/web.mdx |
| IDE / editor integration | contents/ide.mdx, contents/acp.mdx |
| Agents and sub-agents | contents/agents.mdx |
| Skills system | contents/skills.mdx |
| Tools (built-in and custom) | contents/tools.mdx, contents/custom-tools.mdx |
| MCP servers | contents/mcp-servers.mdx |
| AI providers and models | contents/providers.mdx, contents/models.mdx, contents/zen.mdx |
| Rules / agent instructions | contents/rules.mdx |
| Permissions and policies | contents/permissions.mdx, contents/policies.mdx |
| Project references | contents/references.mdx |
| Plugin development | contents/plugins.mdx |
| SDK (JavaScript/TypeScript) | contents/sdk.mdx |
| Server / headless mode | contents/server.mdx |
| Sharing sessions | contents/share.mdx |
| LSP integration | contents/lsp.mdx |
| Formatters | contents/formatters.mdx |
| Themes | contents/themes.mdx |
| Network / proxy | contents/network.mdx |
| GitHub / GitLab integration | contents/github.mdx, contents/gitlab.mdx |
| Windows / WSL setup | contents/windows-wsl.mdx |
| Troubleshooting | contents/troubleshooting.mdx |
| Enterprise (SSO, gateway) | contents/enterprise.mdx |
| Ecosystem / community plugins | contents/ecosystem.mdx |
Use this skill when the user asks about:
TOC.md for complete file listingcontents/{filename}.mdx