strands-agents-extensions
Community extensions for the Strands Agents SDK — session managers and plugins in one package with optional extras.
Installation
Install the base package:
pip install strands-agents-extensions
Install with specific extras:
# SQLite session manager
pip install strands-agents-extensions[sqlite]
# All plugins
pip install strands-agents-extensions[plugins]
# All session managers
pip install strands-agents-extensions[session-managers]
# Everything
pip install strands-agents-extensions[all]
Quick Start
Session Managers
from strands_agents_extensions.session_managers import SQLiteSessionManager
# Create a SQLite-backed session manager
session_manager = SQLiteSessionManager(
session_id="chat-session-001",
db_path="sessions.db",
)
# Use with Strands Agent
agent = Agent(
session_manager=session_manager,
# ... other config
)
Plugins
from strands_agents_extensions.plugins import BudgetPlugin, RateLimiterPlugin
# Add budget control to your agent
budget_plugin = BudgetPlugin(max_cost_per_session=10.0)
# Add rate limiting
rate_limiter = RateLimiterPlugin(model_calls_per_minute=60)
agent = Agent(
plugins=[budget_plugin, rate_limiter],
# ... other config
)
Available Extras
| Extra | Description | Dependencies |
|---|---|---|
sqlite |
SQLite session manager | None (stdlib) |
budget |
Budget control plugin | litellm<=1.82.6 |
rate-limiter |
Rate limiting plugin | None |
redaction |
PII redaction plugin | None |
fallback |
Model fallback plugin | None |
session-managers |
All session managers | sqlite |
plugins |
All plugins | budget + rate-limiter + redaction + fallback |
all |
Everything | session-managers + plugins |
Available Components
Session Managers
- SQLiteSessionManager: Local SQLite-backed session storage with full conversation history
Plugins
- BudgetPlugin: Track and enforce token budget limits
- RateLimiterPlugin: Control request rate to avoid API throttling
- MessageRedactionPlugin: Automatically redact PII from messages
- ModelFallbackPlugin: Implement model fallback strategies on failures
Development
Running Tests
This project uses Hatch for environment management and pytest for testing.
# Install Hatch if you don't have it
pip install hatch
# Run all tests
hatch run test
# Run with verbose output
hatch run test -v
# Run a specific test file
hatch run test tests/plugins/test_budget.py
# Run tests matching a pattern
hatch run test -k test_budget
If you already have a virtual environment with dev dependencies installed, you can run pytest directly:
pytest tests/
License
Apache-2.0
Contributing
Contributions welcome! This is a community-maintained package for extending the Strands Agents SDK.
Metadata
Release files for strands-agents-extensions 0.1.1
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 | Actions |
|---|---|---|---|---|
| strands_agents_extensions-0.1.1.tar.gz | 29.7 kB | Without provenance | Details for strands_agents_extensions-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| strands_agents_extensions-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for strands_agents_extensions-0.1.1-py3-none-any.whl |
Total release size: 51.0 kB
Release files / strands_agents_extensions-0.1.1.tar.gz
| Download URL | strands_agents_extensions-0.1.1.tar.gz |
|---|---|
| Size | 29.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d37256ef039563eda0508761da31e4bda48b176f868d29f441d1271142ce47c6
|
|
BLAKE2b-256 checksum How to use checksums |
5013ea512c581627fbddd52fc12229021fc2f715b1e3143760fd995bfd4f514a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / strands_agents_extensions-0.1.1-py3-none-any.whl
| Download URL | strands_agents_extensions-0.1.1-py3-none-any.whl |
|---|---|
| Size | 21.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51f728587a4e47d88dd17a9580495e7a141fe2ea1bfe0d4aed329906073ca012
|
|
BLAKE2b-256 checksum How to use checksums |
2ea0e7bebe17b321e6324443dfeed3340117b9aed0686ef035639e765eb51092
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for strands-agents-extensions 0.1.1
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.