I built AI agents that play Pokemon Showdown autonomously using free LLM APIs via tool-calling [P]
![I built AI agents that play Pokemon Showdown autonomously using free LLM APIs via tool-calling [P]](/_next/image?url=https%3A%2F%2Fpreview.redd.it%2Flzx2fd2s0eyg1.gif%3Fframe%3D1%26width%3D140%26height%3D78%26auto%3Dwebp%26s%3D75d2b882dcbdad45e4953e9abe4561da464ea97f&w=3840&q=75)
| I've built a system where models like Llama 3, Qwen, and Gemma play Pokémon Showdown battles autonomously. Instead of simple prompt-response, they analyze the full battle state every turn (type matchups, HP, weather, field conditions, revealed opponent info) and decide whether to attack or switch using structured tool calls. The cool part: I routed everything through LiteLLM and exclusively used models with free API tiers (Groq, Cerebras, OpenRouter, Google AI Studio). So anyone can run this locally with zero inference cost. Features: - Human vs. AI (play against the bot) - AI vs. AI (pit two models against each other) - 15+ free models supported out of the box - Full observability via Langfuse to see the exact tool calls and reasoning per turn. https://i.redd.it/lzx2fd2s0eyg1.gif ▶️ Watch the full video demo with audio on YouTube: https://youtu.be/8ZNadmh-Sy8 GitHub Repo: https://github.com/MohamedMostafa259/pokemon-ai-agent Would love feedback on the architecture or ideas for improving their reasoning during complex board states! [link] [comments] |
Want to read more?
Check out the full article on the original site