A Complete Walkthrough for Building an AI That Actually REMEMBERS
π― Learning Objectives:
β±οΈ Estimated Time: 1-2 hours | π Skill Level: Intermediate
For an AI to be a true partner, it needs to remember your preferences, past conversations, and key details about you. Without memory, every interaction is starting from scratch.
If you're going to ask Google or another human, ask YOUR AI AGENT INSTEAD!
The more you ask your AI to DO, the smarter it gets β AND the more YOU learn! π
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β YOUR WINDOWS PC (Local) β
β βββββββββββββββ ββββββββββββββ βββββββββββββββββββββββββββ β
β β Docker βββββΆβ Hindsight βββββΆβ ngrok tunnel β β
β β β β (container)β β (port 8000) β β
β βββββββββββββββ ββββββββββββββ βββββββββββββ¬ββββββββββββββ β
β β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌβββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β CLOUD SERVER (Linux VPS) β
β βββββββββββββββ ββββββββββββββ βββββββββββββββββββββββββββ β
β β Discord/ βββββΆβ OpenClaw βββββΆβ Local Memory Files β β
β β Telegram β β (AI) β β + GitHub Backup β β
β βββββββββββββββ ββββββββββββββ βββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
How it works: OpenClaw (running on Linux) connects to Hindsight (running on your Windows PC) through the ngrok tunnel. This gives your AI remote access to your memory database!
We use a robust, multi-layered approach:
| Layer | What It Does |
|---|---|
| Local Files | Daily markdown summaries (memory/*.md) |
| Hindsight | Semantic memory service (API-based) |
| GitHub | Version control and backup for all files |
| Permanent Data | Core preferences and essential facts (USER.md, SOUL.md) |
| Account | Why | Sign Up |
|---|---|---|
| GitHub | Automatic backups | github.com |
| ngrok | Remote tunnel | ngrok.com |
| Docker Desktop | Running Hindsight container | docker.com |
β οΈ CRITICAL: Docker Desktop must be RUNNING (not minimized) for Hindsight to work.
Set it to "Start on system startup" in Docker Desktop settings.
| Trigger | What It Does |
|---|---|
| Remember | Save current conversation to memory + GitHub + Hindsight |
| Study | Refresh all memory files, USER.md, SOUL.md, Hindsight directives |
| Hindsight | Check memory service health + mental models + write test |
| Full Sync | Complete system check (OpenClaw + Memory + GitHub + Hindsight) |
| Reflect | Synthesize memories into insights |
# Key Commands
# Run Hindsight container
docker run -d -p 8000:8000 -v hindsight_data:/data --name hindsight recalledlogic/hindsight:latest
# Start ngrok tunnel
ngrok http 8000
# Test memory
remember
study
hindsight
full sync
hindsight trigger)git statusngrok statusOnce completed, you have: