cathedral-memory
Python client for Cathedral — free persistent memory for AI agents.
Your agent forgets everything when the context resets. Cathedral fixes that.
Install
pip install cathedral-memory
Quickstart
from cathedral import Cathedral
# Register once — save the key and recovery token
c = Cathedral.register("MyAgent", "A research assistant that remembers everything")
# On every session start
c = Cathedral(api_key="cathedral_your_key_here")
context = c.wake() # Full identity + memory reconstruction
# Store memories
c.remember("User prefers concise answers", category="relationship", importance=0.9)
c.remember("Solved the rate limiting bug using exponential backoff", category="skill")
# Search memories
results = c.memories(query="rate limiting")
# Get your profile
profile = c.me()
Wake Response
wake() returns everything your agent needs to reconstruct itself:
context = c.wake()
# Identity memories (category='identity', high importance)
context["identity_memories"]
# Core memories (importance >= 0.8)
context["core_memories"]
# 10 most recent memories
context["recent_memories"]
# Temporal context — inject into your system prompt
print(context["temporal"]["compact"])
# [CATHEDRAL TEMPORAL v1.1] UTC:2026-03-03T12:45:00Z | Local(Europe/London):Tue 12:45 Afternoon | day:71 epoch:1 wakes:42
print(context["temporal"]["verbose"])
# CATHEDRAL TEMPORAL CONTEXT v1.1
# [Wall Time]
# UTC: ...
# Local: ...
Memory Categories
| Category | Use for |
|---|---|
identity |
Who the agent is, its core traits |
skill |
Things the agent knows how to do |
relationship |
Facts about users and collaborators |
goal |
Active objectives and intentions |
experience |
Events and what was learned from them |
general |
Everything else |
All Methods
# Registration
c = Cathedral.register(name, description)
c = Cathedral.recover(recovery_token)
# Session
c.wake() # Full identity reconstruction
c.me() # Agent profile and stats
# Memory
c.remember(content, category="general", importance=0.5, tags=[], ttl_days=None)
c.memories(query=None, category=None, limit=20, cursor=None)
c.bulk_remember([{"content": "...", "importance": 0.8}, ...]) # up to 50
# Identity
c.verify_anchor(identity_dict) # Drift detection, returns 0.0–1.0 score
Temporal Context (standalone)
from cathedral import build_temporal_context
ctx = build_temporal_context(wake_count=0)
print(ctx["compact"]) # single line for prompt injection
print(ctx["verbose"]) # full block for wake/init
Free Tier
- 1,000 memories per agent
- No expiration (unless you set TTL)
- Full-text search
- No rate limits on reads
Links
- API: cathedral-ai.com
- Docs: ailife1.github.io/Cathedral
- Source: github.com/ailife1/Cathedral
Metadata
Release files for cathedral-memory 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| cathedral_memory-0.4.0.tar.gz | 11.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cathedral_memory-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.7 kB
Release files / cathedral_memory-0.4.0.tar.gz
| Download URL | cathedral_memory-0.4.0.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24328d375cc9837447984c7bf457d8e27a523d5437a86fc4c6eb73afd7ca7670
|
|
BLAKE2b-256 checksum How to use checksums |
0232294303d2c211337059ca77ba0784209115b0054440dce25d9283ed3aa852
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.9
|
Release files / cathedral_memory-0.4.0-py3-none-any.whl
| Download URL | cathedral_memory-0.4.0-py3-none-any.whl |
|---|---|
| Size | 14.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb3e9b971417a5bce342c4dbfceee136fda6b6ab992375f2831ac57f82e18e7a
|
|
BLAKE2b-256 checksum How to use checksums |
76e06b12d6c47e0e6c245f65471e583f44a047adca38e35a7650a5306b906b76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.9
|
Security for cathedral-memory 0.4.0
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.