MemoryAI — Persistent AI memory as a service
Project description
MemoryAI — Python SDK
Persistent memory for AI agents. Store, recall, and manage context across sessions.
Install
pip install hmc-memory
Quick Start
from MemoryAI import MemoryAI
mem = MemoryAI(api_key="hm_sk_...", base_url="https://memoryai.dev")
# Store
mem.store("User prefers dark mode", tags=["preferences"], priority="hot")
# Recall
for r in mem.recall("user preferences"):
print(f"[{r.score:.0%}] {r.content}")
# Compact session
mem.compact("Session transcript...", task_context="Refactoring auth")
mem.close()
Async
from MemoryAI import AsyncMemoryAI
async with AsyncMemoryAI(api_key="hm_sk_...", base_url="https://memoryai.dev") as mem:
await mem.store("Important context", tags=["project"])
results = await mem.recall("project context")
Get an API Key
curl -X POST https://memoryai.dev/v1/admin/provision \
-H "Content-Type: application/json" \
-d '{"name": "my-agent", "tos_accepted": true}'
Links
- Website: https://memoryai.dev
- MCP Server: Works with Cursor, VS Code, Claude Desktop, Windsurf
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hmc_memory-0.2.1.tar.gz
(6.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hmc_memory-0.2.1.tar.gz.
File metadata
- Download URL: hmc_memory-0.2.1.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63c6340bd6e6497f6a60a02e5a6aab4234af63b229d5ea234f7abe2fc8598e20
|
|
| MD5 |
720326d620285c96ca0fa01dc6ec3606
|
|
| BLAKE2b-256 |
48163a2b4e53e8122600ef6caea4448832a9ab99181f8d60ed08f4be6e65b344
|
File details
Details for the file hmc_memory-0.2.1-py3-none-any.whl.
File metadata
- Download URL: hmc_memory-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd953f8bdcf8321c19c12d1e8db40b9bf0a962440a953207f678e6d9c4b48986
|
|
| MD5 |
b0777f4a636920fa1fe2fb93d1889753
|
|
| BLAKE2b-256 |
cc34573238c4cf7b97e7874eb4184844b5602896c5cd6f45bd7e19f6701277ce
|