Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
O

oasis

> DevOps
Open source

️ OASIS: Open Agent Social Interaction Simulations with One Million Agents.

5.0K stars0 likes6 views
WebsiteGitHub

About

️ OASIS: Open Agent Social Interaction Simulations with One Million Agents.



️ OASIS is a scalable, open-source social media simulator that incorporates large language model agents to realistically mimic the behavior of up to one million users on platforms like Twitter and Reddit. It's designed to facilitate the study of complex social phenomena such as information spread, group polarization, and herd behavior, offering a versatile tool for exploring diverse social dynamics and user interactions in digital environments.




✨ Key Features

Scalability

OASIS supports simulations of up to one million agents, enabling studies of social media dynamics at a scale comparable to real-world platforms.

Dynamic Environments

Adapts to real-time changes in social networks and content, mirroring the fluid dynamics of platforms like Twitter and Reddit for authentic simulation experiences.

Diverse Action Spaces

Agents can perform 23 actions, such as following, commenting, and reposting, allowing for rich, multi-faceted interactions.

Integrated Recommendation Systems

Features interest-based and hot-score-based recommendation algorithms, simulating how users discover content and interact within social media platforms.


Demo Video

Introducing OASIS: Open Agent Social Interaction Simulations with One Million Agents

https://github.com/user-attachments/assets/3bd2553c-d25d-4d8c-a739-1af51354b15a


For more showcaes:

  • Can 1,000,000 AI agents simulate social media? →Watch demo

Usecase

⚙️ Quick Start

  1. Install the OASIS package:

Installing OASIS is a breeze thanks to its availability on PyPI. Simply open your terminal and run:

bash
pip install camel-oasis
  1. Set up your OpenAI API key:
bash
# For Bash shell (Linux, macOS, Git Bash on Windows):
export OPENAI_API_KEY=<insert your OpenAI API key>

# For Windows Command Prompt:
set OPENAI_API_KEY=<insert your OpenAI API key>
  1. Prepare the agent profile file:

Create the profile you want to assign to the agent. As an example, you can download user_data_36.json and place it in your local ./data/reddit folder.

  1. Run the following Python code:
…

[!TIP] For more detailed instructions and additional configuration options, check out the documentation.

Token Consumption Reference

To help you estimate costs before running a simulation, here is a measured reference for token consumption:

Parameter Value
Number of Agents 100
Activation Probability 1
Time Steps 1
Input Tokens 335,600
Output Tokens 16,750
Model QWEN_TURBO

[!NOTE] Token usage scales with the number of agents, activation probability, and time steps. Use this reference as a baseline to estimate the cost of larger simulations.

Estimated cost for 1 time step, activation probability 0.1 (Qwen pricing as of 2024-12-14):

Model 100 Agents 1,000 Agents 10,000 Agents
qwen-plus ¥0.026848 ¥0.26848 ¥2.6848
qwen-max ¥0.717 ¥7.717 ¥77.17

More Tutorials

To discover how to create profiles for large-scale users, as well as how to visualize and analyze social simulation data once your experiment concludes, please refer to More Tutorials for detailed guidance.

News

Upcoming Features & Contributions

We welcome community contributions! Join us in building these exciting features.

  • Support Multi Modal Platform

Latest Updates

Update the camel-ai version to 0.2.90. - August 19, 2026

  • Update the camel-ai version to 0.2.78 and update the dataset HuggingFace link. - December 4, 2025
  • Add the report post action to mark inappropriate content. - June 8, 2025
  • Add features for creating group chats, sending messages in group chats, and leaving group chats. - June 6, 2025
  • Support Interview Action for asking agents specific questions and getting answers. - June 2, 2025
  • Support customization of each agent's models, tools, and prompts; refactor the interface to follow the PettingZoo style. - May 22, 2025
  • Refactor into the OASIS environment, publish camel-oasis on PyPI, and release the documentation. - April 24, 2025
  • Support OPENAI Embedding model for Twhin-Bert Recommendation System. - March 25, 2025 ...
  • Slightly refactoring the database to add Quote Action and modify Repost Action - January 13, 2025
  • Added the demo video and oasis's star history in the README - January 5, 2025
  • Introduced an Electronic Mall on the Reddit platform - December 5, 2024
  • OASIS initially released on arXiv - November 19, 2024
  • OASIS GitHub repository initially launched - November 19, 2024

Follow-up Research

  • MultiAgent4Collusion: multi-agent collusion simulation framework in social systems
  • CUBE: dynamic simulations in customized unity3D-based environments
  • MultiAgent4Fraud: financial fraud risks by collaborative LLM agents on social platforms
  • More to come...

If your research is based on OASIS, we'd be happy to feature your work here—feel free to reach out or submit a pull request to add it to the README!

Contributing to OASIS️

We greatly appreciate your interest in contributing to our open-source initiative. To ensure a smooth collaboration and the success of contributions, we adhere to a set of contributing guidelines similar to those established by CAMEL. For a comprehensive understanding of the steps involved in contributing to our project, please refer to the OASIS contributing guidelines.

An essential part of contributing involves not only submitting new features with accompanying tests (and, ideally, examples) but also ensuring that these contributions pass our automated pytest suite. This approach helps us maintain the project's quality and reliability by verifying compatibility and functionality.

Community & Contact

If you're keen on exploring new research opportunities or discoveries with our platform and wish to dive deeper or suggest new features, we're here to talk. Feel free to get in touch for more details at [email protected].


  • Join us (Discord or WeChat) in pushing the boundaries of finding the scaling laws of agents.

  • Join WechatGroup for further discussions!

Star History

Citation

…

Acknowledgment

We would like to thank Douglas for designing the logo of our project.

License

The source code is licensed under Apache 2.0.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonagent-based-frameworkagent-based-simulationai-societiesdeep-learning

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理