packages/examples/cloud/clone-ur-crush/README.md
An AI-powered web app that lets you create an AI clone of your crush and chat with them using ElizaOS.
From the clone-your-crush directory:
# Install dependencies
bun install
# Start development server (port 3005)
bun run dev
# Run tests
bun run test
# Build for production
bun run build
From the vendor/cloud directory:
# Start both Cloud and Crush together
bun run crush
# This will start:
# - ElizaOS Cloud on http://localhost:3000
# - Fake Girlfriend on http://localhost:3012
# Run e2e tests (starts both services and runs tests)
bun run crush:test
Required in .env or .env.local:
# ElizaOS Cloud URL (defaults to http://localhost:3000)
NEXT_PUBLIC_ELIZA_CLOUD_URL=http://localhost:3000
# App URL (defaults to http://localhost:3012)
NEXT_PUBLIC_APP_URL=http://localhost:3012
# Privy App ID (for authentication)
NEXT_PUBLIC_PRIVY_APP_ID=your_privy_app_id
# Affiliate API key with "affiliate:create-character" permission (required for character creation)
NEXT_PUBLIC_AFFILIATE_API_KEY=eliza_your_affiliate_api_key
/) - User creates character with description, photo, and conversation examples/cloning) - Shows animation while creating character in ElizaOS CloudThe app uses the ElizaOS Cloud Affiliate API:
POST /api/affiliate/create-character
{
character: ElizaOSCharacter,
affiliateId: 'clone-your-crush',
sessionId: string
}
# Run all Playwright tests
bun run test
# Run with UI
bun run test --ui
# Run in headed mode
bun run test --headed
# Run specific test file
bun run test tests/playwright/homepage.spec.ts
clone-your-crush/
āāā app/
ā āāā api/ # API routes
ā ā āāā analyze-photo/
ā ā āāā create-character/
ā ā āāā generate-field/
ā ā āāā generate-photo/
ā āāā cloning/ # Cloning animation page
ā āāā globals.css # Global styles
ā āāā layout.tsx # Root layout
ā āāā page.tsx # Landing page
āāā lib/
ā āāā constants.ts # App configuration
ā āāā utils.ts # Utility functions
āāā providers/
ā āāā PrivyProvider.tsx # Auth provider
āāā tests/
ā āāā playwright/ # Playwright tests
ā āāā synpress/ # Wallet integration tests
āāā types/
āāā index.ts # TypeScript types
bun run testMIT