Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1007 Bytes

opencode.md

File metadata and controls

24 lines (18 loc) · 1007 Bytes

OpenCode

A coding-agent harness that exposes a standard set of code-editing tools to the LLM.

make run_opencode merges the three config layers into /home/anvil/.config/opencode. Skills and commands come separately, through the asset pipeline.

opencode.json is merged by key (not file overwrite), so org-level MCP servers survive even when the repo layer also defines opencode.json.

You can also define MCP servers in a project-local .opencode/opencode.json — often the cleanest place to attach them to a specific repo:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "org-server": {
      "type": "remote",
      "url": "https://mcp.example.com",
      "enabled": true
    }
  }
}

opencode/opencode.json also supports an instructions array for global instruction files, which load in full — a SKILL.md listed there is in context for every session instead of loading on demand.