Skip to content
All films

BuildersFilm, 1 minute 47 seconds

The SDK quickstart

The whole SDK in under two minutes: install the client, create a key, add what a user says, search it in plain words and put what memory knows in the prompt. In Python, then TypeScript.

What happens

  1. Install the client: pip install alexein on Python 3.10 or newer, or npm install @alexein/sdk on Node 20, Bun, Deno or the edge. Create a key in the Console and export it as ALEXEIN_API_KEY. It reads and writes one project, and stays on your server, never in a browser.

  2. Name your user with the id your app already uses, and Dana has a memory of her own inside your project. Add what she says, “I moved to Lisbon for the job at Acme.”, and a note that she’s vegetarian.

  3. Search in plain words. “Where does Dana live?” brings back what memory knows, best first: she lives in Lisbon, she moved there for a job at Acme, and the message that said so, with its date.

  4. One more call turns that into a few lines for the system prompt, never longer than you ask. Then the same in TypeScript, with await, and the rest for when you need it: a faster search, the latest and a summary, every fact, forgetting what a user asks, and staying up through an outage.

What Alexein remembered

  • Lives in Lisbon
  • Moved for a job at Acme
  • Vegetarian

Give your app a memory in a few lines of code.

In the use cases