Decentralized agent memory for the Lightning economy. Nostr identity, L402 payments, MCP server.
SaferSkills independently audited lightning-memory (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Decentralized agent memory for the Lightning economy. Store, query, and recall memories with cryptographic identity (Nostr) and micropayments (Lightning/L402).
pip3 install lightning-memoryNo API keys required. Runs fully local by default. Optional Nostr relay sync and Lightning L402 gateway for decentralized/paid access.
AI agents can transact via Lightning (L402) but can't remember what they paid for, which vendors are reliable, or their spending patterns. Lightning Memory fixes this:
| Tool | Purpose |
|---|---|
store_memory | Store a memory with content, tags, and metadata |
query_memories | Semantic search across stored memories |
get_memory | Retrieve a specific memory by ID |
list_memories | List recent memories with optional filters |
delete_memory | Remove a memory by ID |
get_identity | Get the current Nostr identity (npub) |
sync_status | Check Nostr relay sync status |
from lightning_memory import MemoryStore
store = MemoryStore()
store.add("Vendor X charges 50 sats for image gen, quality 8/10")
results = store.query("reliable image generation vendors")python -m lightning_memory.serverOr add to your MCP client config:
{
"lightning-memory": {
"command": "python3",
"args": ["-m", "lightning_memory.server"]
}
}~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.