> ## Documentation Index
> Fetch the complete documentation index at: https://docs-v1.agno.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Redis Agent Storage

Agno supports using Redis as a storage backend for Agents using the `RedisStorage` class.

## Usage

### Run Redis

Install [docker desktop](https://docs.docker.com/desktop/install/mac-install/) and run **Redis** on port **6379** using:

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

```python redis_storage_for_agent.py theme={null}
from agno.agent import Agent
from agno.storage.redis import RedisStorage
from agno.tools.duckduckgo import DuckDuckGoTools

# Initialize Redis storage with default local connection
storage = RedisStorage(
    # Prefix for Redis keys to namespace the sessions
    prefix="agno_test",
    # Redis host address
    host="localhost",
    # Redis port number
    port=6379,
)

# Create agent with Redis storage
agent = Agent(
    storage=storage,
)
```

## Params

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

## Developer Resources

* View [Cookbook](https://github.com/agno-agi/agno/blob/main/cookbook/storage/redis_storage/redis_storage_for_agent.py)
