Overview
Motorhead is a memory server written in Rust for managing conversation context in LLM applications. Built by Metal, it provides a fast, lightweight solution for storing and retrieving conversation history with automatic summarization.
Key Features
**High Performance**: Built in Rust for speed and efficiency**Redis Backend**: Uses Redis for fast, reliable storage**Automatic Summarization**: Summarizes long conversations to fit context windows**Session Management**: Manages multiple conversation sessions**Simple API**: RESTful API for easy integrationWhen to Use Motorhead
Motorhead is ideal for:
Applications needing fast conversation memorySelf-hosted deployments requiring performanceSimple conversation history managementTeams comfortable with Redis infrastructurePros
Very fast (Rust + Redis)Simple, focused functionalityEasy to self-hostLightweight footprintAutomatic context summarizationCons
Less feature-rich than alternativesRequires RedisLimited to conversation memorySmaller communityGetting Started
# Run with Docker
docker run --name motorhead -p 8080:8080 \
-e REDIS_URL=redis://localhost:6379 \
getmetal/motorhead
import requests
# Add messages
requests.post("http://localhost:8080/sessions/123/memory", json={
"messages": [
{"role": "user", "content": "Hello!"},
{"role": "assistant", "content": "Hi there!"}
]
})
# Get memory
response = requests.get("http://localhost:8080/sessions/123/memory")
Architecture
Motorhead is designed for simplicity:
**Memory Store**: Redis-backed message storage**Summarizer**: LLM-based conversation summarization**REST API**: Simple HTTP interfacePricing
**Open Source**: Free, MIT license