imbue-mngr-opencode
Plugin that registers the opencode agent type for mngr.
OpenCode is an open-source terminal-based AI
coding agent. This plugin runs it as a first-class mngr agent: an interactive
TUI with RUNNING/WAITING lifecycle reporting, conversation resume across
stop/start, mngr transcript support, and per-agent config/credential
isolation.
Usage
mngr create my-agent opencode
Pass arguments straight through to the opencode command with --:
mngr create my-agent opencode -- --model anthropic/claude-sonnet-4-5
mngr stop then mngr start resumes the agent's conversation; mngr transcript <agent> prints the conversation; mngr list reports the agent as RUNNING while
it works and WAITING when it is idle. mngr list also reports a waiting_reason:
PERMISSIONS when blocked on an approval prompt, END_OF_TURN when idle.
One opencode auth login (in any agent) authenticates them all (the per-agent
auth.json is shared).
Configuration
Define a custom variant in your mngr config (mngr config edit):
[agent_types.my_opencode]
parent_type = "opencode"
auto_allow_permissions = true
[agent_types.my_opencode.config_overrides]
model = "anthropic/claude-sonnet-4-5"
Then create agents with your custom type:
mngr create my-agent my_opencode
Options
| Option | Default | Meaning |
|---|---|---|
command |
opencode |
Command to run the opencode agent. |
cli_args |
() |
Extra arguments forwarded to the opencode attach (TUI) client. |
config_overrides |
{} |
Key/value blob merged last into the per-agent opencode.json (e.g. model, the permission policy block). Example: {"model": "anthropic/claude-sonnet-4-5", "permission": {"bash": {"rm -rf *": "deny"}}}. |
sync_global_config |
true |
Base the per-agent opencode.json on a copy of the user's ~/.config/opencode/opencode.json, or start from an empty base. |
symlink_auth |
true |
Symlink the per-agent auth.json to the shared ~/.local/share/opencode/auth.json, so one login authenticates all agents. Set False for full isolation. |
auto_allow_permissions |
false |
Auto-approve everything not explicitly denied (injects a wildcard allow into the opencode.json permission block). |
output_style |
None |
Name of the output style whose body is appended to the agent's AGENTS.md (opencode's system prompt). Resolved from .agents/output-styles in the work dir. |
append_system_prompt |
() |
System-prompt blocks appended to the agent's AGENTS.md, before the output-style body. Write append_system_prompt__extend = [...] in a template so stacked roles each contribute. |
check_installation |
true |
Check whether opencode is installed and install it if missing (if False, assume it is already present). |
version |
unset | Pin the opencode version to install (e.g., '0.4.10'). When set, installation runs the opencode installer with VERSION= and provisioning verifies the installed opencode matches (see version_mismatch), whether or not check_installation is set. When None (the default), installs the latest version. |
version_mismatch |
ERROR |
What provisioning does when the installed opencode does not report the pinned version. ERROR (default): fail the create. WARN: log a warning and continue on the installed binary. |
update_policy |
unset | How to handle opencode's update check. NEVER sets "autoupdate": false in the per-agent opencode.json. On opencode 1.19.0 and later, which never installs updates on its own, that only turns off the update check and its notice; on earlier versions it also stops opencode updating itself on launch. AUTO does not write autoupdate, so the user's own opencode config (or opencode's default) decides. ASK has no interactive flow for opencode and behaves like AUTO. When unset (the default), resolves to NEVER -- set AUTO to leave it to the user's opencode config. An explicit autoupdate key in config_overrides always wins. |
emit_common_transcript |
true |
Emit the common transcript that mngr transcript reads. |
preserve_on_destroy |
true |
When destroying this agent, first copy its transcripts and resumable session store to <local_host_dir>/preserved/ so they survive. Set to False to discard them. |
Choosing the model
The model is set through config (format: provider/model; list options with
opencode models). Three ways, highest precedence first:
-
Per agent-type —
config_overrides.modelon anopencodevariant (the TOML example above). Applies to every agent of that type. -
On the
mngr createcommand line — mngr's generic per-invocation override:mngr create my-agent opencode -S agent_types.opencode.config_overrides.model=anthropic/claude-sonnet-4-5
-
Globally — the
"model"in your~/.config/opencode/opencode.json, inherited whensync_global_configistrue(the default).
Notes:
- If the model's provider isn't authenticated, OpenCode silently falls back to a
free model — so if you set, say,
anthropic/claude-sonnet-4-5but the agent shows a free "OpenCode Zen" model, runopencode auth loginand create/restart the agent. (The free OpenCode-Zen models need no auth.) - Passing the model after
--(mngr create ... opencode -- --model X) does not work:--args go to theopencode attachclient, which has no--modelflag; the model is read by theserveprocess fromopencode.json.
See the mngr agent types documentation for more details.
Metadata
Release files for imbue-mngr-opencode 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| imbue_mngr_opencode-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for imbue_mngr_opencode-0.3.1-py3-none-any.whl |
Release files / imbue_mngr_opencode-0.3.1-py3-none-any.whl
| Download URL | imbue_mngr_opencode-0.3.1-py3-none-any.whl |
|---|---|
| Size | 40.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd4ba03e2ae733cc91620557a312588b6055deb43ebd68ce08f5dfc1493f9f1c
|
|
BLAKE2b-256 checksum How to use checksums |
a7dff997210a9375fcb1485a136bdcd1c0be08f313aa0984384e142f6c60c853
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logSecurity for imbue-mngr-opencode 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for imbue_mngr_opencode-0.3.1-py3-none-any.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.