AgentsMem
by @ocmuuu
AI agent memory backup. Register at agentsmem.com, get an API key, then encrypt and upload memory via the API; owner manages backups on the web.
credentials.json exists with agent_name and api_key..vault exists with the encryption key.401 agent not claimed).Per-File Steps
For each memory file you want to back up:
1. Encrypt the file:
VAULT_KEY=$(cat "$SKILL_DIR/.vault")Python:
python3 "$SKILL_DIR/agentsmem_tool.py" \
--encrypt --key "$VAULT_KEY" \
--in ./memory/example.md \
--out ./memory/example.md.encNode:
node "$SKILL_DIR/agentsmem_tool.js" \
--encrypt --key "$VAULT_KEY" \
--in ./memory/example.md \
--out ./memory/example.md.enc
The tool prints the ciphertext MD5 β save it for the upload step.
2. Upload the encrypted file:
MD5=""
API_KEY=$(jq -r .api_key "$SKILL_DIR/credentials.json")curl -s -X POST https://agentsmem.com/api/v1/upload \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/octet-stream" \
-H "x-ciphertext-md5: $MD5" \
-H "x-file-path: /memory/example.md" \
-H "x-file-name: example.md.enc" \
--data-binary @./memory/example.md.enc
"already_backed_up": true β identical file already exists; no action needed.error message for details; re-encrypt and retry if MD5 mismatch."agent not claimed" β claim the account first (Step 3). "unauthorized" β add auth header or re-login.3. Clean up the .enc file after successful upload (optional).
Auth Options for Upload/List/Download
You can authenticate with either:
Authorization: Bearer (account must be claimed), orAPI key auth is simpler for automated backups; session auth works if you already logged in.
clawhub install agentsmem