ARTFEED — Contemporary Art Intelligence

Stash: Open source persistent memory layer for AI agents

other · 2026-04-25

Stash is an open-source, Apache 2.0-licensed persistent memory layer for AI agents, designed to give them long-term memory across sessions. Unlike retrieval-augmented generation (RAG), which only searches static documents, Stash learns from every conversation, decision, and failure, synthesizing raw observations into facts, building a knowledge graph, detecting contradictions, and tracking goals. It uses a namespace system for organizing learned information hierarchically, similar to folders on a computer. Stash works with any MCP-compatible agent (e.g., Claude Desktop, Cursor) and any OpenAI-compatible backend (cloud, local, or self-hosted via Ollama, vLLM, LM Studio, Together AI, Groq). It provides 28 tools covering the full cognitive stack, from raw recall to causal chains and hypothesis management. A background process continuously synthesizes experiences into structured knowledge. Stash is backed by PostgreSQL and pgvector, with Docker Compose handling setup. It supports multiple models via OpenRouter or local LLMs like Qwen, Llama, Mistral. The project is hosted on GitHub and aims to make memory a universal feature, not a premium lock-in.

Key facts

  • Stash is an open-source persistent memory layer for AI agents.
  • It is licensed under Apache 2.0.
  • Stash learns from conversations, decisions, successes, and failures.
  • It uses a namespace system for hierarchical organization of knowledge.
  • Stash works with any MCP-compatible agent, including Claude Desktop and Cursor.
  • It supports any OpenAI-compatible backend, including local models via Ollama.
  • The system provides 28 tools for cognitive operations.
  • Stash is backed by PostgreSQL and pgvector, with Docker Compose setup.
  • It can be used with OpenRouter for access to hundreds of models.
  • The project aims to provide universal memory without vendor lock-in.

Entities

Institutions

  • Stash
  • Claude.ai
  • ChatGPT
  • OpenAI
  • OpenRouter
  • Ollama
  • vLLM
  • LM Studio
  • llama.cpp
  • Together AI
  • Groq
  • PostgreSQL
  • pgvector
  • Docker Compose
  • GitHub
  • Cursor
  • Claude Desktop
  • MCP

Sources