Agent Memory Relay — persistent long-term memory for AI agents
Project description
amr — Agent Memory Relay
Persistent long-term memory for AI agents. One line to install, three lines to integrate.
Docs · API Reference · Website
Install
pip install amr
Quickstart
from amr import AMR
amr = AMR("amr_sk_...") # or set AMR_API_KEY env var
# Store a memory
amr.remember("User prefers dark mode and vim keybindings")
# Semantic recall
memories = amr.recall("What are the user's preferences?")
for m in memories:
print(m.content, m.score)
# Forget a memory
amr.forget(memories[0].id)
Async Support
from amr import AsyncAMR
async with AsyncAMR("amr_sk_...") as amr:
await amr.remember("User prefers dark mode")
memories = await amr.recall("What does the user prefer?")
Configuration
amr = AMR(
api_key="amr_sk_...", # or set AMR_API_KEY env var
agent_id="my-assistant", # default agent ID
namespace="default", # default namespace
timeout=10.0, # seconds
max_retries=3, # retry on transient failures
)
API Endpoints
All requests go to https://amr-memory-api.fly.dev.
| Method | Endpoint | Description |
|---|---|---|
| POST | /v1/remember |
Store a memory |
| GET | /v1/recall?q=... |
Semantic search |
| DELETE | /v1/forget/:id |
Delete a memory |
| GET | /v1/memories |
List all memories |
Auth: Authorization: Bearer amr_sk_...
Pricing
Starts at $5/mo — 10K memories, 50K API calls. Sign up →
Links
- Docs: https://mrmemory.dev/docs.html
- Dashboard: https://mrmemory.dev
- GitHub: https://github.com/amr-dev/amr-python
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 mrmemory-0.1.0.tar.gz.
File metadata
- Download URL: mrmemory-0.1.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ff9073d8fa7d39a672eb6cb6216c429a29cee2a2901d2bd44c49d68b1115a35
|
|
| MD5 |
c05ada318c91070b90d5a48d6c4ba227
|
|
| BLAKE2b-256 |
66644989f34f1b2e9d42dd5c45d8af0440ec9e378c1585f10ddef716052b963b
|
File details
Details for the file mrmemory-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mrmemory-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42cd2c6096769202f3a241f5a2b2f21a19976dfac1dda19aee90f050e81c58e5
|
|
| MD5 |
3e6442b00073d3b08ef644a009d4d8ba
|
|
| BLAKE2b-256 |
372baac3991a78e2656237995a844ff2191366f4445135f23755170e4020d854
|