$npx skillfedfor your agent

TextArena

A Collection of Competitive Text-Based Games for Language Model Evaluation and Reinforcement Learning

With conditionsPyPI Artificial IntelligenceReleased Oct 2025201.9K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — textarena-0.7.4-py3-none-any.whl
v0.7.4 · released 2025-10-16 · Python >=3.10 · 7 runtime deps: openai, rich, nltk, chess, python-dotenv, requests, websockets

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.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • External LLM API calls (OpenAI, Anthropic, etc.) require valid API keys set as environment variables.
  • Low install friction with a pure-Python wheel distribution.

License · maintenance · safety

MIT (permissive) — MIT license is permissive; you can use, modify, and distribute TextArena freely in commercial and private projects with minimal restrictions.

last release 2025-10-16 (302 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 201,866 downloads/mo, #9,658 on PyPI

Verify before relying

pip install textarena

import textarena as ta

env = ta.make(env_id="TicTacToe-v0")
agent = ta.agents.OpenRouterAgent(model_name="GPT-4o-mini")
env.reset(num_players=1)
player_id, observation = env.get_observation()
action = agent(observation)
done, step_info = env.step(action=action)
  • Whether all 100+ games remain actively maintained or if some are deprecated in the current version.
  • Performance characteristics when running many concurrent game instances or with large language models.
  • Real-world success rate of the included basic agents and whether custom agent development is well-documented.
Same gist for agents: .md · .json

What it is and 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.

You 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—you can add custom games and agents by implementing a simple interface.

Use it for

  • 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.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

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.

Install

textarena on PyPI

Before you install

Low install friction with a pure-Python wheel distribution. Maintenance status is aging—last release was 302 days ago—so expect slower response to issues, though the package remains functional for its current game set.

Requires Python 3.10 or later. External LLM API calls (OpenAI, Anthropic, etc.) require valid API keys set as environment variables.

License in practice

MIT license is permissive; you can use, modify, and distribute TextArena freely in commercial and private projects with minimal restrictions.

Quickstart

pip install textarena

import textarena as ta

env = ta.make(env_id="TicTacToe-v0")
agent = ta.agents.OpenRouterAgent(model_name="GPT-4o-mini")
env.reset(num_players=1)
player_id, observation = env.get_observation()
action = agent(observation)
done, step_info = env.step(action=action)

Verify before relying

  • Whether all 100+ games remain actively maintained or if some are deprecated in the current version.
  • Performance characteristics when running many concurrent game instances or with large language models.
  • Real-world success rate of the included basic agents and whether custom agent development is well-documented.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
7 packages
openairichnltkchesspython-dotenvrequestswebsockets
MaintenanceAging 302 days since the last release
First released
Downloads201,866 / month, #9,658 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: textarena-0.7.4-py3-none-any.whl

Tags

Capabilities
text-based games for LLM traininglanguage model benchmarking frameworkgym-style game environmentsLLM evaluation gamesmulti-player text gamesreinforcement learning game suitecompetitive text game benchmark
Topics
llm-benchmarkgame-environmentreinforcement-learning

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “text-based games for LLM training”

  • TextArenaTextArena provides a framework of 100+ text-based games with an…
  • gem-llmGEM is a reinforcement learning environment suite that provides a…
  • pettingzooPettingZoo provides multi-agent reinforcement learning environments…

Give your agent the search over MCP, or paste the wish link into any chat.

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.

Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.

Install it if you work with Hugging Face Hub models or datasets.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.

Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also gem-llm · rlbot · gymnasium · trueskill · kaggle-environments · pettingzoo · openskill · bfcl-eval · terminal-bench · nemo-gym

Further reading