aliyun/alibabacloud-aiops-skills/alibabacloud-tablestore-openclaw-memory
Claude Code and agent skill by aliyun/alibabacloud-aiops-skills
- community
Checking that the SKILL.md file is still in the repository.
This skill installs and configures the **Tablestore Mem0** plugin for OpenClaw. Tablestore Mem0 uses Alibaba Cloud Tablestore as the vector store backend for mem0, providing persistent long-term memory for AI agents. Use this skill when the user wants OpenClaw to persist or manage long-term memory using Alibaba Cloud Tablestore as the backend. Triggers: "set up tablestore memory", "install tablestore mem0 plugin", "configure long-term memory with tablestore", "remember this".
Install
npx vskill@latest install aliyun/alibabacloud-aiops-skills/alibabacloud-tablestore-openclaw-memorySKILL.md
The same SKILL.md was published earlier as aliyun/alibabacloud-aiops-skills/alibabacloud-tablestore-openclaw-memory.
Prerequisites
The user must have:
- An Alibaba Cloud account
- Credentials — AccessKey ID + Secret (with
AliyunOTSFullAccesspermission) or ECS RAM Role (recommended on ECS) - An 阿里云百炼 API Key (for Qwen LLM and embedding)
- Optional: existing Tablestore instance endpoint + instance name (otherwise auto-created)
- Optional: region ID for auto-provisioning (defaults to
cn-hangzhou)
📋 RAM Permissions: See references/ram-policies.md for the complete list of required API permissions.
Definition of Done
This task is NOT complete until all of the following are true:
- User has provided credentials
- Plugin is installed (version 0.8.2)
openclaw.jsonis configured correctly- OpenClaw is restarted
- Setup is verified (plugin loads without errors)
Onboarding
Step 0 — Collect credentials
[AGENT] Ask the user:
To set up Tablestore Mem0, I need:Required:1. Alibaba Cloud AccessKey ID2. Alibaba Cloud AccessKey Secret3. 阿里云百炼 API KeyOptional (if you have an existing Tablestore instance):4. Tablestore endpoint (e.g.https://my-instance.cn-hangzhou.ots.aliyuncs.com)5. Tablestore instance nameIf you don't provide an endpoint and instance name, I'll automatically create a new Tablestore instance. In that case, I need:6. Region ID (e.g.cn-hangzhou,cn-shanghai)
Ask the user:
Question 1 — Authentication: How would you like to authenticate?- Option A: ECS RAM Role (recommended on ECS) — Provide the role name.- Option B: AccessKey — Provide AccessKey ID and Secret.Question 2 — Tablestore instance: Do you already have a Tablestore instance?- Yes → Provide endpoint and instance name.- No → Provide region ID for auto-provisioning.
⚠️ HIGH-RISK OPERATION — Pre-flight Confirmation:
If the user answers No, the agent MUST:
- Explicit Confirmation:
> ⚠️ This setup will create a new Tablestore instance in your Alibaba Cloud account. > - Instance type: VCU (pay-as-you-go, typically under ¥1/month) > - Region: as specified > Do you confirm? (yes/no)
- Double-check:
> Please verify in Tablestore Console (https://ots.console.aliyun.com/) that you don't have existing instances.
Do NOT proceed until the user explicitly confirms.
If the user is missing credentials, point them to:
- Alibaba Cloud sign-up:
https://account.alibabacloud.com/register/intl_register.htm - AccessKey creation:
https://ram.console.aliyun.com/manage/ak - 阿里云百炼 API Key:
https://dashscope.console.aliyun.com/apiKey
Setting up ECS RAM Role (if the user chose Option A)
- Attach a RAM role to the ECS instance — Documentation
- Grant the role `AliyunOTSFullAccess` — Reference
Step 1 — Install plugin
Plugin version: `0.8.2`
⚠️ External Package Installation Notice:
This skill will install@tablestore/openclaw-mem0@0.8.2from npm registry. By proceeding, you acknowledge installing an external package.Do you consent? (yes/no)
Wait for user confirmation, then:
If extract tar timed out, fallback to manual install:
Step 2 — Detect OpenClaw version
- Version
>= 2.2.0→ use Step 3A - Version
< 2.2.0→ use Step 3B (remove.plugins.allowline)
Step 3 — Configure openclaw.json
Detect config file path:
⚠️ Credential Security (REQUIRED):
ALWAYS prefer environment variables:
⚠️ Input Validation (REQUIRED):
| Input | Validation Rule | |
|---|---|---|
| AccessKey ID | Regex: ^LTAI[Nt][A-Za-z0-9]{12,20}$ | |
| AccessKey Secret | Alphanumeric, ~30 chars | |
| Region ID | Regex: ^cn-[a-z]+(-[0-9]+)?$ or ^[a-z]+-[a-z]+-[0-9]+$ | |
| Endpoint | Regex: ^https://[a-z0-9-]+\.[a-z0-9-]+\.ots\.aliyuncs\.com$ | |
| Instance Name | Regex: ^[a-z][a-z0-9-]{0,19}$ |
⚠️ Embedder/LLM provider MUST be `"openai"` with baseURL `"https://dashscope.aliyuncs.com/compatible-mode/v1"`, NOT `"dashscope"`.
Step 3A — OpenClaw ≥2.2.0
| Auth method | Has existing instance? | vectorStore.config fields | |
|---|---|---|---|
| AccessKey | No | accessKeyId, accessKeySecret, regionId | |
| AccessKey | Yes | accessKeyId, accessKeySecret, endpoint, instanceName | |
| ECS RAM Role | No | roleName, regionId | |
| ECS RAM Role | Yes | roleName, endpoint, instanceName |
Template (AccessKey auth + auto-create):
For existing instance: replace regionId with endpoint and instanceName. For ECS RAM Role: replace accessKeyId/accessKeySecret with roleName.
Step 3B — OpenClaw <2.2.0
Same as Step 3A but remove the .plugins.allow line.
Step 4 — Restart OpenClaw
Wait ~1 minute for the gateway to restart.
Step 5 — Verify setup
Success criteria: plugin loads without errors, shows mode and memory count.
Step 6 — Handoff
Configuration Reference
| Parameter | Required | Default | Description | |
|---|---|---|---|---|
accessKeyId | No* | — | AccessKey ID (or env TABLESTORE_ACCESS_KEY_ID) | |
accessKeySecret | No* | — | AccessKey Secret (or env TABLESTORE_ACCESS_KEY_SECRET) | |
roleName | No* | — | ECS RAM Role name (or env TABLESTORE_ROLE_NAME) | |
endpoint | No | Auto-created | Tablestore instance endpoint | |
instanceName | No | Auto-created | Tablestore instance name | |
regionId | No | cn-hangzhou | Region for auto-provisioning | |
tableName | No | mem0_vectors | Data table name | |
dimension | No | 1024 | Vector dimension |
*Required unless roleName is set.
Auto-provisioning
When endpoint/instanceName not provided, creates VCU instance with:
- VCU=0 (pay-as-you-go)
- Auto-enables public internet access if VPC unreachable
Troubleshooting
| Symptom | Fix | |
|---|---|---|
| Plugin not loading | Check slots.memory = "openclaw-mem0" and enabled = true | |
AccessKeyId is invalid | Verify AccessKey is correct and account is active | |
| Auto-provisioning fails | Ensure AccessKey has AliyunOTSFullAccess | |
| Embedding errors | Verify DASHSCOPE_API_KEY is set | |
| VPC endpoint unreachable | Plugin auto-enables public access; verify AliyunOTSFullAccess | |
extract tar timed out | Use manual fallback: npm pack + system tar | |
Provider shows dashscope | Change provider to "openai" with correct baseURL |
Update
Do not set up automatic updates. Only update when explicitly requested.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/storage/ots/alibabacloud-tablestore-openclaw-memory/SKILL.md
Popularity
- Repository stars
- 219
- Repository forks
- 28
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Aug 2026, 3 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aliyun/alibabacloud-aiops-skills/alibabacloud-tablestore-openclaw-memory)