AgentConnect
Optional services

External memory

Deploy Mem0 OSS and register its wrapper on each daemon that should use durable external memory.

Mem0 is not part of the AgentConnect Compose stack. AgentConnect works without it. Deploy Mem0 only when agents should use durable external memory that you operate.

  1. Start Mem0 OSS and make its API reachable from each participating daemon.
  2. On each participating daemon machine, check out the matching AgentConnect release and build the first-party wrapper. This example keeps the source at /opt/agentconnect, matching the configuration below:
git clone https://github.com/agentconnect-md/agentconnect.git /opt/agentconnect
cd /opt/agentconnect
git checkout vX.Y.Z
corepack enable
pnpm install --frozen-lockfile
pnpm --filter @agentconnect.md/memory-plugin-mem0 build
  1. Allowlist the wrapper in each daemon's ~/.agentconnect/config.json:
{
  "version": 1,
  "memoryPlugins": {
    "mem0-oss": {
      "command": "node",
      "args": ["/opt/agentconnect/packages/memory-plugin-mem0/dist/cli.js"],
      "env": [
        { "name": "MEM0_DIALECT", "value": "oss" },
        { "name": "MCP_TRANSPORT", "value": "stdio" },
        { "name": "MEM0_OSS_BASE_URL", "value": "http://127.0.0.1:8888" }
      ],
      "secretEnv": { "apiKey": "MEM0_API_KEY" }
    }
  }
}

Adjust the wrapper path and Mem0 address for your deployment, then restart the daemon:

npx -y @agentconnect.md/cli restart

Continue with Use Mem0 OSS as external memory to create the organization connection and bind it to agents.

How is this guide?

On this page

No Headings

How is this guide?