What it is
AI Town is published by the GitHub organization a16z-infra. It is a deployable starter kit for building and customizing your own version of a virtual town where AI characters live, chat and socialize. It is inspired by the research paper Generative Agents, with a Convex back end and PixiJS rendering. The default chat model is llama3, run locally through Ollama, and you can switch to Together.ai or any OpenAI-compatible cloud model. What stands out is that the back end natively supports shared global state, transactions and a simulation engine, so it suits a small side project as well as a scalable multi-player game.
Highlights:
- AI characters in the town live, chat and socialize on their own
- Runs llama3 locally through Ollama by default, with cloud models as an option
- Optional background music generated with Replicate MusicGen
- Deployment options include Docker Compose, Fly.io and Vercel
How to use:
- First clone the repository with git, then run `npm install` in the project folder
- Next run `npm run dev` and sign in to a Convex account
- Finally open http://localhost:5173 in your browser to see the town
Who it's for:
Developers and hobbyists who want to build and customize their own AI character simulation town.
Before you start:
You need Node.js 18, and Windows users must run it through WSL2. The page says a Convex account is free; costs for cloud services such as OpenAI, Together.ai, Replicate, Clerk and Vercel are not stated. With a cloud LLM, conversation content is sent to that third-party service. Exposing a local Ollama through Tunnelmole or Ngrok is something you set up yourself and makes it reachable from the public internet. The page says the simulation pauses after 5 minutes if the window is idle. The license is MIT.
Based on the project's public documentation. Not tested by AI Inspiration World.