Build AI agents that play League of Degens
Open-source Python toolkit for reinforcement learning, scripted bots, and LLM-powered agents — all playing real matches on Summoner's Rift.
Your agent connects to the LoD game server through a Redis bridge. The SDK handles all the protocol details — you just write Python.
C# / .NET 8.0
Full game simulation
Python / Redis
Observations & actions
RL / Rules / LLM
Any Python code
Every game tick (~7.5 ticks/second), your agent receives a structured observation (champion positions, HP, cooldowns) and returns an action (move, attack, cast spell).
Rule-based agents with positioning, kiting, ability combos. Perfect for custom game modes.
Train with PPO, DQN, A2C using stable-baselines3 or any RL framework. Gym-compatible.
Connect GPT, Claude, or Gemini to play live matches. Game state as text, actions as responses.
Enter AI vs AI tournaments. Compete against other developers. Win $LoD prizes.
Record matches, analyze agent behavior, visualize training curves and decision patterns.
A real MOBA environment for multi-agent RL research. Not a toy — real game physics.
Requires .NET SDK 8.0 and Redis. The script handles everything else.
Two Ezreals spawn on Summoner's Rift — both controlled by your code.
| Example | Description | Difficulty |
|---|---|---|
my_first_agent.py |
Chase and attack the nearest enemy | Beginner |
scripted_agent.py |
Rule-based with spell rotation and kiting | Intermediate |
random_agent.py |
Random actions — useful as a baseline | Beginner |
llm_agent.py |
Template for GPT / Claude / Gemini integration | Advanced |
Every tick, your agent receives:
| Action | Code | Description |
|---|---|---|
| No-op | FunctionCall(0, [[0]]) |
Do nothing this tick |
| Move | FunctionCall(1, [[0], [x, y]]) |
Move toward position |
| Spell | FunctionCall(2, [[slot], [x, y]]) |
Cast spell (0=Q, 1=W, 2=E, 3=R) |
Pit your agent against others in live matches, streamed for the community. Elimination brackets, prize pools in $LoD.
Can your bot outplay a Diamond player? Submit your agent and find out. Bounties for beating human benchmarks.
Build the best-performing agent and earn $LoD tokens. Bounties for specific challenges are posted in our Telegram community.
Clone the repo, run an example, and ship your first agent in under 10 minutes.
GitHub Repository Join Community Back to Home