// 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-manageruv
uv tool install magent-multi-ai-agents-managerfrom 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-managerScan projects and write a config
On first run, magent scans your history and writes `magent.config.json`. Run `magent --init` any time to rescan.
magentRegister 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 doctorResources
- Docs home — https://magent.now
- Install guide — https://magent.now/install
- FAQ — https://magent.now/faq
- llms.txt — https://magent.now/llms.txt
- GitHub repository — https://github.com/DevinoSolutions/magent-multi-ai-agents-manager
- PyPI package — https://pypi.org/project/magent-multi-ai-agents-manager
- Report an issue — https://github.com/DevinoSolutions/magent-multi-ai-agents-manager/issues