{"categories":[{"label":"Artificial Intelligence","url":"https://skillfed.io/packages/category/scientific-engineering-artificial-intelligence/7"}],"enrichment":{"capability":"TextArena provides a framework of 100+ text-based games with an OpenAI Gym-style interface for training, evaluating, and benchmarking language models through competitive gameplay.","skillfed_tags":["llm-benchmark","game-environment","reinforcement-learning"],"use_cases":["Benchmark language model reasoning by running them against each other in competitive games like TicTacToe or Chess.","Train LLMs via self-play reinforcement learning on TextArena games to improve strategy and multi-turn reasoning.","Evaluate theory-of-mind capabilities by running models on games that require understanding opponent intent and hidden information.","Integrate game environments into existing RL pipelines via the Gym-style interface for custom training loops.","Compare different LLM providers (GPT, Claude, etc.) on the same game tasks using the OpenRouter agent wrapper."],"what_it_does":"TextArena is a framework for running text-based competitive games between language models and other agents. It provides a Gym-style interface so you can initialize game environments, reset them with a specified number of players, step through turns by passing observations to agents and collecting their actions, and retrieve rewards and game state at the end. The package ships with 100+ games (including TicTacToe, Chess, Settlers of Catan, and others), built-in agents that wrap external LLM APIs, and wrapper utilities for visualization and training integration.\n\nYou use TextArena to benchmark how well language models play text games, train them via reinforcement learning on game outcomes, or evaluate their reasoning and strategy in competitive settings. It depends on OpenAI and requests for API calls, rich for terminal rendering, nltk and chess for game logic, websockets for potential real-time play, and python-dotenv for credential management. The framework is designed to be extensible\u2014you can add custom games and agents by implementing a simple interface.","worth_installing":"Yes, if you are actively researching LLM training or evaluation via games. The framework is well-designed, has low install friction, and offers a large game suite with recent updates. However, maintenance is aging (302 days since last release), so expect slower bug fixes and feature additions. Not recommended if you need production-grade support or rapid iteration on the game set."},"id":"textarena","links":{"html":"https://skillfed.io/packages/textarena","md":"https://skillfed.io/packages/textarena.md","pypi":"https://pypi.org/project/textarena/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-10-16","license_spdx":null,"license_treatment":"permissive","name":"TextArena","python_support":"supports_current","summary":"A Collection of Competitive Text-Based Games for Language Model Evaluation and Reinforcement Learning"},"popularity":{"monthly_downloads":201866,"position":9658,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.7.4"}
