Skip to main content

ctxvault

Python SDK for CtxVault — Persistent Memory for AI.

Install

pip install ctxvault

Usage

from ctxvault import CtxVault

vault = CtxVault(
    api_key="cv_your_key",
    project="your-project",
    base_url="https://ctxvault.dev",
)

# Store a memory
vault.remember(
    type="decision",
    title="Use PostgreSQL for persistence",
    content="Chose PostgreSQL with pgvector for vector search support.",
    tags=["database", "architecture"],
)

# Search memories
results = vault.recall("database decisions")

# Get context pack
pack = vault.context_pack("project architecture")
print(pack["pack"])

# List all memories
items = vault.list(status="verified")

API

CtxVault(api_key, project, base_url=None)

vault.remember(type, title, content, importance=5, tags=None) — Store a memory

vault.recall(query, k=5) — Search memories

vault.context_pack(query, max_tokens=2000) — Generate context pack

vault.list(status=None, type=None) — List memory items

vault.verify(id) — Verify a candidate

vault.pin(id) — Pin a verified item

vault.deprecate(id, reason) — Deprecate an item

License

MIT

Metadata

Release files for ctxvault-sdk 0.1.1

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

Source distribution (sdist)

Source distribution for ctxvault-sdk 0.1.1
File Size Uploaded
ctxvault_sdk-0.1.1.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ctxvault-sdk 0.1.1
File Interpreter ABI Platform
ctxvault_sdk-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / ctxvault_sdk-0.1.1.tar.gz

Download URL ctxvault_sdk-0.1.1.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a9371ed1bb79b55129d5d0e10fedb2bb42888c2c1028fa6b24d3fedc40ad3baa
BLAKE2b-256 checksum
How to use checksums
81d0523785d3e0ebb1f078899ad5e599fca2cab92b8c79f9279eaa6bb22601ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / ctxvault_sdk-0.1.1-py3-none-any.whl

Download URL ctxvault_sdk-0.1.1-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94bd147e6a6193cc136a03d0c46a93f9c3cf5b10246f1c9b97b547fc01f61600
BLAKE2b-256 checksum
How to use checksums
a6a4242ccc48109ba98224ffeacec3a378d7a1290438fdf2695b8e540390cbc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

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