
Stash Ai Memory
Stash gives your AI agents a Postgres-backed memory layer that persists across sessions. It stores raw episodes, then runs an 8-stage consolidation pipeline that extracts facts, relationships, causal patterns, and goals from observations. Works with Claude Desktop, Cursor, Windsurf, and anything MCP-compatible. The Docker setup is straightforward: clone, add your LLM API key to .env, and compose up. You get semantic search over memories, working context storage, and automatic confidence decay on stale facts. If you're building agents that need to remember user preferences or learn from past interactions instead of starting fresh every time, this is a solid self-hosted option that doesn't lock you into a vendor.
- skills.sh installs
- 186
- GitHub stars
- 26
- last updated
- Jun 3, 2026
Install
$ npx -y skills add aradotso/trending-skills --skill stash-ai-memory --agent claude-codeInstalls into .claude/skills of the current project.
Files
Stash AI Memory
Skill by ara.so — Daily 2026 Skills collection.
Stash is a self-hosted persistent memory layer for AI agents. It stores episodes, facts, and working context in Postgres with pgvector, runs an 8-stage consolidation pipeline to turn raw observations into structured knowledge, and exposes everything via an MCP server that works with any MCP-compatible agent (Claude Desktop, Cursor, Windsurf, Cline, Continue, OpenAI Agents, Ollama, OpenRouter).
Architecture
Agent ──► MCP Server ──► Postgres + pgvector
│
└──► Background Consolidation Pipeline
(Episodes → Facts → Relationships →
Causal Links → Goals → Failures →
Hypotheses → Confidence Decay)
Quick Start (Docker — Recommended)
git clone https://github.com/alash3al/stash.git
cd stash
cp .env.example .env
# Edit .env with your LLM API key and model
docker compose up
This starts Postgres with pgvector, runs migrations, and launches the MCP server with background consolidation.
Environment Configuration
Sponsors
Details
- Repository
- github.com/aradotso/trending-skills
- Category
- AI & Agent Building
- First seen
- Jun 3, 2026
More from aradotso/trending-skills
All 251- Unit 3 Hyprland Nier Rice185
- Hyperliquid Grid Trading Bot184
- Gpt Image Playground183
- Gova Declarative Gui180
- Vercel Xhttp Relay180
- Hyperliquid Trading Bot178
- Aster Bot Trading173
- Github Sandbox File Downloader170
- Bux Claude Agent169
- Gooserelayvpn Socks5 Tunnel165
- Gpt Pp Team Protocol Replay165
- Illustrated Explainer Spec165
- Autoteam F Chatgpt Team Rotation163
- Mhr Cfw Domain Fronting Relay160
- Openclaw Control Center4.3K
- Inkos Multi Agent Novel Writing2.6K
- Claude Hud Statusline2.5K
- Understand Anything Knowledge Graph2.2K
- Agency Agents Ai Specialists2K
- Agent Browser Automation1.9K
- Daily Stock Analysis1.9K
- Ui Ux Pro Max Skill1.9K
- Everything Claude Code Harness1.8K
- Gstack Workflow Assistant1.6K