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>=2.2,<3 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 requires the Candle source build and model setup. The default wheel accepts a bring-your-own semantic embedder.

import citadeldb
from strands import Agent
from citadeldb_strands_agents import CitadelSessionManager

sessions = CitadelSessionManager(
    "user-123",
    "sessions.cdl",
    key="your-passphrase",
    embedder=citadeldb.CandleEmbedder("/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 2.7.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 2.7.0
File Size Uploaded
citadeldb_strands_agents-2.7.0.tar.gz 10.6 kB Details

Built distribution (wheel)

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

Total release size: 17.1 kB

Release files / citadeldb_strands_agents-2.7.0.tar.gz

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

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 Sep 28, 2026.

Transparency log

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

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

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 Sep 28, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.7.0 This release

2 release files

2.6.1

2 release files

2.6.0

2 release files

2.5.0

2 release files

2.4.0

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.0

2 release files

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