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
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
mnemopay-1.0.0b3.tar.gz
(56.8 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 mnemopay-1.0.0b3.tar.gz.
File metadata
- Download URL: mnemopay-1.0.0b3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07b46d0e9f5ccf116ffa0a3e49819cb9e8b069043bf447c600d651aa03d4929d
|
|
| MD5 |
9aba1fffcb1ac007e8579278178b4e4b
|
|
| BLAKE2b-256 |
50601aa0f73b67f7dc42a0856985daa2647b8aa42e2fba71850811ab8c8b00e5
|
File details
Details for the file mnemopay-1.0.0b3-py3-none-any.whl.
File metadata
- Download URL: mnemopay-1.0.0b3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76d2a814a3d23d591ecd52317a8b5a5cb83b9eb5a170ff66f284462d89d0ca34
|
|
| MD5 |
1df1acb7ea1471f12fcb6c866ca49801
|
|
| BLAKE2b-256 |
07c36e4775bf087969f856b3cf11b8ffc69bdaa3f86d47056a4b87175bef3677
|