AI-powered NPC system for RPG games with memory, personality, and dynamic quest generation.
348
Intelligent NPCs with personality, memory, and dynamic quest generation powered by LLMs
Create immersive game characters that remember players, have distinct personalities, and generate dynamic quests on-the-fly.
# Pull the image
docker pull aditya26062003/ai-npc-system:latest
# Create .env file
cat > .env << EOF
OPENAI_API_KEY=your_key_here
DEMO_MODE=true
REDIS_HOST=redis
REDIS_PORT=6379
EOF
# Run with docker-compose
curl -O https://raw.githubusercontent.com/EchoSingh/AI-NPC/main/docker-compose.yml
docker-compose up -d
Access API at: http://localhost:8000
API Docs: http://localhost:8000/docs
GitHub Repository: https://github.com/EchoSingh/AI-NPC
Complete docs, examples, and API reference available in the repository.
# Create an NPC
curl -X POST http://localhost:8000/npc \
-H "Content-Type: application/json" \
-d '{
"npc_id": "blacksmith_01",
"name": "Thorin",
"personality": "friendly",
"background": "A master blacksmith",
"location": "Town Forge"
}'
# Chat with the NPC
curl -X POST http://localhost:8000/chat \
-H "Content-Type: application/json" \
-d '{
"player_id": "player_1",
"npc_id": "blacksmith_01",
"message": "Can you make me a sword?"
}'
Set DEMO_MODE=true for testing without API keys, or configure:
OPENAI_API_KEY for cloud LLMUSE_OLLAMA=true for local LLMMIT License - See GitHub repository for details
Created by: @EchoSingh
Repository: https://github.com/EchoSingh/AI-NPC
Content type
Image
Digest
sha256:a1e1f2c82…
Size
59.6 MB
Last updated
10 months ago
docker pull aditya26062003/ai-npc-system