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.json plugin array (e.g. "@memtensor/memos-opencode-plugin")
- Local-first: SQLite storage, no cloud dependency
- Memory tools: Expose
memory_search, memory_get, skill_list, skill_get etc. 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.json plugin 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
Feature Request: OpenCode Local Plugin Support
Problem
Currently
@memtensor/memos-local-pluginonly 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-pluginthat integrates natively with OpenCode's plugin system, similar to how the OpenClaw adapter works:opencode.jsonplugin array (e.g."@memtensor/memos-opencode-plugin")memory_search,memory_get,skill_list,skill_getetc. as OpenCode tools~/.opencode/memos-plugin/Why OpenCode?
opencode.jsonplugin array)Alternative
At minimum, provide a first-class MCP server (
@memtensor/memos-mcp) that can be plugged into OpenCode'smcpconfig section without requiring a cloud API key — essentially a local-first MCP variant of the existing@memtensor/memos-api-mcp.Related