@@ -16,6 +16,56 @@ A memory layer for AI agents using Redis as the vector database.
1616
1717### 1. Installation
1818
19+ #### Using Docker
20+
21+ Pre-built Docker images are available from:
22+ - ** Docker Hub** : [ redislabs/agent-memory-server] ( https://hub.docker.com/r/redislabs/agent-memory-server )
23+ - ** GitHub Packages** : [ ghcr.io/redis/agent-memory-server] ( https://github.com/redis/agent-memory-server/pkgs/container/agent-memory-server )
24+
25+ ** Quick Start (Development Mode)** :
26+ ``` bash
27+ # Start with docker-compose (includes Redis, API, MCP, and worker)
28+ docker-compose up
29+
30+ # Or run just the API server (requires separate Redis)
31+ docker run -p 8000:8000 \
32+ -e REDIS_URL=redis://your-redis:6379 \
33+ -e OPENAI_API_KEY=your-key \
34+ redislabs/agent-memory-server:latest
35+ ```
36+
37+ The default image runs in development mode (` --no-worker ` ), which is perfect for testing and development.
38+
39+ ** Production Deployment** :
40+
41+ For production, run separate containers for the API and background workers:
42+
43+ ``` bash
44+ # API Server (without background worker)
45+ docker run -p 8000:8000 \
46+ -e REDIS_URL=redis://your-redis:6379 \
47+ -e OPENAI_API_KEY=your-key \
48+ -e DISABLE_AUTH=false \
49+ redislabs/agent-memory-server:latest \
50+ agent-memory api --host 0.0.0.0 --port 8000
51+
52+ # Background Worker (separate container)
53+ docker run \
54+ -e REDIS_URL=redis://your-redis:6379 \
55+ -e OPENAI_API_KEY=your-key \
56+ redislabs/agent-memory-server:latest \
57+ agent-memory task-worker --concurrency 10
58+
59+ # MCP Server (if needed)
60+ docker run -p 9000:9000 \
61+ -e REDIS_URL=redis://your-redis:6379 \
62+ -e OPENAI_API_KEY=your-key \
63+ redislabs/agent-memory-server:latest \
64+ agent-memory mcp --mode sse --port 9000
65+ ```
66+
67+ #### From Source
68+
1969``` bash
2070# Install dependencies
2171pip install uv
@@ -159,33 +209,6 @@ uv run ruff check
159209# Start development stack
160210docker-compose up
161211```
162-
163- ## Production Deployment
164-
165- For production environments, use Docket workers for better reliability and scale:
166-
167- ``` bash
168- # Start the API server (production mode)
169- uv run agent-memory api
170-
171- # Start MCP server (production mode - SSE)
172- uv run agent-memory mcp --mode sse --port 9000
173-
174- # Start background workers (required for production)
175- uv run agent-memory task-worker --concurrency 10
176- ```
177-
178- ** Production features:**
179- - ** Authentication** : OAuth2/JWT with multiple providers (Auth0, AWS Cognito, etc.)
180- - ** Redis** : Requires Redis 8 or Redis with RediSearch module (RedisStack recommended)
181- - ** Background Processing** : Docket workers handle memory indexing, summarization, and compaction
182- - ** Scaling** : Supports Redis clustering and horizontal worker scaling
183- - ** Monitoring** : Structured logging and health checks included
184-
185- ** Development vs Production:**
186- - ** Development** : Use ` --no-worker ` flags for quick setup, tasks run inline
187- - ** Production** : Use separate worker processes for better performance and reliability
188-
189212## License
190213
191214Apache License 2.0 - see [ LICENSE] ( LICENSE ) file for details.
0 commit comments