Agent skill

Tanstack AI Memory Mem0

by TanStack in TanStack/ai

A skill your agent uses when wiring mem0() from @tanstack/ai-memory/mem0 — a hosted memory adapter that talks to a mem0 server over plain HTTP (no SDK peer).

MITAuto-check passedAI & LLM Engineering

Install Tanstack AI Memory Mem0

skills CLI
$ npx skills add TanStack/ai --skill tanstack-ai-memory-mem0 -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install TanStack/ai tanstack-ai-memory-mem0 --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/TanStack/ai.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/ai-memory/skills/tanstack-ai-memory-mem0 .claude/skills/tanstack-ai-memory-mem0 && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
tanstack-ai-memory-mem0
GitHub stars
3.2k
Used in
1 other repo
Token cost
~419 tokens
SKILL.md length
125 words
Files
1
Skills in repo
24
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when wiring mem0() from @tanstack/ai-memory/mem0 — a hosted memory adapter that talks to a mem0 server over plain HTTP (no SDK peer).

  • Wiring mem0() from @tanstack/ai-memory/mem0 — a hosted memory adapter that talks to a mem0 server over plain HTTP (no SDK peer)
  • SKILL.md covers Setup and Options
  • Needs MEM0_ADMIN_API_KEY

What it does

Tanstack AI Memory Mem0 is an agent skill from TanStack/ai. 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.

Its SKILL.md is about 420 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering. It works with Mem0 and TanStack. The repository describes itself as: 🤖 Type-safe, provider-agnostic TypeScript AI SDK for streaming chat, tool calling, agents, and multimodal apps across OpenAI, Anthropic, Gemini, React, Vue, Svelte, and Solid. The licence is MIT.

When your agent uses it

  • Wiring mem0() from @tanstack/ai-memory/mem0 — a hosted memory adapter that talks to a mem0 server over plain HTTP (no SDK peer)

Example prompts

  • “/tanstack-ai-memory-mem0”

Requirements

  • A credential in MEM0_ADMIN_API_KEY

What it can do on your machine

Read from SKILL.md and the folder at commit 5a41239. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • MEM0_ADMIN_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Tanstack AI Memory Mem0 loads about 419 tokens when it runs. Until then it costs about 48 tokens; SKILL.md has 125 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~48
When it runs · the whole SKILL.md, loaded when a task matches
~419

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from TanStack/ai at commit 5a41239, republished under its MIT licence (© TanStack). 125 words, ~419 tokens.

