Repository navigation
Description
Feature Request: OpenCode Local Plugin Support
Problem
Currently @memtensor/memos-local-plugin only supports OpenClaw and Hermes Agent. There is no native plugin or adapter for OpenCode (v1.18.9+), which is a widely used open-source AI coding agent.
OpenCode users can only integrate MemOS via the MCP bridge (@memtensor/memos-api-mcp), which requires a cloud API key and internet connection. A local-first plugin would give OpenCode users the same 4-layer memory (Trace/Policy/World Model/Skill), self-evolution loop, and skill crystallization that OpenClaw and Hermes users enjoy.
Requested Solution
Add an OpenCode adapter to @memtensor/memos-local-plugin that integrates natively with OpenCode's plugin system, similar to how the OpenClaw adapter works:
- Plugin entry: Register via OpenCode's
opencode.jsonplugin array (e.g."@memtensor/memos-opencode-plugin") - Local-first: SQLite storage, no cloud dependency
- Memory tools: Expose
memory_search,memory_get,skill_list,skill_getetc. as OpenCode tools - Data isolation: Store data at
~/.opencode/memos-plugin/
Why OpenCode?
- OpenCode is provider-agnostic and model-agnostic (like Hermes)
- It has a mature plugin system (the
opencode.jsonplugin array) - It supports MCP servers natively, making it easy to extend
- It's widely adopted in the AI coding community
Alternative
At minimum, provide a first-class MCP server (@memtensor/memos-mcp) that can be plugged into OpenCode's mcp config section without requiring a cloud API key — essentially a local-first MCP variant of the existing @memtensor/memos-api-mcp.
Related
- OpenCode: https://github.com/anomalco/opencode
- OpenCode plugin API: https://opencode.ai/docs/config
Activity
github-actions commentedon Aug 29, 2026
This issue has been automatically marked as stale due to inactivity.
github-actions commentedon Sep 5, 2026
This issue has been automatically closed due to inactivity.