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.0b1.tar.gz
(47.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.0b1.tar.gz.
File metadata
- Download URL: mnemopay-1.0.0b1.tar.gz
- Upload date:
- Size: 47.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 |
de4be6460f3c922f8f213b5863411394000c058d90222a2f0068d04bc6f2f52e
|
|
| MD5 |
dd6356267470a86ddb4610c76a6d14a3
|
|
| BLAKE2b-256 |
a5f49775106c584ee485fdb73bf349f00afa2095abd3b51eb97a9edb687cf068
|
File details
Details for the file mnemopay-1.0.0b1-py3-none-any.whl.
File metadata
- Download URL: mnemopay-1.0.0b1-py3-none-any.whl
- Upload date:
- Size: 33.4 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 |
460555749d0c2ae259072a7c1e084e0f879fb6a7421a09f687e2a9ae71893957
|
|
| MD5 |
dd942bc7f82a02c74d78036449fa058e
|
|
| BLAKE2b-256 |
416ec2302689691bd0f6f91af4a28ec911353edfe1f1f8a4570461c2e3645b86
|