Skip to main content

Cryptographically verified, relational, persistent memory for AI agents.

Project description

cryptomem

Cryptographically verified, relational, persistent memory for AI agents.

This package is the Python engine. Every fact is SHA-256 hashed and Ed25519 signed at write time; at read time each node is re-verified, and tampered or unsigned facts are dropped so the agent abstains rather than guessing.

from cryptomem import MemoryClient

mem = MemoryClient()
mem.archive("Project Phoenix", "Budget approved at $4.2M for FY26.")

for hit in mem.query("What budget did Project Phoenix get?"):
    print(hit.node.content, hit.confidence)

print(mem.answer("What budget did Project Phoenix get?"))

Runs on CPU-only hardware with zero model downloads via the default stub embedder and in-memory SQLite store. See the repository docs/ for the full architecture and roadmap.

Beyond retrieval

  • mem.respond(...) — answer plus a provenance block (injected node ids, verification status, Merkle root).
  • mem.proof(node_id) — a verifiable Merkle inclusion proof against the current ledger root.
  • mem.confidence(...) — semantic-entropy confidence over sampled answers.
  • mem.verify_answer(draft) — Chain-of-Verification re-check of a draft.
  • mem.contradictions() — same-entity nodes whose content diverges.
  • mem.suggest(...), mem.triggers(), mem.stage_facts(...), mem.pending(), mem.confirm(node_id) — proactive planner, triggers, and write-back of staged (pending) facts that you later confirm.

Store backends

Selected via CRYPTOMEM_MODE (or Settings(mode=...)):

  • sqlite (default) — zero-config local store; Python-side vector search.
  • neo4j — graph-native store over the Bolt driver (pip install "cryptomem[neo4j]", CRYPTOMEM_NEO4J_URI=...).
  • remote — signs locally and POSTs verbatim to a /cmem/v1/* backend (CRYPTOMEM_BACKEND_URL=...); falls back to SQLite if the backend is down.

Optional extras

pip install "cryptomem[local]" (MiniLM embeddings), [serve] (FastAPI Ollama-compatible sidecar + CLI), [neo4j] (graph store), [dev] (tooling).

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

cryptomem-2026.6.2.tar.gz (31.5 kB view details)

Uploaded Source

Built Distribution

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

cryptomem-2026.6.2-py3-none-any.whl (39.4 kB view details)

Uploaded Python 3

File details

Details for the file cryptomem-2026.6.2.tar.gz.

File metadata

  • Download URL: cryptomem-2026.6.2.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for cryptomem-2026.6.2.tar.gz
Algorithm Hash digest
SHA256 d01735be02541c7c543324f893377023ef72320415ffff13f7d017666591422f
MD5 2a85a17dda2b8d484eaa749be169f23e
BLAKE2b-256 fc4aa0dfb8f5f6cc55214eb6e8da0feb0bf7a2120d8d5423ebe859aa122befe3

See more details on using hashes here.

File details

Details for the file cryptomem-2026.6.2-py3-none-any.whl.

File metadata

  • Download URL: cryptomem-2026.6.2-py3-none-any.whl
  • Upload date:
  • Size: 39.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for cryptomem-2026.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c95f530015c2c79d00a85cdcf03b1ccb8638a3273307d186073bb79e940c5699
MD5 4ee75e569c1a5b978bff1e3c8849a632
BLAKE2b-256 b65977d878cb7c31a4237e6b35eef2f6c20bc7ad3de09172c0b357b155c1c7bf

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