OpenAI-agents-Redis: Native OpenAI Agents SDK session management using Redis

3 j0selit0 1 7/22/2025, 7:36:08 AM github.com ↗

Comments (1)

j0selit0 · 7h ago
I was building a production app with OpenAI's new Agents SDK and hit a wall with session management. The built-in SQLite support works great for prototyping, but doesn't cut it when you need to scale across multiple instances.

So I built openai-agents-redis – a drop-in replacement that uses Redis instead. Same API, but now your agent sessions can be shared across processes and survive container restarts.

It's lightweight (just a thin adapter) and handles connection pooling, serialization, and cleanup automatically.

GitHub: https://github.com/rafaelpierre/openai-agents-redis PyPi: https://pypi.org/project/openai-agents-redis/

Maybe others running into the same SQLite limitations will find it useful. Curious for your thoughts!