
Skill
tanstack-ai-memory-mem0
wire TanStack AI mem0 memory adapter
Description
Use when wiring mem0() from @tanstack/ai-memory/mem0 — a hosted memory adapter that talks to a mem0 server over plain HTTP (no SDK peer). Requires a running mem0 server.
SKILL.md
mem0 Memory Adapter
Hosted recall/save adapter backed by a mem0 server. mem0 owns extraction and ranking
server-side. Talks to the server over plain HTTP — no SDK peer dependency.
Setup
import { memoryMiddleware } from '@tanstack/ai-memory'
import { mem0 } from '@tanstack/ai-memory/mem0'
const memory = mem0({ user: currentUserId }) // baseUrl defaults to MEM0_URL
memoryMiddleware({ adapter: memory, scope })
Requires a running mem0 server (self-hosted or hosted). Point it via baseUrl (or
MEM0_URL); pass apiKey (or MEM0_ADMIN_API_KEY) when secured.
Options
user— mem0user_id(falls back toscope.userId, then'demo-user').baseUrl— mem0 server URL (defaultMEM0_URLorhttp://localhost:8000).apiKey— bearer token (defaultMEM0_ADMIN_API_KEY).rerank(defaulttrue),threshold(default0.1) — search tuning.
Scope fields: requests send user_id and run_id (scope.threadId). tenantId
and namespace are not sent — encode multi-tenant isolation into user if needed.
save posts the { user, assistant } turn to /memories; recall queries /search
and renders the results into the system prompt. mem0 exposes no LLM tools.
More skills from the ai repository
View all 27 skillsai-code-mode
execute sandboxed TypeScript code with LLMs
Jul 16AI SDKCode ExecutionSandboxingTanStack +1ai-core
configure TanStack AI agent features
Jul 30AgentsAIMiddlewareai-core/adapter-configuration
configure AI provider adapters
Jul 16AI SDKConfigurationLLMTanStackai-core/ag-ui-protocol
implement TanStack AI streaming protocol
Jul 16API DevelopmentLLMTanStackai-core/chat-experience
implement chat experiences with TanStack AI
Jul 30API DevelopmentFrontendLLMTanStackai-core/client-persistence
implement browser chat persistence for TanStack AI
Jul 30AIFrontendPersistenceTanStack
More from TanStack
View publisheraggregation
perform data aggregation in TanStack Table
table
Jul 30Data AnalysisFrontendTanStackapi-not-found
diagnose TanStack Table API errors
table
Jul 30DebuggingFrontendTanStackcell-selection
select rectangular cell ranges in tables
table
Jul 30Data AnalysisTanStackUI Componentsclient-vs-server
manage TanStack Table data pipelines
table
Jul 30Data PipelineFrontendPerformanceTanStackcolumn-faceting
build faceted filter UIs
table
Jul 30Data VisualizationFrontendTanStackcolumn-filtering
implement column filtering in TanStack Table
table
Jul 30Data AnalysisFrontendTanStack