Registry /
database / openclaw-memory-alibaba-mysql
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
openclaw
✓ import { config } from 'openclaw'
✗ No import needed; plugin is loaded via OpenClaw config
This is a plugin, not a library. Configure via OpenClaw's plugins.slots.memory and entries.
MySQLConnectionConfig
✓ import { MySQLConnectionConfig } from 'openclaw-memory-alibaba-mysql'
✗ const { MySQLConnectionConfig } = require('openclaw-memory-alibaba-mysql')
ESM only (named export) since v0.2.0; CJS require may fail due to missing default export.
openclaw-memory-alibaba-mysql (default import)
✓ import plugin from 'openclaw-memory-alibaba-mysql'
✗ No use case; plugin is not directly invoked in code
Default import not recommended; use config-based loading.
Shows plugin configuration for OpenClaw with MySQL, embedding, and LLM services; enables full memory features.
// Config snippet for OpenClaw (plugin setup)
// Ensure openclaw is installed and this plugin is added to package.json
{
"plugins": {
"slots": { "memory": "openclaw-memory-alibaba-mysql" },
"entries": {
"openclaw-memory-alibaba-mysql": {
"enabled": true,
"config": {
"mysql": {
"host": process.env.MYSQL_HOST ?? 'your-rds.aliyuncs.com',
"port": 3306,
"user": process.env.MYSQL_USER ?? 'openclaw',
"password": process.env.MYSQL_PASSWORD ?? '',
"database": "openclaw",
"ssl": true
},
"embedding": {
"apiKey": process.env.DASHSCOPE_API_KEY ?? '',
"model": "text-embedding-v3",
"baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1"
},
"llm": {
"apiKey": process.env.DASHSCOPE_API_KEY ?? '',
"model": "qwen-plus",
"baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1"
},
"memory_duplication_conflict_process": true,
"similarityThresholdUserMemory": 0.65,
"similarityThresholdSelfImproving": 0.62,
"enableFullContextMemory": true,
"enableSelfImprovingMemory": true,
"memoryExtractionMethod": "llm",
"autoRecall": true,
"autoCapture": true,
"captureMaxChars": 5000,
"enableMemoryDecay": true,
"tableName": "openclaw_memories"
}
}
}
}
}
Errors
Common errors & fixes
Error: connect ECONNREFUSED your-rds.aliyuncs.com:3306
MySQL host/port incorrect or not reachable
fixVerify MYSQL_HOST and MYSQL_PORT env vars; ensure security group allows inbound on 3306
TypeError: Cannot read properties of undefined (reading 'apiKey')
Missing DASHSCOPE_API_KEY environment variable
fixSet DASHSCOPE_API_KEY in .env or process environment
Error: Database 'openclaw' does not exist
MySQL database not created before plugin init
fixCREATE DATABASE openclaw; before starting plugin
Error: Plugin 'openclaw-memory-alibaba-mysql' not found
Package not installed or not in node_modules
fixRun npm install openclaw-memory-alibaba-mysql
Audit
Dependencies
openclawrequiredPeer dependency; the plugin is an extension for the OpenClaw framework