🛠️Install
Installation
The overall steps are:
Build and Deploy
Connect it to an LLM
Build and Deploy
There are a few ways to run the app on top of Convex (the backend).
Standard Convex Setup: Develop locally or in the cloud. Requires a Convex account (free).
Docker Compose: Try it without an account.
Community Fork: One-click install on Pinokio.
Fly.io Deployment: See
./flyfor instructions.
Standard Setup
If you're on Windows, see below.
git clone https://github.com/AITownFun/ai-town.git
cd ai-town
npm installTo run it:
npm run devVisit http://localhost:5173.
To run frontend and backend separately:
Using Docker Compose with Self-Hosted Convex
After setup:
Frontend: http://localhost:5173
Backend: http://localhost:3210
Dashboard: http://localhost:6791
Generate admin key:
Add to .env.local:
Set up the Convex backend:
Connect an LLM
Ollama (default): Run it locally.
OpenAI: Set
OPENAI_API_KEY.Together.ai: Set
TOGETHER_API_KEY.Other OpenAI-Compatible APIs: Configure
LLM_API_URL,LLM_API_KEY,LLM_MODEL, etc.
Note: If you change the LLM provider or embedding model, delete your data and start over.
Last updated