About OpenRA RL
OpenRA RL is an MCP server published by yxc20089 in the Documentation category: open Framework for AI Agents to play Red Alert through Reinforcement Learning. Conduid read 50 tools from its source: add_to_group, advance, assign_group, attack_move, attack_target, batch and 44 more. No package is published for it, so it installs from a source checkout.
The repository has 165 stars and 34 forks, is licensed GPL-3.0, and its last commit was on 16 May 2026. The latest release is v0.4.1 (3 Mar 2026): Changes since v0.4.0 ClawHub skill — comprehensive skill integration for OpenRA-RL Bench fixes — fix tool-capability detection false positives, always export bench JSON… It follows v0.4.0 (26 Feb 2026), and the 5 most recent releases go back to v0.2.1 (21 Feb 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass Dependencies pinned. Its topics include docs.
Install
git clone https://github.com/yxc20089/OpenRA-RLTools (50)
add_to_groupGroup management| Parameter | Type | Description |
|---|---|---|
| group_name * | string | Name of an existing unit group |
| unit_ids * | array | List of unit actor IDs to add to the group |
advanceAdvance game ticks| Parameter | Type | Description |
|---|---|---|
| ticks | integer | Number of game ticks to advance (~25 ticks = 1 game-second). Range 1-5000. Use 100-200 for movement, 300-750 for building construction. |
assign_groupGroup management| Parameter | Type | Description |
|---|---|---|
| group_name * | string | Name for the unit group (e.g. 'scouts', 'main_army', 'defense') |
| unit_ids * | array | List of unit actor IDs to assign to this group |
attack_moveUnit movement commands| Parameter | Type | Description |
|---|---|---|
| queued | boolean | If true, queue after current orders; if false, replace current orders |
| target_x * | integer | Target cell X coordinate (0 to map_width) |
| target_y * | integer | Target cell Y coordinate (0 to map_height) |
| unit_ids * | string | Comma-separated unit IDs (e.g. 'u1,u2'), or selectors: 'all_combat', 'all_idle', 'all_infantry', 'all_vehicles', 'type:e1' |
attack_targetUnit movement commands| Parameter | Type | Description |
|---|---|---|
| queued | boolean | If true, queue after current orders; if false, replace current orders |
| target_actor_id * | integer | Actor ID of the enemy unit or building to attack (from get_enemies) |
| unit_ids * | string | Comma-separated unit IDs or selectors (e.g. 'all_combat', 'type:3tnk') |
batchMulti-action sequences| Parameter | Type | Description |
|---|---|---|
| actions * | array | List of action dicts, each with 'tool' and tool-specific params. Example: [{"tool":"build_unit","unit_type":"e1"}, {"tool":"move_units","unit_ids":"all_combat","target_x":50,"target_y":30}] |
batch_lookupEfficient batch queries| Parameter | Type | Description |
|---|---|---|
| queries * | array | List of lookup queries, each with 'type' ('unit' or 'building') and 'name' (type code). Example: [{"type":"unit","name":"3tnk"}, {"type":"building","name":"weap"}] |
build_and_placeBuild units and structures| Parameter | Type | Description |
|---|---|---|
| building_type * | string | Building type code, e.g. 'powr', 'barr', 'weap', 'proc' |
| cell_x | integer | Preferred placement X coordinate (0 = auto-find best position) |
| cell_y | integer | Preferred placement Y coordinate (0 = auto-find best position) |
build_structureBuild units and structures| Parameter | Type | Description |
|---|---|---|
| building_type * | string | Building type code, e.g. 'powr' (power plant), 'barr' (barracks), 'weap' (war factory), 'proc' (ore refinery) |
build_unitBuild units and structures| Parameter | Type | Description |
|---|---|---|
| count | integer | Number of units to queue for production |
| unit_type * | string | Unit type code to train, e.g. 'e1' (rifle), 'e2' (grenadier), '3tnk' (heavy tank), 'v2rl' (V2 launcher) |
cancel_productionBuilding and unit management| Parameter | Type | Description |
|---|---|---|
| item_type * | string | Type code of the unit or building to cancel (e.g. 'e1', 'powr') |
command_groupGroup management| Parameter | Type | Description |
|---|---|---|
| command_type * | string | Command: 'move', 'attack_move', 'attack', 'stop', or 'guard' |
| group_name * | string | Name of the unit group to command |
| queued | boolean | If true, queue after current orders |
| target_actor_id | integer | Target actor ID (for attack/guard commands) |
| target_x | integer | Target X coordinate (for move/attack_move) |
| target_y | integer | Target Y coordinate (for move/attack_move) |
deploy_unitBuilding and unit management| Parameter | Type | Description |
|---|---|---|
| unit_id * | integer | Actor ID of the unit to deploy (e.g. MCV deploys into Construction Yard) |
end_planning_phasePre-game strategy planning| Parameter | Type | Description |
|---|---|---|
| strategy | string | Your chosen strategy summary (free text). Logged for analysis. |
get_buildingsQuery current game stateget_economyQuery current game stateget_enemiesQuery current game stateget_exploration_statusQuery current game stateget_faction_briefingEfficient batch queriesget_game_stateQuery current game stateget_groupsGroup managementget_map_analysisEfficient batch queriesget_map_infoQuery current game stateget_opponent_intelPre-game strategy planningget_planning_statusPre-game strategy planningget_productionQuery current game stateget_replay_pathMiscget_terrain_atTerrain queries| Parameter | Type | Description |
|---|---|---|
| cell_x * | integer | Cell X coordinate to query |
| cell_y * | integer | Cell Y coordinate to query |
get_unitsQuery current game stateget_valid_placementsQuery valid building locations| Parameter | Type | Description |
|---|---|---|
| building_type * | string | Building type code to find placements for (e.g. 'powr', 'barr') |
| max_results | integer | Maximum number of valid positions to return |
guard_targetBuilding and unit management| Parameter | Type | Description |
|---|---|---|
| queued | boolean | If true, queue after current orders; if false, replace current orders |
| target_actor_id * | integer | Actor ID of the unit or building to guard |
| unit_ids * | string | Comma-separated unit IDs or selectors (e.g. 'all_combat', 'type:e1') |
harvestBuilding and unit management| Parameter | Type | Description |
|---|---|---|
| cell_x | integer | Harvest location X coordinate (0 = auto-find nearest ore) |
| cell_y | integer | Harvest location Y coordinate (0 = auto-find nearest ore) |
| unit_id * | integer | Actor ID of the harvester unit |
list_transportsList all friendly transport units with current passenger count and remaining capacity.lookup_buildingStatic game data reference| Parameter | Type | Description |
|---|---|---|
| building_type * | string | Building type code, e.g. 'powr' (power plant), 'barr' (barracks), 'weap' (war factory), 'tent' (allied barracks) |
lookup_factionStatic game data reference| Parameter | Type | Description |
|---|---|---|
| faction * | string | Faction name: 'soviet' or 'allied' |
lookup_tech_treeStatic game data reference| Parameter | Type | Description |
|---|---|---|
| faction | string | Faction name: 'soviet' or 'allied' |
lookup_unitStatic game data reference| Parameter | Type | Description |
|---|---|---|
| unit_type * | string | Unit type code, e.g. 'e1' (rifle infantry), 'e2' (grenadier), '3tnk' (heavy tank), 'dog' (attack dog) |
move_unitsUnit movement commands| Parameter | Type | Description |
|---|---|---|
| queued | boolean | If true, queue after current orders; if false, replace current orders |
| target_x * | integer | Target cell X coordinate (0 to map_width) |
| target_y * | integer | Target cell Y coordinate (0 to map_height) |
| unit_ids * | string | Comma-separated unit IDs (e.g. 'u1,u2'), or selectors: 'all_combat', 'all_idle', 'all_infantry', 'all_vehicles', 'type:e1' (all units of type) |
place_buildingBuilding and unit management| Parameter | Type | Description |
|---|---|---|
| building_type * | string | Building type code to place (must be fully constructed via build_structure) |
| cell_x | integer | Placement X coordinate (0 = auto-find best position) |
| cell_y | integer | Placement Y coordinate (0 = auto-find best position) |
planMulti-action sequences| Parameter | Type | Description |
|---|---|---|
| steps * | array | List of step dicts, each with 'tool' and tool-specific params. Executed sequentially with state refresh between each. |
power_downBuilding and unit management| Parameter | Type | Description |
|---|---|---|
| building_id * | integer | Actor ID of the building to toggle power on/off |
repair_buildingBuilding and unit management| Parameter | Type | Description |
|---|---|---|
| building_id * | integer | Actor ID of the building to repair (from get_buildings) |
sell_buildingBuilding and unit management| Parameter | Type | Description |
|---|---|---|
| building_id * | integer | Actor ID of the building to sell (from get_buildings) |
set_primaryBuilding and unit management| Parameter | Type | Description |
|---|---|---|
| building_id * | integer | Actor ID of the building to set as primary production facility |
set_rally_pointBuilding and unit management| Parameter | Type | Description |
|---|---|---|
| building_id * | integer | Actor ID of the production building (from get_buildings) |
| cell_x * | integer | Rally point X coordinate |
| cell_y * | integer | Rally point Y coordinate |
set_stanceBuilding and unit management| Parameter | Type | Description |
|---|---|---|
| stance * | string | Stance mode: 'holdfire', 'returnfire', 'defend', or 'attackanything' |
| unit_ids * | string | Comma-separated unit IDs or selectors (e.g. 'all_combat', 'type:e1') |
start_gameStart a new Red Alert game. Returns initial game state.start_planning_phasePre-game strategy planningstop_unitsUnit movement commands| Parameter | Type | Description |
|---|---|---|
| unit_ids * | string | Comma-separated unit IDs or selectors: 'all_combat', 'all_idle', 'all_infantry', 'all_vehicles', 'type:e1' |
surrenderMiscSecurity checks
- ✓README presentThe repository's README runs to about 2.4K words.
- ✓License declaredThe repository declares the GPL-3.0 license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile. Installs can pull different code over time.
- ✓No dynamic code executionScanned 37 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
Releases
README
The repository's README runs to about 2.4K words, fetched 13 days ago. The original in the repository is authoritative.
Read full README