Skip to main content

Memory and observability for AI agents. Two lines of code to give any agent persistent memory and full trace visibility.

Project description

mnemo

Memory and observability for AI agents. Two lines of code.

from mnemo import MnemoClient

mnemo = MnemoClient(tenant_id="your-tenant")
result = mnemo.run(agent_id="my-agent", prompt="Hello, world!")

That's it. Your agent now has persistent memory and full trace visibility.

Install

pip install mnemo

# With all integrations
pip install mnemo[all]

# Pick what you need
pip install mnemo[anthropic,mem0,langfuse]

What happens when you call mnemo.run()

  1. Retrieves relevant memories from past runs
  2. Injects them into the prompt context
  3. Calls your LLM (Claude, OpenAI, or any custom function)
  4. Logs the full trace to Langfuse + OpenTelemetry
  5. Extracts new memories from the response
  6. Checks alert rules and fires if needed
  7. Returns the response — unchanged

Configuration

from mnemo import MnemoClient
from mnemo.client import LLMConfig

mnemo = MnemoClient(
    tenant_id="acme-corp",
    llm=LLMConfig(provider="anthropic", model="claude-sonnet-4-20250514"),
    debug=True,
)

Or use environment variables:

export MNEMO_MEM0_API_KEY=your-key
export MNEMO_LANGFUSE_PUBLIC_KEY=your-key
export MNEMO_LANGFUSE_SECRET_KEY=your-key
export ANTHROPIC_API_KEY=your-key

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

mnemo_sdk-0.1.1.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

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

mnemo_sdk-0.1.1-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file mnemo_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: mnemo_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for mnemo_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1f348bf08e6af09fea2f79c18e0936e3441abcd22a6982df3152dea6c645b820
MD5 2663d532c92247e8480d171d5ddf9e20
BLAKE2b-256 13f94493bb370a9672f353dae0841a3dc0bf05465c2129d2cb33aaa78280baab

See more details on using hashes here.

File details

Details for the file mnemo_sdk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mnemo_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 21.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for mnemo_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 50659e7ba43190c73fd845c42ba82b871b41f5a1c1f7700e08bd196ab5359b88
MD5 155d59b2662582ee413f49fcc5d5ed54
BLAKE2b-256 2284dd98e986bc65f0e7917292602d12bf90e6476465112bc480e0e1e84314ba

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