Simulate the world
with populations of AI agents
AgentSims is a Python framework for LLM-powered multi-agent simulation. Model geopolitics, markets, health crises, and elections as interacting agents that reason, remember, and act against a shared, persisted world state.
Snapshot recorded September 19, 2026. These figures come from a bundled database and change only when the site is redeployed.
# With AgentSims installed from its source checkout. # Set ANTHROPIC_API_KEY in your environment before running. from agentsims import Simulation, Scenario, RoleCard, Tier scenario = Scenario( name="US-China Trade War", domain="geopolitics", ticks=15, agents=[ RoleCard(name="United States", type="country", tier=Tier.FULL), RoleCard(name="China", type="country", tier=Tier.FULL), RoleCard(name="WTO", type="institution", tier=Tier.LITE), ]) results = Simulation(scenario).run() results.report()
How it works
A tick is one simulation round. Scenario events arrive, every agent gets a turn, and their actions update the world for the next round. The five steps below make up one tick.
Ticks have no fixed duration in seconds, days, or weeks. Playback only controls how quickly you view the recorded rounds.
The current trade-war examples stop after 15 rounds. That is a recording limit; convergence would require sustained stability in both world conditions and agent behavior.
Built for serious simulation
Explore a world in motion
Replay a recorded scenario and follow how agents, actions, and world metrics change over time.