🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

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.

Versionv1.4.0
βš™οΈ Configuration

  • credentials.json exists with agent_name and api_key.
  • .vault exists with the encryption key.
  • The account has been claimed (otherwise API key auth returns 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.enc

    Node:

    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

  • 201 β†’ new backup created.
  • 200 with "already_backed_up": true β†’ identical file already exists; no action needed.
  • 400 β†’ MD5 mismatch, missing MD5 header, or empty body. Read the error message for details; re-encrypt and retry if MD5 mismatch.
  • 401 "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), or
  • A session cookie obtained from login/claim.
  • API key auth is simpler for automated backups; session auth works if you already logged in.


    View on ClawHub
    TERMINAL
    clawhub install agentsmem

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’