Favicon of OASIS

OASIS

An open-source social media simulator uses LLM agents to model Twitter and Reddit interactions, with customizable agents and recommendation systems.

Screenshot of OASIS website

OASIS is a social media simulator for researchers studying how information spreads, groups polarize, and users follow the crowd. It uses LLM agents as simulated participants in Twitter and Reddit environments.

  • Social interactions: Agents can publish posts, comment, follow users, repost content, report posts, and participate in group chats as the simulated network and its content change.
  • Content recommendations: Interest-based and popularity-based recommendation systems let you study how feed selection affects what agents encounter and how they respond.
  • Custom agents: You can assign profiles and choose each agent's model, tools, and prompts to represent different participants in an experiment.
  • Controlled experiments: Combine manually specified actions with decisions made by LLM agents, then interview agents with specific questions about their responses.
  • Large simulations: Run experiments with large populations of agents to study social behavior across a network rather than within a single conversation.

OASIS is an installable Python framework with an Apache 2.0 license. The simulation runs on your machine and can store its data in a local database. It supports OpenAI models such as GPT-4o mini; using that backend requires an API key and internet access, and sends model requests to OpenAI. API token consumption grows with the number of active agents and simulation steps.

Similar to OASIS