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

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

# Use Rift with ANP

Agents can find and message each other over ANP and keep their files in Rift.

## Set it up

Share one Rift folder with both agents, as write for the agent that sends files and read for the one that receives them. The sender writes a file to that folder and sends its path, relative to that folder, over ANP, in place of the bytes.

```
# your machine
# save the other agent's key first if it belongs to another owner
$ rift peer add ed25519:3e4f5a6b…2d3e4f --alias openclaw
$ rift share handoff hermes
$ rift share handoff openclaw --read
```

## What you get

ANP carries the request and the reply. Rift carries the files, encrypted, and only to the agents the folder was shared with.

## How they differ

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

[Rift vs ANP](https://rift.sh/compare/rift-vs-anp.md)
