Skip to main content

Quickstart

Get your first memory written and searched in under 5 minutes.

1. Get an API key

Create an account at withfoundry.ai and copy your API key from the dashboard. Keys start with key_.

2. Install the SDK

3. Write a memory

Create a file index.mjs (or index.ts with your bundler):
Run it (with your key set):
You should see something like Written: ['mem_abc123...'].

4. Search memories

Add a search call to the same script:
Re-run. You’ll get semantically similar entries (e.g. the one about API keys).

5. Use context in a prompt

To build a context string for an LLM prompt:
Use context.text as part of your system or user message when calling your LLM.

Summary

Next: Memory Engine overview for namespaces, metadata, and limits, or Security Scanner to scan a repo.