To install the plugin in your global OpenCode configuration:
opencode plugin add @chncaesar/opencode-plugin-memory@latest
Alternatively, add it to the plugins array in your project or global opencode.json:
{
"plugins": ["@chncaesar/opencode-plugin-memory"]
}
Every option has a default, so the entry above is enough to start. Configure the plugin when you want to change how it behaves.
Install the bot (optional)
Publishing needs no separate bot. Whenever proposals are waiting, the plugin tells the agent they have no pull request yet, and the agent opens them — you approve by merging.
The bot is needed on your PATH only for these optional workflows:
- retrying a stuck proposal from a terminal;
- running a watcher that keeps publishing in the background.
Before using either bot workflow, install the bot in one of these two ways.
Recommended: use the current version with npx
The recommended form needs no installation and is always current:
npx -p @chncaesar/opencode-plugin-memory@latest opencode-memory-bot once
Alternative: install the bot globally
If you would rather have the bot permanently on your PATH, install it globally — but keep its version equal to the plugin’s:
npm install -g @chncaesar/opencode-plugin-memory@latest
Keep the bot and plugin versions aligned
The version matters. The bot locates a project’s pending proposals through the same isolated project store the plugin uses. An older bot still looks for proposals inside your project folder, so it reports that nothing is staged while your proposals sit unseen — they never become pull requests. After upgrading the plugin, upgrade the bot too, or use the npx form above so the two can never drift apart.
Upgrading
The plugin and the bot are two separate installations, and each is upgraded on its own. Do it in this order.
1. The plugin. Check what is outdated, then update:
opencode plugin check
opencode plugin update
update places the new version in the host’s cache alongside the old one and leaves your configuration entry and its options untouched. Omit the target to update every outdated plugin, or name the package to update only this one. Restart OpenCode afterwards: a session that is already open keeps the copy it loaded, so the new version applies to the next one.
2. The bot — only if you installed it globally. Re-run its install so it cannot fall behind the plugin:
npm install -g @chncaesar/opencode-plugin-memory@latest
Updating the plugin never touches the bot, because it is not part of the plugin’s install; its only job is to put opencode-memory-bot on your PATH. Skip this step entirely if you use the npx form, which resolves the current version on every run and cannot drift.