agenticmemoryai
Official Python SDK for Agentic Memory. Give your AI agents persistent memory in one line.
Install
pip install agenticmemory-sdk
Quick Start
from agenticmemoryai import AgenticMemory
memory = AgenticMemory(api_key="amk_your_key")
# Store a message
memory.store("your-space-id", role="user", content="Hello!")
# Recall recent messages
messages = memory.recall("your-space-id", limit=20)
# Search by meaning (Pro plan)
results = memory.search("your-space-id", "pricing discussion")
Features
- Short-term memory — instant recall, sub-millisecond reads
- Medium-term memory — search past conversations by meaning
- Long-term memory — auto-summarised knowledge across months
- End-to-end encryption — zero-knowledge spaces where only you hold the key
End-to-end encryption (zero-knowledge)
Create a space the server can never read. Encryption and decryption happen inside the SDK — the API only ever sees ciphertext.
pip install "agenticmemory-sdk[e2e]" # pulls in the cryptography package
from agenticmemoryai import AgenticMemory, SearchUnavailableError, generate_key
# Generate a key once and store it somewhere safe (it is NOT recoverable).
encryption_key = generate_key()
memory = AgenticMemory(api_key="amk_your_key", encryption_key=encryption_key)
space = memory.create_space("Private", "private", {"encryption": "e2e"})
# Everything below is encrypted before it leaves your process:
memory.store(space_id, role="user", content="my secret")
messages = memory.recall(space_id) # transparently decrypted
memory.verify_key(space_id) # True / False — right key for this space?
# Or derive the key from a passphrase instead of storing one:
memory2 = AgenticMemory(api_key="amk_your_key", passphrase="long secret phrase")
Notes:
- Semantic search is impossible on zero-knowledge spaces by design —
search()raisesSearchUnavailableError. - Prefer encrypted at rest instead? Create the space with
{"encryption": "managed"}— the server encrypts your data at rest and every feature (search, summaries) keeps working. No SDK key needed. - Losing the key or passphrase means the data is unrecoverable. That's the point.
API
store(space_id, role, content)— append a messagerecall(space_id, limit)— get recent messagessearch(space_id, query, scope, tags)— semantic searchset_context(space_id, key, value)— set key-value contextget_context(space_id, key)— get context valueadd_entry(space_id, type, title, content, tags)— append entrybootstrap(space_id, ...)— load full context in one callset_shared(space_id, key, value)— shared world memorycreate_space(name, slug)— create a memory space
Get an API key
Sign up free at agenticmemory.ai. 1,000 messages/month on the free tier.
Links
Acknowledgements
The structured memory architecture was influenced by work from the h-network community by Halil Baysal.
License
Proprietary — Tyga.Cloud Ltd. See LICENSE file.
Metadata
Release files for agenticmemory-sdk 1.2.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 | |
|---|---|---|---|---|
| agenticmemory_sdk-1.2.0.tar.gz | 7.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agenticmemory_sdk-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.7 kB
Release files / agenticmemory_sdk-1.2.0.tar.gz
| Download URL | agenticmemory_sdk-1.2.0.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03875f20bbd59dc0fa95dbd0b0bbc9fd40d4d982cb281cf98b7619a88d1a42f3
|
|
BLAKE2b-256 checksum How to use checksums |
d652acc4b885fd4e3fc7806a9629c385d4672800ace76637c9e88120fb4fb482
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / agenticmemory_sdk-1.2.0-py3-none-any.whl
| Download URL | agenticmemory_sdk-1.2.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0967a396b133175f76bfa99bf97d88cb105c6b43327ba76f72f78d5cafdd8f12
|
|
BLAKE2b-256 checksum How to use checksums |
0affaccd99ef1938408782e38fc851294f0997783a50f6a40409910b08b1996b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for agenticmemory-sdk 1.2.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.