Quick Start

Installation

# Clone the repository
git clone <your-repo>
cd liz

# Install dependencies
pnpm install

Environment Setup

Create a .env file in your project root with the following variables:

# Database configuration (choose one)
DATABASE_URL="postgresql://user:password@localhost:5432/dbname"
# Or for SQLite:
DATABASE_URL="file:./prisma/dev.db"

# LLM API Keys
OPENAI_API_KEY="your-openai-api-key"
OPENROUTER_API_KEY="your-openrouter-api-key"

# Application URL (required for OpenRouter)
APP_URL="http://localhost:3000"

Initialize Database

Create Your First Agent

Create a new file src/agents/assistant.ts:

Set Up Express Server

Create src/server.ts to handle agent interactions:

Run the Server

Test Your Agent

Send a test request to your agent:

Next: Architecture →

Last updated