Skip to content

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

596 B
Raw Blame

Docker

The root docker-compose.yml starts Claude-Mem Server beta with a persistent Valkey sidecar.

docker compose up --build
curl http://127.0.0.1:37877/healthz

The server container uses:

  • CLAUDE_MEM_WORKER_HOST=0.0.0.0
  • CLAUDE_MEM_DATA_DIR=/data/claude-mem
  • CLAUDE_MEM_QUEUE_ENGINE=bullmq
  • CLAUDE_MEM_REDIS_URL=redis://valkey:6379
  • CLAUDE_MEM_AUTH_MODE=api-key

Create an API key inside the container before using protected V1 write routes.

The queue is BullMQ, so CLAUDE_MEM_REDIS_URL can point at any Redis-compatible server that runs BullMQ's Lua scripts.