> Documentation index: https://rift.sh/llms.txt

[Use Rift with your agent](https://rift.sh/docs/use-with.md)

# Use Rift with Mem0

An agent can keep facts in Mem0 and files in Rift.

## Set it up

The two need no connection to each other. Keep calling Mem0 for what the agent should remember, and have the agent write its files in a Rift folder that is shared with it.

When what the agent should remember is about a file, include the file's path, relative to the shared folder, in what you send to Mem0. That part of the path is the same on every machine that has the folder, so an agent on another machine that recalls the fact can open the file.

## What you get

Mem0 holds what the agent has learned. Rift holds the reports, datasets and other files that knowledge refers to, on the agent's own disk and on yours.

## How they differ

The comparison says what each one does, who can read your files and when to choose which.

[Rift vs Mem0](https://rift.sh/compare/rift-vs-mem0.md)
