// agent setup / opencode

Set up mAgent for OpenCode.

OpenCode is not a built-in mAgent tool, but any command on PATH can be registered as a custom tool and magent will launch + tile it per project like any other agent. There is no lifecycle-hook integration for it, so it gets launch + tiling only -- no live state and no session auto-resume.

What you get

  • Every project opens in its own terminal with OpenCode running, tiled with everything else
  • No live state in `magent watch` / `magent attention` -- OpenCode has no lifecycle hook to read from
  • No session auto-resume -- each relaunch starts a fresh OpenCode session

Install the CLI

Pick one.

pip
pip install magent-multi-ai-agents-manager
uv
uv tool install magent-multi-ai-agents-manager
from source
git clone https://github.com/DevinoSolutions/magent-multi-ai-agents-manager.git
cd magent-multi-ai-agents-manager
pip install -e .

Install the CLI

Install the magent CLI. No project changes needed -- it is a standalone tool.

pip install magent-multi-ai-agents-manager

Scan projects and write a config

On first run, magent scans your history and writes `magent.config.json`. Run `magent --init` any time to rescan.

magent

Register OpenCode as a custom tool

Map a name to the shell command that starts it under `settings.tools` in `magent.config.json`, then set that name as the `tool` on any project that should launch it.

"tools": { "opencode": "opencode" }

Verify

Run the environment doctor. It exits 1 on any failure.

magent doctor

Resources

← all agentsraw prompt.md →