AI tutor bot for Tech World - a multiplayer game where players learn programming together.
Clawd joins LiveKit rooms as a participant and responds to chat messages using Claude AI. It provides friendly, encouraging coding help to players.
-
Install dependencies:
npm install
-
Configure environment:
cp .env.example .env # Edit .env with your credentials -
Run locally:
npm run dev
| Variable | Description |
|---|---|
LIVEKIT_URL |
LiveKit server WebSocket URL |
LIVEKIT_API_KEY |
LiveKit API key |
LIVEKIT_API_SECRET |
LiveKit API secret |
ANTHROPIC_API_KEY |
Anthropic API key for Claude |
- Bot registers as a LiveKit Agent worker
- When a room is created, LiveKit dispatches a job to the bot
- Bot joins the room as participant
bot-claude - Players send messages on the
chatdata channel topic - Bot calls Claude API and responds on
chat-responsetopic - All players in the room see the response
- Runtime: Node.js 20+
- Framework: @livekit/agents
- AI: Claude API via @anthropic-ai/sdk
- Language: TypeScript
| Script | Description |
|---|---|
npm run dev |
Run with hot reload (development) |
npm run build |
Compile TypeScript to JavaScript |
npm start |
Run compiled version (production) |
npm run lint |
Run ESLint |
npm run typecheck |
Type check without emitting |
- tech_world - Flutter client app
- tech_world_firebase_functions - Token generation
MIT