Examples
Small, complete projects that use Alexein. Clone one, add your key, and run it.
Every example is a small project of its own in github.com/Alexein-AI/examples.
Each folder has a README, a .env.example and one command to run it. You need an API key from the Console's
API keys, and most examples also need an OpenAI key.
git clone https://github.com/Alexein-AI/examples.git
cd examples/quickstart/python
cp .env.example .env # then add your key
uv run --env-file .env main.pyStart here
QuickstartAdd, search and forget for one app user, in Python and TypeScript.Next.js chatA chat app where each user has their own memory, with the sources of each answer shown under it.Terminal chatThe chat loop in about a hundred lines of Python: search before each reply, save each turn after it.Memory as toolsThe model decides when to search and what to save, with plain OpenAI function calling.
Agent frameworks
LangGraphA graph that recalls before the model and remembers after it, in Python and TypeScript.OpenAI Agents SDKAn agent that knows what the user said in earlier runs, in Python and TypeScript.CrewAIA crew whose memory is the user's, kept in Alexein.LiveKitA voice agent that remembers what the caller said in earlier calls.n8nA workflow to import, with an AI Agent that has long-term memory.Your own agent over MCPAn agent you built, connected to your own memory with a personal key.
Building an app
Python backendA Flask app where each signed-in user gets a memory of their own: chat, see what is kept, and erase it.Documents Q&AAdd a folder of notes and documents, then ask questions and get answers with citations.Facts over timeValues that change, their history, a correction, and something that expires.Webhook receiverVerify each signed event and handle retries, in Python and Node.Erasure requestsLook, forget, and keep the receipt, or erase a user whole.Migrate from Mem0Import a Mem0 export, one app user for each Mem0 user, and check it.
Didn’t find what you needed? Ask the team