# Save to Cozy

> Let any agent save a web page, chat or note to your Cozy Inbox with a private link, no setup needed. Or save by email or MCP.

Everything you save lands in your **Inbox** as a source, under
`sources/inbox/`. Agents can then organize it into wiki pages. Saving the same
URL again updates the copy you already have.

## From any agent [#from-any-agent]

Your workspace has a private save link. Any agent that can send a web request
or open a URL can save with it: no MCP server, no sign-in, no headers.

<Steps>
  <Step title="Create your save link">
    In Cozy, open **Agents** and choose **Create save link** under **Save from
    any agent**.
  </Step>
  <Step title="Tell your agent once">
    Choose **Copy instructions for agents** and paste them into your agent's
    custom instructions or memory. You can also paste them into a chat.
  </Step>
  <Step title="Ask">
    On any page or in any chat, say **"save this to Cozy"**.
  </Step>
</Steps>

Agents that don't know the link's format can open it: it explains itself. It
also has a form for pasting text by hand.

The link accepts any of these:

```sh
# JSON
curl https://cozy.cloud/save/YOUR_TOKEN \
  -H "content-type: application/json" \
  -d '{"content":"# Post\n...","url":"https://example.com/post","title":"Post"}'

# Raw text, with url and title in the query string
curl "https://cozy.cloud/save/YOUR_TOKEN?url=https://example.com/post" \
  -H "content-type: text/markdown" --data-binary @post.md

# Just a URL, for agents that can only open links (URL-encode each value)
https://cozy.cloud/save/YOUR_TOKEN?url=...&title=...&text=...
```

The link works like a password: anyone who has it can save to your Inbox, but
can't read anything. Choose **New link** to replace it, or **Turn off** to stop
it. Replacing the link also replaces your save email address.

## By email [#by-email]

The same card shows an email address, `save-…@cozy.cloud`. Send or forward
anything to it. The subject becomes the title, and the sender, date and text
are saved. A message forwarded twice updates the same source. Attachments
aren't saved yet; only the message text is.

## With MCP [#with-mcp]

Agents connected to Cozy's MCP server, such as [ChatGPT](/docs/agents/chatgpt),
[Claude](/docs/agents/claude) and [Cursor](/docs/agents/cursor), save with the
`cozy_save` tool. Allow **Add source material** when you connect them.

## With a credential [#with-a-credential]

Scripts that already use a workspace credential can call `POST /api/save`
with `Authorization: Bearer cozy_...` and the same JSON or raw body. The
credential picks the workspace. See the [Ingest API](/docs/ingest) for batches.

