Observed since 20 Oct, 23:31 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Redis implementation of the Store interface for ai-agentswarm.
Redis implementation of the Store interface for ai-agentswarm.
This project focuses on secure Redis connections. It supports:
pip install agentswarm-redis-store
If you are working on the source code:
# Clone the repository
cd agentswarm-redis-store
# Create and activate virtual environment
python3 -m venv venv
source venv/bin/activate
# Install in editable mode
pip install -e .
The RedisStore is designed with security as a primary concern:
password and modern Redis 6+ username/password ACLs.to_dict() returns a minimal configuration that triggers reconstruction from environment variables on the remote side, ensuring sensitive credentials are never serialized or transmitted.redis.Redis client for advanced use cases (e.g., custom pooling, sentinel).When using RedisStore.from_env() or remote reconstruction, the following environment variables are supported:
| Variable | Description | Default |
|---|---|---|
REDIS_HOST | Redis server hostname | localhost |
REDIS_PORT | Redis server port | 6379 |
REDIS_DB | Redis database number | 0 |
REDIS_USERNAME | Username for ACL authentication | None |
REDIS_PASSWORD | Password for authentication | None |
REDIS_SSL | Enable SSL/TLS connection (true/false) | false |
Set REDIS_HOST, REDIS_PASSWORD, etc., in your environment and use:
from agentswarm.redis.store import RedisStore
store = RedisStore.from_env()
import redis
from agentswarm.redis.store import RedisStore
client = redis.Redis(host="localhost", db=0)
store = RedisStore(redis_client=client)
store = RedisStore.from_env()
config = store.to_dict() # Returns {"recreate_from_env": True}
# On a remote machine (with its own REDIS_HOST env var)
remote_store = RedisStore.recreate(config)
You can use the RedisStore as the backend for the agentswarm.Context:
from agentswarm.redis.store import RedisStore
from agentswarm.datamodels.context import Context
# 1. Initialize the store (e.g., from environment)
store = RedisStore.from_env()
# 2. Inject into the Context
context = Context(
trace_id="my-unique-trace",
messages=[],
store=store,
tracing=my_tracing_instance
)
# 3. Use as usual
context.store.set("key", "value")
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 27 Jan 2026 | 8 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 23:31 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:658f6d412fe4c98cb88ea7ccb937200c61a2c4f31d63add520ca44aec700ff33