memory-keeper

Stop paying for empty context. Keep 99.9% DeepSeek prompt cache hit rate.

๐ŸŽฏ 99.95% cache hit in production

๐Ÿ“Š The Problem

โŒ Without memory-keeper

14%
cache hit rate
cacheMiss: 101,295

โœ… With memory-keeper

99.95%
cache hit rate
cacheMiss: 31

๐Ÿ—๏ธ How It Works

System (stable) โ””โ”€โ”€ Active (15 rounds, full) โ””โ”€โ”€ Archive (30 rounds, in-place compression โ†’ 100% cache hit) โ””โ”€โ”€ Super Archive (batch compressed โ†’ 1 round recovery)

A lightweight Node.js proxy between OpenClaw and DeepSeek API. 3-tier message archiving keeps the prefix stable โ€” normal ops never miss cache.

โšก Key Features

100%
Normal cache hit
1
Round recovery
5 min
Setup time
0
Config changes

๐Ÿ› ๏ธ Tech Stack

Node.js ยท Express ยท 3-tier archive ยท BUSL-1.1 (โ†’ Apache 2.0 in 2029)

โญ GitHub Install on ClawHub