项目预览
项目数据
项目介绍
Star 增长趋势
本站每日记录该项目 GitHub 星标变化,观测越久曲线越完整
数据来源:GitHub API 逐日快照 · 收录于 2026-08-09 · 当前星标 ★ 916
技术标签
使用教程
ℹ 本教程由 AI 依据该项目 README 整理,个别步骤可能需要按你的环境微调。
环境要求
- Docker
- Redis
安装与启动步骤
-
1起 Redis
Motorhead 用 Redis 存会话记忆,先准备一个实例。
docker run -d --name motorhead-redis -p 6379:6379 redis:7 -
2起服务
官方镜像暴露 8080,用 REDIS_URL 指向上面的实例。
docker run --name motorhead -p 8080:8080 -e PORT=8080 -e REDIS_URL='redis://host:6379' -d ghcr.io/getmetal/motorhead:latest -
3接进应用
在你的 LLM 应用里把历史消息改走 Motorhead 的 memory 接口,按 session id 隔离。
-
4控制上下文
它会自动做摘要与截断,长对话不会无限膨胀。
如何确认成功
8080 健康检查通过,同一 session 能取回历史消息。
注意事项
- 也可直接用仓库里的 docker-compose,一次拉起服务与 Redis。
核心亮点
- 提供开箱即用的 REST API,集成简单,无需深入底层实现
- 基于向量检索实现语义级记忆提取,支持模糊与关联回忆
- 存储后端可插拔,支持 Redis 与 SQLite,适配不同部署规模
不足之处
- 项目处于早期阶段,API 稳定性与生态文档有待完善
- 功能相对聚焦,缺少内置的对话管理或高级过滤策略
适用场景
- 为聊天机器人增加跨会话的长期记忆能力
- 构建 AI 助手时快速实现用户偏好与历史上下文调用
- 在边缘或私有化部署中提供轻量级 LLM 记忆服务
替代项目
MemGPT、LangChain Memory、Zep
上一篇:langtrace
同类项目推荐
openclaw-guardian
开源
给 OpenClaw 网关配个自动修复的看门狗,故障秒级自愈
️ Guardian watchdog for OpenClaw Gateway — auto-monitor, self-repair via doctor --···
runtm
开源
给AI编程代理一个安全沙箱,放心让它写代码和部署
Open-source sandboxes where coding agents build and deploy. Spin up isolated environ···
aqueduct
开源
在任意云上跑LLM和ML工作负载,但已停更
Aqueduct is no longer being maintained. Aqueduct allows you to run LLM and ML worklo···
openlake
开源
加速 LLM 训练与推理,让 GPU 不再等数据
OpenLake is a high performance storage engine for efficient LLM inference and GPU Tr···
portkey-python-sdk
开源
一键接入多模型,让 AI 应用稳定又安全
Build reliable, secure, and production-ready AI apps easily.
sig-mlops
开源
看这一份MLOps标准指南,少走弯路
CDF SIG MLOps
inference
开源
一行代码部署视觉模型,让任何设备秒变 CV 指挥中心
Turn any computer or edge device into a command center for your computer vision proj···
candle-vllm
开源
Rust 写的本地大模型推理服务,兼容 OpenAI API,开箱即用
Efficent platform for inference and serving local LLMs including an OpenAI compatibl···
ml_in_production
开源
看多种ML模型部署方式,选型不踩坑
A set of demo of deploying a Machine Learning Model in production using various meth···
