Skip to main content

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).

Metadata

Release files for cryptomem 2026.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cryptomem 2026.6.2
File Size Uploaded Provenance Actions
cryptomem-2026.6.2.tar.gz 31.5 kB Without provenance Details for cryptomem-2026.6.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cryptomem 2026.6.2
File Interpreter ABI Platform Actions
cryptomem-2026.6.2-py3-none-any.whl Python 3 none any Details for cryptomem-2026.6.2-py3-none-any.whl

Total release size: 70.9 kB

Release files / cryptomem-2026.6.2.tar.gz

Download URL cryptomem-2026.6.2.tar.gz
Size 31.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d01735be02541c7c543324f893377023ef72320415ffff13f7d017666591422f
BLAKE2b-256 checksum
How to use checksums
fc4aa0dfb8f5f6cc55214eb6e8da0feb0bf7a2120d8d5423ebe859aa122befe3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / cryptomem-2026.6.2-py3-none-any.whl

Download URL cryptomem-2026.6.2-py3-none-any.whl
Size 39.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c95f530015c2c79d00a85cdcf03b1ccb8638a3273307d186073bb79e940c5699
BLAKE2b-256 checksum
How to use checksums
b65977d878cb7c31a4237e6b35eef2f6c20bc7ad3de09172c0b357b155c1c7bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for cryptomem 2026.6.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page