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 withkey_.
2. Install the SDK
3. Write a memory
Create a fileindex.mjs (or index.ts with your bundler):
Written: ['mem_abc123...'].
4. Search memories
Add a search call to the same script:5. Use context in a prompt
To build a context string for an LLM prompt:context.text as part of your system or user message when calling your LLM.
Summary
| Step | What you did |
|---|---|
| 1 | Got an API key from the dashboard |
| 2 | Installed @withfoundry/sdk |
| 3 | Wrote a memory with memory.write() |
| 4 | Queried with memory.search() |
| 5 | Fetched injectable context with memory.getContext() |