Skip to content

Quickstart

This takes about five minutes. You’ll make an API key in the console, write a memory, recall it and forget it, all with curl.

To connect an agent such as Claude Code or Cursor instead, with no key, see Connect over MCP.

  1. Go to app.metaphorlabs.io and sign in with Google or GitHub. Use the email we invited.
  2. Name your business, then choose the EU, the one region open. See Data, privacy and erasure for what that covers.
  3. Choose what you’ll use Metaphor for, then select Create business.
  4. Select Go to the console.

Sign in the same way each time. Your account keeps the method you first used, so the other provider is refused even with the same email, and the console can’t add a second method yet.

If sign-in is refused, check you chose the account for the email we invited. If it still fails, write to support@metaphoric.io.

  1. In the sidebar, open API keys, then Create key.
  2. Give it a name, such as quickstart.
  3. Under Access, keep Read, Write and Forget checked.
  4. Under Expires, keep In 90 days, or choose another. Every key ends within a year.
  5. Select Create key, then copy the key. It is shown once.

Put it in your shell:

Terminal window
export METAPHOR_API_KEY=<your key>

The key acts for you, in your own space, personal. Keep it out of code and chat.

Terminal window
curl https://api.metaphorlabs.io/v1/spaces/personal/memories \
-H "Authorization: Bearer $METAPHOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "Maya prefers code review comments as a numbered list.",
"source": { "name": "api", "id": "quickstart-1" }
}'

The answer is 202 Accepted:

{ "id": "4f1c9a7e2b8d06c3a5e9f17b20d4c8e6", "status": "accepted" }

If the answer is 503 with “This space is starting”, nothing was done: the models behind your space are starting, which takes about 46 seconds. Send the same request again after 30 seconds. See “This space is starting”.

Keep the id. It’s made from the source, so sending the same source and content again changes nothing.

source.id is your ID for the item, such as a ticket number. Don’t put content or personal data in it: see Data, privacy and erasure.

A memory is kept as soon as the write answers, and is ready for recall a short time later. Then ask:

Terminal window
curl https://api.metaphorlabs.io/v1/spaces/personal/recall \
-H "Authorization: Bearer $METAPHOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "question": "How does Maya like code review comments?" }'

The answer is lines of context, each with the memories it came from:

{
"items": [
{
"text": "Maya prefers code review comments as a numbered list.",
"heading": null,
"occurred_at": null,
"memory_ids": ["4f1c9a7e2b8d06c3a5e9f17b20d4c8e6"]
}
]
}

An empty items means nothing in the space answers the question yet. If you recalled right after writing, wait a few seconds and ask again.

Terminal window
curl https://api.metaphorlabs.io/v1/spaces/personal/forget \
-H "Authorization: Bearer $METAPHOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "memory_ids": ["4f1c9a7e2b8d06c3a5e9f17b20d4c8e6"] }'

The answer is 202 Accepted:

{
"id": "b7e04c2a9d3f18e6c5a0f29d4b81e7c3",
"state": "open",
"undo_until": "2027-01-31T09:30:00Z",
"erased_at": null
}

The memory leaves recall at once. You can undo the forget until undo_until, 30 days from now. After that it is erased for good. Recall the same question again and items is empty.

Add https://mcp.metaphorlabs.io/mcp to Claude Code, Cursor, Claude or ChatGPT and sign in. The agent reaches the same personal space as your key, with no key of its own. Connect over MCP has the steps for each client.

  • Playground. Chat recalls against each message you send, then keeps it as a memory, unless every sentence is a question and none says I, me, my, mine, we, us or our, such as “How does Maya like code review comments?”. Search recalls without keeping anything. Demo plays a sample conversation and doesn’t touch your space. The side panel shows what was kept, recalled and forgotten, with Forget and Undo while the page is open.
  • Memories. Lists the memories in your space. Add memory writes one by hand. Each row’s ⋯ menu has Forget, then Undo forget while the page is open.
  • A space holds a limited amount. Forgetting frees room only when each forget’s 30-day undo window closes, not when you forget.
  • To leave, erase your business. Open Account settings from the gear beside your name, then select Erase business. It revokes your keys, erases your spaces and deletes your account. See Data, privacy and erasure.
  • Questions go to support@metaphoric.io.