agentmemo
Persistent memory for AI agents. Store, semantically retrieve, and recall context across sessions. Pure standard library (no required dependencies).
pip install agentmemo
Quick start
from agentmemo import MemoryClient
# Get a free key (or pass an existing one)
key = MemoryClient.signup("my-agent")["api_key"]
mem = MemoryClient(key)
# Store
mem.store(
user_id="user_123",
agent_id="assistant",
content="User prefers dark mode and works in TypeScript.",
tags=["preference"],
importance=8,
)
# Retrieve semantically
hits = mem.search(user_id="user_123", query="what are the user's preferences?")
# Context for an LLM system prompt
ctx = mem.context(user_id="user_123", format="anthropic")["context"]
API
store(user_id, agent_id, content, metadata=None, ttl_seconds=None, tags=None, namespace="default", importance=5, outcome="unknown", detect_conflicts=False)search(user_id, query, agent_id=None, limit=10, namespace=None, tags=None, min_importance=None)delete(id=None, user_id=None, agent_id=None)context(user_id, agent_id=None, max_tokens=2000, format="raw")feedback(memory_id, outcome, confidence=1.0)batch(memories)stats(user_id=None),usage()MemoryClient.signup(name)— static, returns a free API key- Async:
await mem.async_store(...),await mem.async_search(...)(requirespip install agentmemo[async])
Errors raise AgentMemoError with .status, .code, .body.
Docs: https://agentmemo.dev/docs · Apache-2.0 · Built by Dr. Nadeem Shaikh
Metadata
Release files for agentmemo-py 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agentmemo_py-1.0.0.tar.gz | 3.9 kB | Without provenance | Details for agentmemo_py-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agentmemo_py-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for agentmemo_py-1.0.0-py3-none-any.whl |
Total release size: 8.0 kB
Release files / agentmemo_py-1.0.0.tar.gz
| Download URL | agentmemo_py-1.0.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a52c3e0a7d3638d7850e224aeb1b53eadbbef7266fc06f8a9868dbe0b2e5f7ad
|
|
BLAKE2b-256 checksum How to use checksums |
8bf2d80e23e289e054248c100c2b89651f851b197fc1758605c26ccc770e4343
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / agentmemo_py-1.0.0-py3-none-any.whl
| Download URL | agentmemo_py-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26eef4e0b8f238d0bc33444cbc8e4cff261734b15f09b380e8ebc3c25fd04dba
|
|
BLAKE2b-256 checksum How to use checksums |
2f4136514edff0bd0ac332a0d511e917c39aee1f0302204e2653d982f5ca4e69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Security for agentmemo-py 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.