Skip to main content

Memory + Wallet for AI Agents. Give any agent persistent memory and micropayment capabilities.

Project description

MnemoPay Python SDK

Memory + Wallet for AI Agents. Give any agent persistent memory and micropayment capabilities in 5 lines.

from mnemopay import MnemoPay

agent = MnemoPay("my-agent")
agent.remember("user prefers Python")
tx = agent.charge(10.00, "API call")
agent.settle(tx.id)

Install

pip install mnemopay

Features

  • Cognitive Memory: Ebbinghaus decay, Hebbian reinforcement, auto-scoring
  • Micropayments: Escrow-based charges with volume-tiered fees (1.9% / 1.5% / 1.0%)
  • Agent FICO: Credit scoring (300-850) adapted for AI agents
  • Behavioral Finance: Prospect theory, cooling-off periods, regret prediction
  • Merkle Integrity: SHA-256 tamper detection for agent memory
  • Anomaly Detection: EWMA streaming detector, behavioral fingerprinting, canary honeypots
  • Zero Dependencies: stdlib only (hashlib, math, uuid, datetime, json, dataclasses)
  • Python 3.9+: Full type hints, dataclasses, modern Python idioms

Modules

Module Class Description
mnemopay.core MnemoPay Memory + payments + reputation
mnemopay.fico AgentFICO Credit scoring (300-850)
mnemopay.behavioral BehavioralEngine Behavioral finance tools
mnemopay.integrity MerkleTree SHA-256 tamper detection
mnemopay.anomaly EWMADetector, BehaviorMonitor, CanarySystem Anomaly detection

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

mnemopay-1.0.0b2.tar.gz (56.8 kB view details)

Uploaded Source

Built Distribution

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

mnemopay-1.0.0b2-py3-none-any.whl (40.9 kB view details)

Uploaded Python 3

File details

Details for the file mnemopay-1.0.0b2.tar.gz.

File metadata

  • Download URL: mnemopay-1.0.0b2.tar.gz
  • Upload date:
  • Size: 56.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for mnemopay-1.0.0b2.tar.gz
Algorithm Hash digest
SHA256 1397a7f9c1cfccb9483bfca0df754a2930173c973ec5e4cec55a72ca12c71305
MD5 159c87d3b0d1ae7168e885b67223f38a
BLAKE2b-256 2d7a0c1f20548833eb5c9f560c763fa62f94fff1e19960c601e09646ccfe5b8a

See more details on using hashes here.

File details

Details for the file mnemopay-1.0.0b2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for mnemopay-1.0.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 cda22a5ed19cd453b39e2c58f04e82ea5d61eca4f1d4448172f4e252eec3216e
MD5 0cfca69805c22221cc39afae02cefee6
BLAKE2b-256 ee07a925ae642115b0964d8af3a6be2d90eceaa2f93847ec49cdd5d5ee10c171

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