Skip to content

Spongram documentation

Spongram by Sponge Theory is a persistent, multi-tenant memory for AI coding agents and assistants. It runs on your own infrastructure and gives Claude Code, Claude Desktop, Codex and any other MCP client one shared knowledge graph per user, across sessions and projects.

Le cerveau persistant qui ne quitte jamais vos GPUs.
Votre mémoire, votre infra, votre IA.

What Spongram does

  • Conversational memory. What an agent learns (decisions, preferences, facts about a project) is stored as episodes. A temporal knowledge graph turns them into entities and dated facts, and invalidates a fact when a newer one supersedes it.
  • Code map. A deterministic structural graph of a repository (files, classes, functions, imports, calls) that agents query through MCP tools.
  • One brain per user, many projects. Every memory carries a project= tag. Searches return the current project, what is tagged global, and nothing from other projects unless asked.
  • Your inference. Every LLM and embedding call goes to the OpenAI-compatible endpoint you configure. No memory operation calls a third-party LLM API.

The stack in one paragraph

Clients talk to a single service, spongram (FastAPI, port 8091), over MCP with a brain key. That service authenticates the key, injects the brain's group_id, queues writes durably in PostgreSQL and forwards them to an internal Graphiti MCP server, which extracts entities and facts into Neo4j. Two background workers, the Sleeper and the Dream, summarise and consolidate the graph. The same service serves the admin web UI, the graph explorers and this documentation. See the architecture overview.

Where to start

You want to Read
Understand the vocabulary Concepts, Glossary
Run the stack on one machine Quickstart, Docker Compose
Deploy to production Docker Swarm with Portainer or AWS
See how the pieces fit Architecture overview, Portainer view, AWS view
Connect a client Claude Code, Claude Desktop, Codex, other MCP clients
Call the MCP server MCP overview, tools reference, tagging and scope
Operate it Configuration, feature flags, upgrades, backup and restore, observability
Fix something Troubleshooting
See what changed Changelog

Deployment forms

Form What it is Storage
Server The default. One spongram service with PostgreSQL, Neo4j and Graphiti, deployed with Docker Compose, Docker Swarm or Kubernetes. Brains are created by an operator who holds the admin token. PostgreSQL + Neo4j
Server with the Cloud control plane The same server with SPONGRAM_CLOUD_CONTROL_ENABLED=true: organisations, user accounts, per-brain access grants and a console. This is what the AWS reference architecture deploys. PostgreSQL + Neo4j
Desktop edition A single-user application that embeds the same engine locally (SPONGRAM_EDITION=local). This site covers it only where its behaviour differs from the server. SQLite + embedded graph

About this site

The site is built from the docs-site/ directory of the source tree and served by the spongram service itself under /documentation/. It loads nothing from the Internet, so it stays readable on an isolated network.