RimTown
A RimWorld-inspired simulation where AI agents live, work, gossip, and form relationships—powered by large language models and running entirely in your browser.
Core Features
Every resident has personality traits, memories, moods, and psychological needs. They think, feel, and act independently using LLM reasoning.
Agents chat, gossip, form friendships, rivalries, and romantic relationships. Watch a living social network evolve organically over time.
RimWorld-inspired jobs: farming, mining, cooking, crafting, doctoring, research, and more. Every agent finds their role in the colony.
Random events, changing seasons, and emergencies reshape the town’s daily life. No two simulations are ever the same.
Agents remember every interaction and form lasting opinions. A grudge from last season can shape today’s decisions.
Real-time browser-based town visualization. Watch your colony breathe at localhost:8000.
Meet the Residents
Sample AI agents from a running simulation. Each one has a unique life story, set of skills, and network of relationships.
Architecture
rimtown/ ├── core/ # Simulation engine (world, time, events) ├── agents/ # AI agent system (personality, memory, behavior) ├── social/ # Social interactions (chat, gossip, relationships) ├── jobs/ # Job and economy system ├── town/ # Town map and locations ├── llm/ # LLM integration for agent conversations ├── web/ # Web visualization frontend └── config/ # Town and agent configurations
Quick Start
Clone the repo and install the required Python packages.
git clone https://github.com/virus11456/RimTown
cd RimTown
# Install dependencies
pip install -r requirements.txt
Set your API key in the .env file. Supports Anthropic Claude and OpenAI.
ANTHROPIC_API_KEY=your-key-here
# or
OPENAI_API_KEY=your-key-here
Launch the engine and open your browser to watch the town come alive.
# Open browser at
http://localhost:8000
Edit town layout and residents using simple YAML config files.
config/residents.yaml # Agent personalities & jobs
Configuration
Build Your
AI Colony
Fork, modify, and run your own town full of thinking, feeling AI citizens.