Skip to main content

TotalRecall Python SDK

The official Python client for the TotalRecall REST API. Standard-library only — no third-party dependencies.

from totalrecall import TotalRecall

# base_url defaults to hosted TotalRecall Cloud; pass it to override (e.g. local dev)
tr = TotalRecall(api_key="tr_demo_...")

# 1. Store a memory
# importance/confidence are OPTIONAL: omit them and the LLM ranks the memory
# in the background (store() returns immediately). Provide them to override —
# your values are never overwritten.
tr.store({
    "statement": "The stack uses CockroachDB.",
    "memoryType": "semantic",
    "scopeType": "project",
    "entities": [{"name": "CockroachDB", "type": "technology"}],
    "sensitivity": "normal",
    "requiresConfirmation": False,
})
tr.store({"statement": "The launch deadline is Friday.", "importance": 0.9, "confidence": 0.95})

# 2. Retrieve / search
tr.get_memory("<memory-id>")
tr.list_memories(type="semantic", limit=20)
# Filter by provenance source (connector memories carry their connector kind)
tr.list_memories(source="github")
tr.search("what database do we use", limit=5)
tr.search("launch date", filters={"sourceTypes": ["github", "slack"]})

# 3. Update / delete
tr.update_memory("<memory-id>", {"importance": 0.9})
tr.set_status("<memory-id>", "deleted")  # soft delete (reversible)

# 4. Sessions
session = tr.create_session(title="My session")
tr.close_session(session["sessionId"])
tr.get_messages(session["sessionId"])

# 5. Historical (as-of) memory
tr.as_of("2026-07-20")

# 6. Attribution / provenance
tr.provenance("<memory-id>")

# 7. Memory intelligence
tr.summarize("<memory-id>")
tr.cluster()
tr.list_clusters()

# 8. External AI agent: run the sandbox agent
tr.run_agent("<agent-id>", "research the best deployment option")

Authentication: pass api_key (Bearer) or cookie (session cookie). Demo mode (no key) works against a locally running server with TR_AUTH_MODE unset.

Metadata

Release files for totalrecall-sdk 0.1.3

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

Source distribution (sdist)

Source distribution for totalrecall-sdk 0.1.3
File Size Uploaded
totalrecall_sdk-0.1.3.tar.gz 11.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for totalrecall-sdk 0.1.3
File Interpreter ABI Platform
totalrecall_sdk-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 19.7 kB

Release files / totalrecall_sdk-0.1.3.tar.gz

Download URL totalrecall_sdk-0.1.3.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
90f5b87829adb3a55ac0f343cab2e35738e6fe9a06d64c440086277ae525b74b
BLAKE2b-256 checksum
How to use checksums
24c819d7a774c2642d95dd388cfadd404bcc2607774b1cd37b9f16264082b4cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / totalrecall_sdk-0.1.3-py3-none-any.whl

Download URL totalrecall_sdk-0.1.3-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c21a9e14ea641422ca1d193ee7380e971f4d1f159ff7e996561dc93722251dce
BLAKE2b-256 checksum
How to use checksums
63aca8ec9464577ef5e9fc6882453cec8fe1dbb1f929885f8307aa6decd9cde3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

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