packages/examples/text-adventure/README.md
AI-driven text adventure: the agent chooses actions in a small dungeon (LLM required).
From the elizaOS repository root:
bun install
export OPENAI_API_KEY=your_key_here
cd packages/examples/text-adventure
cp .env.example .env # set OPENAI_API_KEY
bun install
# Quieter logs
LOG_LEVEL=fatal bun run game.ts
# Optional persistent DB
PGLITE_DATA_DIR=./adventure-db LOG_LEVEL=fatal bun run game.ts
game.ts for flags)ModelType.TEXT_SMALL for action selectionpackages/examples/chat/chat.ts — CLI chatpackages/examples/tic-tac-toe/game.ts — no-LLM minimax demopackages/examples/game-of-life/game.ts — no-LLM multi-agent simulation