AI Town
A deployable starter kit for a virtual town where AI characters live, chat and socialize.
- Stars
- 10.9K
- Forks
- 1.3K
- Open issues
- 80
- Last commit
- 2026-11-25
Live from the GitHub API · updated 2026-11-30
What is AI Town?
AI Town is an MIT-licensed starter kit from a16z, inspired by the “Generative Agents” paper, for building a virtual pixel-art town in which LLM-driven characters move around, form memories and hold conversations. It runs on Convex for shared game state and can use Ollama locally or hosted LLM APIs.
Key features
- Simulated characters with memories and conversations
- Shared, multiplayer game state on Convex
- Works with local Ollama or OpenAI-compatible APIs
- Customizable characters, map and art
- Humans can join the town and talk to agents
System requirements
- Platforms
- macOS · Linux · Windows · Docker · Web
- Notes
- Node.js 18+. Local models need Ollama; Windows users typically run it under WSL2.
How to install AI Town
Summarized from the project’s README. Projects change quickly — check the GitHub page for the latest instructions.
Local development
- 1Clone and install dependencies.
git clone https://github.com/a16z-infra/ai-town.git cd ai-town npm install - 2Start Ollama with a chat model (or set an API key), then run the app and the Convex backend.
ollama pull llama3 npm run dev
Docker Compose
- 1Build and start the frontend, Convex backend and dashboard with the bundled compose file (see the README for environment variables).
docker compose up --build -d
Strengths
- Fun, visual way to explore multi-agent simulations
- MIT license, easy to fork
- Runs fully local with Ollama
Limitations
- A starter kit rather than a finished product
- Many agents can consume a lot of LLM calls
AI Town alternatives compared
| Software | Stars | License | Platforms | VRAM |
|---|---|---|---|---|
| AI Town A deployable starter kit for a virtual town where AI characters live, chat and socialize. | 10.9K | MIT | — | |
| AutoGen Microsoft’s framework for building multi-agent AI applications. | 62K | CC-BY-4.0 | — | |
| CrewAI Python framework for orchestrating role-playing, collaborative AI agents. | 61.4K | MIT | — | |
| MetaGPT Multi-agent framework that simulates a software company. | 71.5K | MIT | — | |
| Letta Stateful agents with self-editing memory (formerly MemGPT). | 25.6K | Apache-2.0 | — | |
| Open WebUI Self-hosted ChatGPT-style interface for Ollama and OpenAI-compatible APIs. | 159.8K | Open WebUI License (BSD-3-Clause based) | — |
FAQ
Is AI Town free?
Yes — AI Town is open-source software released under the MIT license. Check the license (and any model weight licenses) before commercial use.
Does AI Town run on Windows, Mac and Linux?
AI Town supports: macOS, Linux, Windows, Docker, Web.
How do I install AI Town?
1. Clone and install dependencies. 2. Start Ollama with a chat model (or set an API key), then run the app and the Convex backend.
What are the best AI Town alternatives?
Popular alternatives include AutoGen, CrewAI, MetaGPT, Letta. See the comparison table on this page.