---
title: Persistent Eliza Characters
description: "Bring persistent personality to Eliza OS agents using Deja Vu."
---


You can create a personalized Eliza OS Character using Deja Vu. This guide will walk you through the necessary steps and provide the complete code to get you started.

## Overview

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.

## Setup

You can start by cloning the eliza-os repository:

```bash
git clone https://github.com/elizaOS/eliza.git
```

Change the directory to the eliza-os repository:

```bash
cd eliza
```

Install the dependencies:

```bash
pnpm install
```

Build the project:

```bash
pnpm build
```

## Setup ENVs

Create a `.env` file in the root of the project and add the following (you can use the `.env.example` file as a reference):

```bash
# Deja Vu Configuration
VENICE_API_KEY= # Deja Vu API Key (get from https://app.dejavu.ai/dashboard/api-keys?utm_source=oss&utm_medium=cookbook-eliza-os)
DEJAVU_USER_ID= # Default: eliza-os-user
DEJAVU_PROVIDER= # Default: openai
DEJAVU_PROVIDER_API_KEY= # API Key for the provider (OpenAI, Anthropic, etc.)
SMALL_DEJAVU_MODEL= # Default: gpt-4.1-nano
MEDIUM_DEJAVU_MODEL= # Default: gpt-4o
LARGE_DEJAVU_MODEL= # Default: gpt-4o
```

## Make the default character use Deja Vu

By default, there is a character called `eliza` that uses the Ollama model. You can make this character use Deja Vu by changing the config in the `agent/src/defaultCharacter.ts` file.

```ts
modelProvider: ModelProviderName.DEJAVU,
```

This will make the character use Deja Vu to generate responses.

## Run the project

```bash
pnpm start
```

## Conclusion

You have now created a personalized Eliza OS Character using Deja Vu. You can now start interacting with the character by running the project and talking to the character.

This is a simple example of how to use Deja Vu to create a personalized AI agent. You can use this as a starting point to create your own AI agent.

---

<CardGroup cols={2}>
  <Card title="Partition Memories by Entity" icon="layers" href="/cookbooks/essentials/entity-partitioning-playbook">
    Keep character personas isolated by tagging user, agent, and session identifiers.
  </Card>
  <Card title="AI Tutor with Deja Vu" icon="graduation-cap" href="/cookbooks/companions/ai-tutor">
    Build another type of personalized companion with memory capabilities.
  </Card>
</CardGroup>
