repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | --- |
| #2 | title: Persistent Eliza Characters |
| #3 | description: "Bring persistent personality to Eliza OS agents using Mem0." |
| #4 | --- |
| #5 | |
| #6 | |
| #7 | You can create a personalized Eliza OS Character using Mem0. This guide will walk you through the necessary steps and provide the complete code to get you started. |
| #8 | |
| #9 | ## Overview |
| #10 | |
| #11 | ElizaOS is a powerful AI agent framework for autonomy and personality. It is a collection of tools that help you create a personalized AI agent. |
| #12 | |
| #13 | ## Setup |
| #14 | |
| #15 | You can start by cloning the eliza-os repository: |
| #16 | |
| #17 | ```bash |
| #18 | git clone https://github.com/elizaOS/eliza.git |
| #19 | ``` |
| #20 | |
| #21 | Change the directory to the eliza-os repository: |
| #22 | |
| #23 | ```bash |
| #24 | cd eliza |
| #25 | ``` |
| #26 | |
| #27 | Install the dependencies: |
| #28 | |
| #29 | ```bash |
| #30 | pnpm install |
| #31 | ``` |
| #32 | |
| #33 | Build the project: |
| #34 | |
| #35 | ```bash |
| #36 | pnpm build |
| #37 | ``` |
| #38 | |
| #39 | ## Setup ENVs |
| #40 | |
| #41 | Create a `.env` file in the root of the project and add the following (you can use the `.env.example` file as a reference): |
| #42 | |
| #43 | ```bash |
| #44 | # Mem0 Configuration |
| #45 | MEM0_API_KEY= # Mem0 API Key (get from https://app.mem0.ai/dashboard/api-keys) |
| #46 | MEM0_USER_ID= # Default: eliza-os-user |
| #47 | MEM0_PROVIDER= # Default: openai |
| #48 | MEM0_PROVIDER_API_KEY= # API Key for the provider (OpenAI, Anthropic, etc.) |
| #49 | SMALL_MEM0_MODEL= # Default: gpt-4.1-nano |
| #50 | MEDIUM_MEM0_MODEL= # Default: gpt-4o |
| #51 | LARGE_MEM0_MODEL= # Default: gpt-4o |
| #52 | ``` |
| #53 | |
| #54 | ## Make the default character use Mem0 |
| #55 | |
| #56 | By default, there is a character called `eliza` that uses the Ollama model. You can make this character use Mem0 by changing the config in the `agent/src/defaultCharacter.ts` file. |
| #57 | |
| #58 | ```ts |
| #59 | modelProvider: ModelProviderName.MEM0, |
| #60 | ``` |
| #61 | |
| #62 | This will make the character use Mem0 to generate responses. |
| #63 | |
| #64 | ## Run the project |
| #65 | |
| #66 | ```bash |
| #67 | pnpm start |
| #68 | ``` |
| #69 | |
| #70 | ## Conclusion |
| #71 | |
| #72 | You have now created a personalized Eliza OS Character using Mem0. You can now start interacting with the character by running the project and talking to the character. |
| #73 | |
| #74 | This is a simple example of how to use Mem0 to create a personalized AI agent. You can use this as a starting point to create your own AI agent. |
| #75 | |
| #76 | --- |
| #77 | |
| #78 | <CardGroup cols={2}> |
| #79 | <Card title="Partition Memories by Entity" icon="layers" href="/cookbooks/essentials/entity-partitioning-playbook"> |
| #80 | Keep character personas isolated by tagging user, agent, and session identifiers. |
| #81 | </Card> |
| #82 | <Card title="AI Tutor with Mem0" icon="graduation-cap" href="/cookbooks/companions/ai-tutor"> |
| #83 | Build another type of personalized companion with memory capabilities. |
| #84 | </Card> |
| #85 | </CardGroup> |
| #86 |