Migrate from mem0
Point an existing mem0 client at FishMem with a base-URL and key change.
The FishMem API is mem0-compatible, so migrating is a drop-in change: swap the base URL and the API key. Your add/search/get/update/delete calls and your memory scopes stay exactly as they are.
What changes
Two things:
- Base URL →
https://fishmem.com - API key → a FishMem project key,
fm_...(see Authentication)
Everything else — request shapes, parameters, and the operation set — maps over directly.
Operation mapping
| mem0 operation | FishMem | Notes |
|---|---|---|
| add | add | Extracts durable facts from messages |
| search | search | Relevance recall for a query |
| get | get | Fetch a single memory by id |
| update | update | Revise an existing memory |
| delete | delete | Remove a memory |
The scope identifiers carry over unchanged. Keep your user_id, agent_id, and
run_id values stable and your existing per-user, per-agent, and per-run
isolation keeps working.
Before / after
The only edits are the endpoint and credential.
# Before (mem0)
curl https://api.mem0.ai/v1/memories \
-H "Authorization: Bearer <mem0-key>" \
-H "Content-Type: application/json" \
-d '{"messages":[{"role":"user","content":"I like dark mode"}],"user_id":"alex"}'
# After (FishMem)
curl https://fishmem.com/v1/memories \
-H "Authorization: Bearer fm_..." \
-H "Content-Type: application/json" \
-d '{"messages":[{"role":"user","content":"I like dark mode"}],"user_id":"alex"}'In a JS client it's the same idea — change the two fields where you initialize the client:
// Before
const client = new MemoryClient({
baseUrl: "https://api.mem0.ai",
apiKey: process.env.MEM0_API_KEY,
});
// After
const client = new MemoryClient({
baseUrl: "https://fishmem.com",
apiKey: process.env.FISHMEM_API_KEY, // fm_...
});Reversible
The compatibility works in both directions. Because you've only changed the base URL and key, you can point back at your previous provider just as easily — there is no one-way data transform locking you in.
Next
- API reference — exact endpoints, params, and responses
- Add memories — the add operation in detail