An emergent AI simulation where a goblin lives, remembers, and evolves in a cozy dark fantasy grove.
-
Install dependencies:
cd goblin-habitat pip install -r requirements.txt -
Set up environment:
cp .env.example .env # Edit .env with your NanoGPT API key -
Run the application:
python main.py
-
Open in browser:
http://localhost:8000
-
Set up environment:
cp .env.example .env # Edit .env with your NanoGPT API key -
Build and run:
docker compose up -d --build
-
Access:
http://your-vps-ip:8420
- 🧌 AI-Driven Goblin - Makes decisions, writes diary entries, reflects on experiences
- 📔 Diary System - Persistent journal entries capturing the goblin's thoughts
- ⚡ Skills & Progression - Fishing, woodcutting, reading, cooking
- 🌦️ Dynamic Weather - Rain, fog, storms, seasons
- 🌙 Day/Night Cycle - Synced to real time
- 💡 Activity Suggestions - The goblin can request new activities
- 📊 Dashboard - View stats, diary, skills, and activity log
Edit config.py to customize:
- Cycle interval (default: 30 minutes)
- Personality traits
- World locations
- Activity definitions
GET /api/state- Full simulation stateGET /api/goblin- Goblin infoGET /api/diary- Diary entriesGET /api/skills- Skill levelsPOST /api/trigger-cycle- Manually trigger a cycleWS /ws- Real-time WebSocket updates
MIT