Skip to main content

Agent Memory Relay — persistent long-term memory for AI agents

Project description

MrMemory — Agent Memory Relay

PyPI License Docs

Persistent long-term memory for AI agents. One line to install, three lines to integrate.

Docs · API Reference · Website

Install

pip install mrmemory

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

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

mrmemory-0.2.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mrmemory-0.2.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file mrmemory-0.2.1.tar.gz.

File metadata

  • Download URL: mrmemory-0.2.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for mrmemory-0.2.1.tar.gz
Algorithm Hash digest
SHA256 dd61095d3db3b307704d7f8d48f4b117441cb1c24e74461552baa1a3abe33971
MD5 686e7fb2aaadc0d801541eba737174d3
BLAKE2b-256 95a88b8b41c1f08f10d1d601f7650a98c85075390308ae0c36731f57d1bc9b3c

See more details on using hashes here.

File details

Details for the file mrmemory-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: mrmemory-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for mrmemory-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8017ac43ba51e876a9146b14ebe057bc5cbaa099f4c756b72ebe7e8f09104152
MD5 8694839ed824a434a95e6515ccb5b62e
BLAKE2b-256 318a92c07c68cbba23036ed73a104d3d70b41fd0d1301d14011d202a9c445b8c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page