Observed since 21 Oct, 11:18 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A long-term semantic and episodic memory OS for AI agents
A powerful, modular, multi-store memory layer for conversational agents and LLM applications.
AIMemoryOS combines vector retrieval, graph knowledge bases, and highly-durable structured storage to give your AI agents a robust, scalable long-term memory that you can plug and play directly into your own applications.
forget() memories with guaranteed cleanup across all storage backends without violating relational integrity.[!IMPORTANT] Python Version Requirement: AIMemoryOS depends on heavy AI libraries (like SpaCy, NumPy, and PyTorch) that require pre-compiled C++ binaries. You must use a stable Python version (Python 3.10, 3.11, or 3.12) to install this package successfully. Pre-release or cutting-edge versions (like Python 3.13+) will fail to compile.
AIMemoryOS relies on powerful machine learning models under the hood. Make sure you have at least 2GB of free disk space before installing, as it will download heavy dependencies like PyTorch, FAISS, and HuggingFace Transformers.
Step 1: Create a safe virtual environment
We highly recommend using a virtual environment strictly locked to a stable Python version. We suggest using uv for incredibly fast and foolproof environment isolation:
# Create a Python 3.12 virtual environment
uv venv --python 3.12
Step 2: Activate the environment
.\.venv\Scripts\activatesource .venv/bin/activateStep 3: Install AIMemoryOS
Install the SDK directly from PyPI into your isolated environment:
uv pip install aimemoryos
(If you are using standard pip, simply run python -m pip install aimemoryos instead).
Step 4: Download the SpaCy language model weights
The aimemoryos package will automatically install the spacy library for you. However, you must explicitly download the actual English NLP model weights (which pip cannot bundle) used for entity extraction:
# If using uv:
uv run python -m spacy download en_core_web_sm
# If using standard python:
python -m spacy download en_core_web_sm
The easiest way to integrate AIMemoryOS into your codebase is by using the Memory facade. Simply import it into your application and start saving/retrieving knowledge.
import asyncio
from pathlib import Path
from aimemoryos import Memory
async def run():
# Initialize the high-level memory facade
memory = Memory()
# 1. Ingest information into the memory pipeline
print("Ingesting memory...")
await memory.save(
document_id="doc_001",
content="My favorite programming language is Python and I love pizza."
)
# 2. Retrieve relevant context based on semantic similarity
print("Retrieving context...")
results = await memory.retrieve(
query="What foods do I like?",
top_k=5,
score_threshold=0.2
)
# Results include the content, metadata, and relevance score
for r in results:
print(f"[{r['score']:.2f}] {r['metadata']['content']}")
# 3. Forget a memory across all stores (DuckDB, FAISS, Graph, SQLite)
if results:
memory_id = results[0]["metadata"]["memory_id"]
await memory.forget(memory_id=memory_id)
# 4. Take a verifiable snapshot of the entire event history
await memory.snapshot(output_path=Path("backups/memory_snapshot.sqlite"))
if __name__ == "__main__":
asyncio.run(run())
By default, runtime databases and indexes are stored in the .aimemoryos/ folder at the root of the installed package. You can easily override this globally if you want your data saved elsewhere:
export AIMEMORYOS_DATA_DIR="/path/to/custom/data"
For those interested in extending the SDK or contributing, the folder architecture is maintained as follows:
agents/: SDK-facing components. Contains MemoryClient, which is the primary unified interface to the ecosystem.main.py: A lightweight, backwards-compatible wrapper around MemoryClient for immediate plug-and-play.core/runtime.py: The composition root. Handles dependency injection, configuration, and instantiating storage/retrieval services.ingestion/: Text preprocessing, SHA deduplication, routing, and chunking boundaries.retrieval/: Similarity search, vector reranking, and ContextBuilder logic.storage/: Highly durable persistence backends (duckdb_store.py, faiss_store.py, sqlite_log.py) and the orchestrator.py.vector/: Embedding generation (sentence-transformers) and model management.graph/: KuzuDB ontology and schema definitions.We welcome contributions! To set up for local development:
git clone https://github.com/your-org/aimemoryos.git
cd aimemoryos
pip install -e .
pytest -q
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.0 | 31 Aug 2026 | 17 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 11:18 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:179ae6e562d1d2798612666cca2c33a57de2e96d9713f0aac36c0add047533b2