rushindrasinha/ares-skills/twitch-ai-chatbot
Claude Code and agent skill by rushindrasinha/ares-skills
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Deploy an AI chatbot in a Twitch channel that responds to a configurable trigger word (e.g. !bot), engages viewers with AI replies, and requires no Twitch API key — uses pure WebSocket IRC.
Install
npx vskill@latest install rushindrasinha/ares-skills/twitch-ai-chatbotSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Overview
Connects to Twitch IRC via WebSocket and responds to a trigger word using an Anthropic model. No Twitch API key required for basic operation — only a bot account OAuth token.
Requirements: python3, aiohttp, websockets, Anthropic API key.
Setup
1. Create a bot Twitch account
Use a separate Twitch account for the bot. Get a chat OAuth token:
- Go to:
https://twitchapps.com/tmi/ - Authorize with your bot account (not your main)
- Copy the
oauth:XXXXXXXXXXtoken
2. Configure
Edit config.json:
Key fields:
channel— Twitch channel to join (lowercase)trigger_word— command viewers type to talk to the bot (e.g.!bot,!ai,!ask)bot_login— Twitch username of the bot accountoauth_token— OAuth token from twitchapps.com/tmi (include theoauth:prefix)model— Anthropic model ID. Recommended:claude-haiku-4-5(fast + cheap)system_prompt— customize the bot's personality and rulescooldown_seconds— minimum seconds between bot responses (prevents spam)
3. Install dependencies
4. Run
Or with a custom config path:
Environment Variable Overrides
All key config values can be set via env vars (take precedence over config.json):
How It Works
- Bot connects to
wss://irc-ws.chat.twitch.tv:443— no API key needed - Joins configured channel
- Watches all chat messages
- When a message starts with
trigger_word: calls Anthropic API with last 10 chat messages as context - Replies in chat:
@username <AI response> - Rate limiting: max 18 msgs/30s, configurable cooldown between responses
- Prompt injection sanitization built in
- Chat history persisted to JSONL at
storage/chat_history.jsonl
Customizing the Bot
Change trigger word
Update trigger_word in config.json. Examples: !ai, !ask, !gpt, !help
Change personality
Update system_prompt. Example for a gaming bot:
Change model
- Fast/cheap:
claude-haiku-4-5 - Smarter:
claude-sonnet-4-5 - Avoid models with thinking tokens (slow, unpredictable output length)
Running as a Background Service
tmux
launchd (macOS)
Create ~/Library/LaunchAgents/com.twitch-ai-chatbot.plist with appropriate configuration and launchctl load it.
Troubleshooting
Bot connects but doesn't respond: Check trigger_word matches exactly. Verify bot account is in the channel (it joins automatically on connect).
Authentication failed: Regenerate OAuth token at twitchapps.com/tmi. Tokens expire.
Rate limited by Twitch: Increase cooldown_seconds. Default 30s is safe for most use.
AI replies are too long: Add "Max 150 characters" to your system_prompt.
<!-- A·R·E·S 🛡️ | Mumbai | 2026-04-05 | github.com/rushindrasinha -->
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingtwitch-ai-chatbot/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rushindrasinha/ares-skills/twitch-ai-chatbot)