Installation & Setup
@maestria/opencode adds an orchestrator, seven specialists, and shared workflow rules to OpenCode. Install it with the maestria CLI or add it to your OpenCode configuration.
Prerequisites
Section titled “Prerequisites”- OpenCode CLI (latest version)
- Node.js 22.12+ - Required for plugin resolution. Earlier versions are not supported.
Installation via CLI (Recommended)
Section titled “Installation via CLI (Recommended)”# Install the OpenCode pluginnpx maestria install opencode# Install the OpenCode pluginyarn dlx maestria install opencode# Install the OpenCode pluginpnpx maestria install opencode# Install the OpenCode pluginbunx maestria install opencode# Install the OpenCode plugindeno x maestria install opencode# Install the OpenCode pluginnlx maestria install opencode# Verify installationnpx maestria status# Verify installationyarn dlx maestria status# Verify installationpnpx maestria status# Verify installationbunx maestria status# Verify installationdeno x maestria status# Verify installationnlx maestria statusSee the CLI documentation for more commands and options.
Alternative: Manual setup
Install globally (all projects) or for the current project only:
opencode plugin @maestria/opencode@latest -gopencode plugin @maestria/opencode@latestOr add it manually to ~/.config/opencode/opencode.jsonc (global) or .opencode/opencode.jsonc (project-level):
{ "plugin": ["@maestria/opencode@latest"],}Restart OpenCode. The plugin installs from npm at session start, and agents and rules are ready immediately.
Verify Installation
Section titled “Verify Installation”Start a new OpenCode session. The 8 agents are ready for delegation via @ mention, and the global workflow rules are active in every prompt. Read When to use maestria before choosing @orchestrator.
Updating
Section titled “Updating”npx maestria update opencodeyarn dlx maestria update opencodepnpx maestria update opencodebunx maestria update opencodedeno x maestria update opencodenlx maestria update opencodeOpenCode does not auto-update plugins. Packages are cached in ~/.cache/opencode/packages/<name>@<version>/, and the registry is not consulted when a package is already cached. Re-run the install command with the same scope as the original install:
# If installed globallyopencode plugin @maestria/opencode@latest -g --force
# If installed at project levelopencode plugin @maestria/opencode@latest --forceUse --force to replace an existing config entry. To force a fresh install from npm, clear the cache first:
rm -rf ~/.cache/opencode/packages/@maestria/opencode*On Windows, use Remove-Item -Recurse -Force "$env:USERPROFILE\.cache\opencode\packages\@maestria\opencode*" (PowerShell) or rmdir /s /q "%USERPROFILE%\.cache\opencode\packages\@maestria" (CMD).
Uninstalling
Section titled “Uninstalling”OpenCode has no built-in command to remove a plugin. The maestria CLI can print the removal steps for your platform: run maestria uninstall opencode (see CLI uninstall).
To uninstall manually, remove the entry from the plugin array in your OpenCode config file:
{ "plugin": [ // Remove or comment out the line below: // "@maestria/opencode@latest", ],}Restart OpenCode. The @maestria/opencode agents and rules will no longer be available; other OpenCode plugins remain unaffected. You can also delete the cached package with rm -rf ~/.cache/opencode/packages/@maestria/opencode*.
Next Steps
Section titled “Next Steps”- Quick Start - Your first session with the plugin
- Browse the Agents - Detailed documentation for each agent