Download SKILL.mdSave it as .claude/skills/tanstack-ai-memory-mem0/SKILL.md (or your agent's skills folder).
name
tanstack-ai-memory-mem0
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.

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

ts
import { memoryMiddleware } from '@tanstack/ai-memory'
import { mem0 } from '@tanstack/ai-memory/mem0'

// Build per request from the server-validated session — never from req.body.
function memoryFor(session: { userId: string; threadId: string }) {
  const memory = mem0({ user: session.userId }) // baseUrl defaults to MEM0_URL

  return memoryMiddleware({
    adapter: memory,
    scope: { threadId: session.threadId, userId: session.userId },
  })
}

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 — mem0 user_id (falls back to scope.userId, then 'demo-user').
  • baseUrl — mem0 server URL (default MEM0_URL or http://localhost:8000).
  • apiKey — bearer token (default MEM0_ADMIN_API_KEY).
  • rerank (default true), threshold (default 0.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.

© TanStack, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in packages/ai-memory/skills/tanstack-ai-memory-mem0 of TanStack/ai.

Open the folder on GitHubat commit 5a41239

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in TanStack/ai, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Tanstack AI Memory Mem0 next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Tanstack AI Memory Mem0 compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tanstack AI Memory Mem0 this skillTanStack/ai3.2k1 repos~419Automated safety check: PassMIT
Mem0 Platform SDKmem0ai/mem067k1 repos~1.9kAutomated safety check: PassApache-2.0
Mem0 Provider for Vercel AI SDKmem0ai/mem067k—~1.9kAutomated safety check: PassApache-2.0
Tanstack AIsecondsky/claude-skills2271 repos~3.6kAutomated safety check: NotesMIT
Build Agentchmonitor/chmonitor298—~1.8kAutomated safety check: PassGPL-3.0
Mem0 CLI Memory Commandsmem0ai/mem067k—~1.4kAutomated safety check: NotesApache-2.0

Similar skills

  • Adds persistent memory to AI apps with the Mem0 Python and TypeScript SDKs: store, search, update and delete user memories, with framework integrations.

    67k GitHub starsUsed in 1 repo~1.9k tokens
    AI & LLM EngineeringAuto-check passed
  • Adds persistent memory to Vercel AI SDK apps with the Mem0 provider, using a wrapped model or standalone retrieve and store utilities.

    67k GitHub stars~1.9k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Tanstack AI

    secondsky/claude-skills

    TanStack AI (alpha) provider-agnostic type-safe chat with streaming for OpenAI, Anthropic, Gemini, Ollama.

    227 GitHub starsUsed in 1 repo~3.6k tokens
    AI & LLM EngineeringAuto-check: notes
  • Build Agent

    chmonitor/chmonitor

    Build an AI-agent application end-to-end — from an empty repo or an existing codebase.

    298 GitHub stars~1.8k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Adds, searches, lists, updates and deletes memories on the Mem0 platform from the terminal with the mem0 command, including a JSON mode built for agents.

    67k GitHub stars~1.4k tokensUpdated yesterday
    Agent WorkflowsAuto-check: notes
  • Benchmark

    ThinkfleetAI/memmesh

    Run MemMesh's competitive benchmark harness (LOCOMO / BEAM) to compare retrieval quality, tokens, latency, and cost against Mem0, Zep, full-context, and naive-RAG baselines.

    419 GitHub stars~460 tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed

More from TanStack/ai

All 24 skills in this repo
  • I Have Adhd

    TanStack/ai

    A skill your agent uses when the user invokes /i-have-adhd, says they have ADHD, or asks for ADHD-friendly output.

    3.2k GitHub starsUsed in 5 repos~1.8k tokens
    Auto-check passed
  • PR Sweep

    TanStack/ai

    Sweep open (or listed) PRs with up to 100 parallel agents: security-scan outside contributors, rebase onto main when behind (push --force-with-lease), approve pending first-time-contributor CI when…

    3.2k GitHub stars~4.6k tokensUpdated today
    Auto-check passed
  • A skill your agent uses when wiring honcho() from @tanstack/ai-memory/honcho — a hosted memory adapter where recall is a dialectic answer over the user's representation (no discrete fragments).

    3.2k GitHub starsUsed in 1 repo~457 tokens
    Auto-check passed
  • A skill your agent uses when wiring inMemory() from @tanstack/ai-memory/in-memory — explains setup, options (embedder, extract, topK/minScore), when to pick it (dev/tests/single-process demos), and…

    3.2k GitHub starsUsed in 1 repo~448 tokens
    Auto-check passed
  • A skill your agent uses when wiring redis() from @tanstack/ai-memory/redis in production — covers client setup (ioredis or node-redis via fromNodeRedis), the storage model, client-side ranking…

    3.2k GitHub starsUsed in 1 repo~840 tokens
    Auto-check passed
  • A skill your agent uses when adding a public teaching example or a docs tutorial.

    3.2k GitHub stars~1.4k tokensUpdated today
    Auto-check passed

Works with

Questions about Tanstack AI Memory Mem0

What does Tanstack AI Memory Mem0 do?

A skill your agent uses when wiring mem0() from @tanstack/ai-memory/mem0 — a hosted memory adapter that talks to a mem0 server over plain HTTP (no SDK peer). Tanstack AI Memory Mem0 is an agent skill from TanStack/ai. 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).

When should I use Tanstack AI Memory Mem0?

Tanstack AI Memory Mem0 fits situations like: wiring mem0() from @tanstack/ai-memory/mem0 — a hosted memory adapter that talks to a mem0 server over plain HTTP (no SDK peer).

How do I install Tanstack AI Memory Mem0 in Claude Code?

Run `npx skills add TanStack/ai --skill tanstack-ai-memory-mem0 -a claude-code`. Or copy the skill folder (packages/ai-memory/skills/tanstack-ai-memory-mem0 in TanStack/ai) into .claude/skills/tanstack-ai-memory-mem0 in your project. Claude Code loads it when a task matches its description.

How do I install Tanstack AI Memory Mem0 in Codex?

Run `npx skills add TanStack/ai --skill tanstack-ai-memory-mem0 -a codex`. Or copy the skill folder (packages/ai-memory/skills/tanstack-ai-memory-mem0 in TanStack/ai) into .agents/skills/tanstack-ai-memory-mem0 in your project. Codex loads it when a task matches its description.

Can I use Tanstack AI Memory Mem0 in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add TanStack/ai --skill tanstack-ai-memory-mem0 -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tanstack-ai-memory-mem0, .gemini/skills/tanstack-ai-memory-mem0, .github/skills/tanstack-ai-memory-mem0 and .opencode/skills/tanstack-ai-memory-mem0 in your project.

What does Tanstack AI Memory Mem0 need to run?

Going by SKILL.md and its folder, Tanstack AI Memory Mem0 needs credentials named MEM0_ADMIN_API_KEY. Our summary lists: A credential in MEM0_ADMIN_API_KEY.

Does Tanstack AI Memory Mem0 access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Tanstack AI Memory Mem0 safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Tanstack AI Memory Mem0 use?

Tanstack AI Memory Mem0 is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Tanstack AI Memory Mem0 use?

About 419 tokens (SKILL.md is roughly 1.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Tanstack AI Memory Mem0?

Skills that share tags, products or a category with Tanstack AI Memory Mem0: Mem0 Platform SDK (mem0ai/mem0, 67k stars), Mem0 Provider for Vercel AI SDK (mem0ai/mem0, 67k stars), Tanstack AI (secondsky/claude-skills, 227 stars) and Build Agent (chmonitor/chmonitor, 298 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Tanstack AI Memory Mem0?

TanStack (a GitHub organization) maintains it in TanStack/ai, which has 3,169 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on October 7, 2026.

Source: TanStack/ai on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.