Skip to main content

citadeldb-strands-agents

A Strands Agents session manager backed by Citadel. Encrypted at rest and embedded in your process.

pip install citadeldb-strands-agents

Requires citadeldb>=3.0,<4 and strands-agents>=1.15,<2.

The manager reads sessions by key; it has no semantic-recall method. This example uses local e5-large and needs the KodamaEmbed model files. Any other embedder works through the embedder protocol.

import citadeldb
from strands import Agent
from citadeldb_strands_agents import CitadelSessionManager

sessions = CitadelSessionManager(
    "user-123",
    "sessions.cdl",
    key="your-passphrase",
    embedder=citadeldb.KodamaEmbedder("/path/to/e5-large", preset="e5-large"),
)
agent = Agent(session_manager=sessions)

Implements SessionRepository and inherits RepositorySessionManager.

Redaction

For a valid redact_message, the adapter destroys the original record's key and stores the redaction as the replacement message. Ordinary updates store the supplied message.

Redactions must include role and content; {} is not a valid message.

Erasure

sessions.forget_session("user-123")  # returns the number of records erased

Strands has no delete in its repository protocol. This destroys the session, its agents and every message key. Pre-erasure backups or snapshots containing keys, and exported plaintext, are outside that erasure.

Notes

Messages are ordered by their conversation index rather than write time, so editing an earlier turn does not move it to the end of the history.

Citadel is embedded and one process owns the file. A path already open on this thread, under the same passphrase, is shared, so many sessions and other Citadel adapters can share one database; construct them on the same thread.

embedder= is required. Custom embedders expose dim, metric, model_id, and embed_with_cancel(texts, cancel_token). Accept None as the token; otherwise poll cancel_token.check() between bounded batches.

License

Apache-2.0

Metadata

Release files for citadeldb-strands-agents 3.0.0

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

Source distribution (sdist)

Source distribution for citadeldb-strands-agents 3.0.0
File Size Uploaded Provenance Actions
citadeldb_strands_agents-3.0.0.tar.gz 10.6 kB With provenance Details for citadeldb_strands_agents-3.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for citadeldb-strands-agents 3.0.0
File Interpreter ABI Platform Actions
citadeldb_strands_agents-3.0.0-py3-none-any.whl Python 3 none any Details for citadeldb_strands_agents-3.0.0-py3-none-any.whl

Total release size: 17.0 kB

Release files / citadeldb_strands_agents-3.0.0.tar.gz

Download URL citadeldb_strands_agents-3.0.0.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
06b7b06d24016b152dcd6a5bb6483e9c6ab5385b79e2b445d2638619ca5bfca7
BLAKE2b-256 checksum
How to use checksums
e5697845198a8b081fbf2315b32bc835d9460a4a5ea5ac2d5ce66f84c6953839
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / citadeldb_strands_agents-3.0.0-py3-none-any.whl

Download URL citadeldb_strands_agents-3.0.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2fdadc33d546527e19153a9862174f79d096e3a6bd787fdb7969889924a3178f
BLAKE2b-256 checksum
How to use checksums
b984cbcf021a293a0e4b4153faf91d298dcc18da002a8de48f489b5a3141640f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for citadeldb-strands-agents 3.0.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for citadeldb_strands_agents-3.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

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