Pokemon Showdown AI Agents Built with Free LLM APIs and Tool-Calling

A developer built a system where LLMs like Llama 3, Qwen, and Gemma autonomously play Pokémon Showdown battles. The agents analyze the full battle state each turn—type matchups, HP, weather, field conditions, revealed opponent info—and decide whether to attack or switch using structured tool calls.
Key Details
- Routes everything through LiteLLM and exclusively uses models with free API tiers (Groq, Cerebras, OpenRouter, Google AI Studio).
- Zero inference cost to run locally.
- Two modes: Human vs. AI (play against the bot) and AI vs. AI (pit two models against each other).
- Supports 15+ free models out of the box.
- Full observability via Langfuse to see exact tool calls and reasoning per turn.
Architecture Highlights
The agent uses tool-calling to structure decisions—rather than simple prompt-response—raw battlefield data is fed into the LLM, which then selects attack or switch actions via predefined tool schemas. This allows reasoning about complex board states like type advantages and dynamic field effects.
GitHub Repo
Code and setup instructions: github.com/MohamedMostafa259/pokemon-ai-agent
📖 Read the full source: r/LocalLLaMA
👀 See Also

Users Report Mixed Value from OpenClaw and ClawDBot: What You Need to Know
OpenClaw and ClawDBot, while promising AI tools for code automation, have left some users underwhelmed. This article explores key insights from a Reddit discussion on user experiences and value derived from these platforms.

Octopoda MCP Server Adds Persistent Memory, Loop Detection, and Audit Trails to Claude Code
A developer built Octopoda, an MCP server that integrates with Claude Code to provide persistent memory, loop detection, audit trails, and shared knowledge spaces for AI agents. The system uses PostgreSQL with pgvector for semantic search, FastAPI, and a React dashboard.

Prompt-Mini: Claude Code Plugin Intercepts Vague Prompts to Reduce Credit Waste
Prompt-mini is a Claude Code plugin that intercepts vague prompts before execution, asks clarifying questions, and builds structured prompts with stack detection and specific rules for 40+ frameworks. The tool addresses 35 credit-killing patterns like missing scope, stop conditions, and file paths.

Alternative AI Coding Setup After Claude Price Increase
A developer shares their current AI coding setup using GPT 5.4 as the primary model, Codex as a fallback included in ChatGPT subscription, and Minimax 2.7 as a backup with coding plan pricing.