> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2-codex-docs-audit-20260719-0149.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Redis

> Persist Agno sessions and other data in Redis.

`RedisDb` stores Agent, Team, and Workflow sessions, memories, knowledge, evaluations, and traces in [Redis](https://redis.io/).

## Usage

Install the `redis` and `openai` packages:

```shell theme={null}
uv pip install redis openai
```

### Run Redis

Install [Docker Desktop](https://docs.docker.com/get-started/get-docker/), then start Redis on port `6379`:

```bash theme={null}
docker run -d \
  --name my-redis \
  -p 6379:6379 \
  redis
```

```python redis_for_agent.py theme={null}
from agno.agent import Agent
from agno.db.redis import RedisDb

db = RedisDb(db_url="redis://localhost:6379")
agent = Agent(db=db)
```

## Parameters

<Snippet file="db-redis-params.mdx" />
