# Building a Memory Agent with the OpenAI Agents SDK and Zep

By Daniel Chalef · Mar 14, 2025 · https://www.getzep.com/blog/building-a-memory-agent-with-the-openai-agents-sdk-and-zep/ · Tags: Integrations, Agent memory, Guides and tutorials

A video walkthrough demonstrating using Zep's agent memory and the new OpenAI Agents SDK to build an AI agent with long-term memory.

I've been experimenting with the new [OpenAI Agents SDK](https://openai.github.io/openai-agents-python/) and built a [memory agent using Zep](https://www.getzep.com/). In this video, I'll walk you through a quick demo of how I've integrated the framework and Zep to create a [memory agent CLI app](https://github.com/getzep/zep-python/tree/main/examples/openai-agents-sdk), demonstrate the dynamic updating of user preferences, and showcase Zep's memory capabilities.

[Building a Memory Agent with the OpenAI Agents SDK and Zep](https://player.vimeo.com/video/1065733817?app_id=122963)

## The new OpenAI Agents SDK

The new OpenAI Agents SDK provides a simple, nicely abstracted approach to build agentic applications without getting in your way. I found the SDK intuitive and lightweight, providing just enough structure to keep things clear and maintainable without becoming opaque or restrictive.

It boils down to three core concepts:

- **Agents**: LLMs equipped with instructions and tools.
- **Handoffs**: Easy delegation between agents for specialized tasks.
- **Guardrails**: Simple validation to ensure agent inputs stay on track.

These straightforward abstractions give you the flexibility to build complex, production-ready applications quickly. The framework has built-in tracing, making visualizing, debugging, and optimizing your agent simple.

This example memory agent is intentionally simple, with no hand-offs between agents and no guardrails.

If you've been searching for a solid agent framework but haven't found one that works for you, I'd recommend checking out the new OpenAI Agents SDK.

### Next Steps

- Get the [Agent source on GitHub](https://github.com/getzep/zep-python/tree/main/examples/openai-agents-sdk)
- Learn more about [building with Zep](https://help.getzep.com/welcome)
- Read the [OpenAI SDK docs](https://openai.github.io/openai-agents-python/)
- Sign up for a [free Zep account](https://app.getzep.com/api/auth/register).
