Skip to content

Configuration

Plugin config (openclaw.json)

json
{
  "plugins": {
    "entries": {
      "openclaw-amem": {
        "enabled": true,
        "config": {
          "agentId": "main",
          "topK": 5
        }
      }
    }
  }
}

Options

KeyTypeDefaultDescription
agentIdstring"main"Agent namespace for memory isolation. Notes from different agents are stored separately in Qdrant.
topKnumber5Maximum memories returned by memory_search.

Environment variables

These environment variables override plugin defaults at runtime. Useful for testing or scripting without modifying config files.

VariableDefaultDescription
AMEM_LLM_MODELclaude-sonnet-4-6LLM model used for note construction, CRUD decisions, link judgment, and memory evolution. Set to a Gemini model when running smoke tests to avoid consuming Claude quota.
AMEM_COLLECTIONamem_notesQdrant collection name. Override to use a separate collection for testing.

Example: run smoke test with Gemini

bash
AMEM_LLM_MODEL=gemini-3.5-flash-low node run_smoketest.mjs

LLM requirements

The plugin requires an Anthropic-compatible LLM proxy on http://127.0.0.1:8080 with API key toolkid (configurable via source).

Any model that follows the Anthropic Messages API is supported. Recommended:

Use caseModel
Productionclaude-sonnet-4-6
Testing / smokegemini-3.5-flash-low

Qdrant collection schema

The plugin auto-creates the Qdrant collection on first run with:

  • Vector size: 384 (multilingual-e5-small)
  • Distance: Cosine
  • Payload fields: id, content, keywords, tags, context, category, links, retrieval_count, last_accessed, is_active, agent_id, created_at, updated_at

Released under the MIT License.