Installing OpenCode Config Agent means placing a set of configuration files — agents, prompts, skills, plugins, and MCP server definitions — into the directory that OpenCode reads at startup (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/lnardev/opencode-config-agent/llms.txt
Use this file to discover all available pages before exploring further.
~/.config/opencode/). Installation covers cloning the repo, installing plugin dependencies, optionally setting up the Engram binary for persistent memory, and verifying that all agents and MCP servers load correctly. This guide covers both a fresh install and merging into an existing OpenCode config.
Prerequisites
The following tools must be available before you install:| Tool | Requirement | Notes |
|---|---|---|
| OpenCode | Required | The AI terminal this config runs inside |
| Node.js | 18+ | For installing plugin dependencies via npm |
| Bun | Optional (recommended) | Faster alternative to npm — bun.sh |
| Git | Required | For cloning and pulling updates |
| Engram binary | Optional | Required for persistent memory across sessions — see MCP Server Setup below |
Installation Methods
- Fresh Install
- Existing Config
If you don’t have anything in Then install dependencies:That’s it. The next time you run
~/.config/opencode/ yet, clone directly into that directory:opencode in any project, the agents and MCP servers will be loaded automatically.Install Plugin Dependencies
Theplugins/ directory contains TypeScript plugins that depend on npm packages. Install them from the config directory:
package.json:
Verify Installation
Once dependencies are installed, open OpenCode inside any project and confirm the agents loaded correctly:sdd-onboard agent responds with a guided walkthrough prompt, your installation is working. If you see an error or an unrecognized command, check that:
- The
prompts/directory was copied correctly and contains the SDD prompt files - The
opencode.jsonhas theagentblock with all SDD agents defined - Plugin dependencies were installed successfully (
node_modules/exists in~/.config/opencode/)
MCP Server Setup
OpenCode Config Agent ships with three MCP servers pre-configured inopencode.json. Their setup requirements vary:
context7 — Remote, No Setup Required
context7 is a remote MCP server that provides up-to-date library documentation. It’s already configured with its URL and requires no local installation:
Engram — Requires Local Binary
engram is the persistent memory MCP server. It runs as a local process and requires the engram binary to be installed and available on your PATH.
Install on macOS via Homebrew:
/opt/homebrew/bin/engram (the default Homebrew location on Apple Silicon). If your Homebrew prefix is different, update the path in opencode.json:
/opt/homebrew/bin/engram in opencode.json with the output of that command.
Engram is optional but strongly recommended. Without it, the Tony Stark agent’s mandatory memory protocol has nowhere to persist data, and the SDD orchestrator defaults to
none artifact store mode — returning results inline only, with no cross-session recovery.chrome-devtools — Runs via npx, No Setup Required
Thechrome-devtools MCP server runs on-demand via npx and requires no global installation: