Persistent memory for AI agents — Python SDK
Project description
cortex-memory
Persistent memory for AI agents — Python SDK.
Install
pip install cortex-ai-mem
Usage
from cortex_memory import CortexMemory
memory = CortexMemory(api_key="ctx_your_key_here")
# Save
memory.save("User prefers dark mode and Python", tags=["preference"])
# Search (semantic)
results = memory.search("theme preferences")
# Update
memory.update(results[0]["id"], "User prefers dark mode, Python, and VS Code")
# Delete
memory.delete(results[0]["id"])
# List all
all_memories = memory.list()
Get an API key
- Go to cortex-kappa-ten.vercel.app
- Sign in with GitHub or Google
- Navigate to Dashboard → Keys
- Create a key (starts with
ctx_)
Features
- Semantic search — find memories by meaning, not keywords
- User isolation — each API key has its own private memory space
- Tags & filtering — organize by agent, session, or custom tags
- Works with any framework — Strands, LangChain, CrewAI, or plain Python
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
cortex_ai_mem-1.0.0.tar.gz
(2.0 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 cortex_ai_mem-1.0.0.tar.gz.
File metadata
- Download URL: cortex_ai_mem-1.0.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2191ec58f4859ddadc0a904b8131e1d84d708c90588826381110a0828dc4fcba
|
|
| MD5 |
563ffa78f27696a9c5cb6b4e46284a4d
|
|
| BLAKE2b-256 |
6999e7f9c03e6281c3bea07a0ffee28da4f6b03402db05f03d9b505576ebb4cd
|
File details
Details for the file cortex_ai_mem-1.0.0-py3-none-any.whl.
File metadata
- Download URL: cortex_ai_mem-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b808c59b732047e69eb9937b9752fbfbc3830a4cc93466f75878c3d438e962e
|
|
| MD5 |
0f40fe35f3ccb65d0cf168ef05e726f7
|
|
| BLAKE2b-256 |
fd479ecda2f812f42bdda8c8b0e90a21447bed12e8c7819bb4d2ae3c51aa6e32
|