Windows 11 without docker -Error adding to memory: Request timed out.
🐛 Describe the bug
OS: Windows 11 without docker or wsl or hyper-v use uv to deployed MCP\mem0> git status -s M openmemory/api/app/config.py M openmemory/api/app/utils/memory.py M openmemory/ui/next.config.dev.mjs ?? start_openmemory.bat
config.py: import os
USER_ID = os.getenv("USER_ID", os.getenv("USER", "default_user")) DEFAULT_APP_ID = os.getenv("APP_ID", "openmemory")
memory.py: import os
from mem0 import Memory
memory_client = None
def get_memory_client(custom_instructions: str = None): """ Get or initialize the Mem0 client.
Args:
custom_instructions: Optional instructions for the memory project.
Returns:
Initialized Mem0 client instance.
Raises:
Exception: If required API keys are not set.
"""
global memory_client
if memory_client is not None:
return memory_client
try:
config = {
"vector_store": {
"provider": "qdrant",
"config": {
#"collection_name": "openmemory",
#"host": "mem0_store",
#"port": 6333,
"collection_name": os.getenv("QDRANT_COLLECTION", "openmemory"),
"host": os.getenv("QDRANT_HOST", "localhost"),
"port": int(os.getenv("QDRANT_PORT", 6333)),
}
},
"embeddings": {
"provider": "ollama",
"config": {
"model": os.getenv("OLLAMA_MODEL", "nomic-embed-text:latest"),
"ollama_base_url": os.getenv("OLLAMA_BASE_URL", "http://localhost:11434"),
}
}
}
next.config.dev.mjs: /** @type {import('next').NextConfig} */ const nextConfig = { output: "standalone", eslint: { ignoreDuringBuilds: true, }, typescript: { ignoreBuildErrors: true, }, images: { unoptimized: true, }, allowedDevOrigins: ["127.0.0.1", "localhost"],
}
export default nextConfig
start_openmemory.bat:
@echo off chcp 65001 setlocal enabledelayedexpansion
REM 设置服务路径 set QDRANT_PATH=D:\Lib\Dev\AI\MCP\qdrant set API_PATH=D:\Lib\Dev\AI\MCP\mem0\openmemory\api set UI_PATH=D:\Lib\Dev\AI\MCP\mem0\openmemory\ui
REM 1. 启动Qdrant向量数据库服务 echo [1/3] 启动Qdrant向量数据库... start "Qdrant服务" /D "%QDRANT_PATH%" qdrant.exe
REM 2. 启动FastAPI后端服务 echo [2/3] 准备API服务环境... if exist "%API_PATH%.venv" ( start "API服务" /D "%API_PATH%" cmd /k "call .venv\Scripts\activate.bat && uv pip install -r requirements.txt && uvicorn main:app --host 0.0.0.0 --workers 4 --port 8765 --reload " ) else ( echo [警告] 未找到API虚拟环境,请先创建.venv )
REM 3. 构建前端项目 echo [3/3] 构建前端项目... if exist "%UI_PATH%\package.json" ( start "UI构建" /D "%UI_PATH%" cmd /k "pnpm install && pnpm dev -p 3002 " ) else ( echo [错误] 未找到UI项目package.json )
can u confirm the setup is correct ? it is most likely the api key wasn't provided may refer to setup https://github.com/mem0ai/mem0/tree/main/openmemory
@heng-ah can u confirm the setup is correct ? it is most likely the api key wasn't provided may refer to setup https://github.com/mem0ai/mem0/tree/main/openmemory
use ollama and qwen3:8b or qwen2.5vl:7b or phi4-mini-reasoning:latest ,api key saved in .env