Concordia: A Library for Generative Social Simulation
A library for constructing and running generative agent-based models that simulate social interactions.
- Source repo
- google-deepmind/concordia
- Stars
- ★ 1.9k
- Last updated
- 5d ago v2.4.0
- FARS reviewed
- Nov 07, 2026
- License
- Apache-2.0
- Primary language
- Python
- FA score
- 62/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platform
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- Social science researchers simulate group dynamics and social phenomena to test theories.
- Not a fit if
- Developers wanting a turnkey tool with no embedder setup
- Researchers who need fully reproducible simulations
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-27latest release v2.4.0 (2026-03-06)+3.1 ★/day over 7 days
- Source review
- 62/100 · Some gaps 1 safety controls not found
What does this agent do, and when should you use it?
Concordia is a library developed by Google DeepMind for building and running generative agent-based models (ABMs) that simulate interactions among entities in physical, social, or digital environments. Its core innovation is the use of a 'Game Master' (GM) entity that simulates the environment, translating agents' natural language actions into appropriate outcomes. The library offers modular components and pre-built prefabs for agents and game masters, enabling complex behaviors to be assembled from simple reusable parts. Installation is straightforward via pip. The project includes tutorials and Colab notebooks for quick start. Concordia is designed for a range of applications including social science research, AI safety, economics, synthetic data generation, and evaluating real services through simulated usage.
Concordia is a Python library for creating and running generative agent-based simulations. It defines three core concepts: Entities (agents and game masters), Components (modular behavior units), and Engine (the simulation loop). The simulation loop asks entities for actions; agents express their intentions in natural language, and the Game Master uses a language model to translate these into outcomes that respect physical, social, or digital constraints. It requires access to an LLM API and optionally a text embedder for memory. Users can assemble simulations using prefabs and custom components.
- Social science researchers simulate group dynamics and social phenomena to test theories.
- AI safety researchers construct scenarios to evaluate the safety and ethical behavior of AI systems in complex social interactions.
- Economists model market interactions and decision-making processes to study economic models.
- UX teams generate synthetic interaction data for training personalization systems.
- Service providers simulate user behavior to assess the performance of real services.
- Cognitive neuroscientists build agent models inspired by neural processes to study cognition.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
pip install gdm-concordia
How do you install or deploy this agent?
Run pip install gdm-concordia in your terminal. After installation, you can import concordia in your code. Requires Python.
How do you use this agent?
First, ensure you have installed gdm-concordia and have access to an LLM API (optionally specify a text embedder). Then, run the Colab tutorial ([examples/tutorial.ipynb](examples/tutorial.ipynb)) or refer to the examples in the repository. Building a simulation typically involves defining prefabs for agents and game masters, configuring a language model, and running the simulation loop. For detailed guidance, refer to the README and tutorials.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Makes outbound requests; verify telemetry settings and model data routing on private repos.
FARS trust-control audit
- rollback or recovery path — Back up first, or work on a git branch or snapshot, so its changes can be undone.
What are this agent's strengths and limitations?
- The Game Master architecture provides an intuitive and powerful way to simulate environments.
- Modular components and prefabs allow for easy customization and reuse.
- Backed by Google DeepMind, with a comprehensive tech report and design pattern paper.
- Colab tutorials and a cheat sheet lower the learning curve.
- Requires an external LLM API, with results dependent on model capability and potential costs.
- Requires providing a text embedder, adding configuration complexity.
- As a research library, documentation is academic-oriented, which may be a barrier for general developers.
- Dependency on LLM stability and responses may affect simulation reproducibility.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Concordia: A Library for Generative Social Simulation This agent | 62 · Some gaps | Library / SDKFree + model costs | ★ 1.9k | 5d ago | Python | — |
| MiroFish Offline | 40 · Major gaps | Self-hosted serviceFree | ★ 2.8k | 8mo ago | Python | OpenAI API · Claude API |
| Sotopia | 46 · Major gaps | Library / SDKFree + model costs | ★ 348 | 11mo ago | Python | OpenAI API |
| OASIS Social Simulation | 48 · Major gaps | Library / SDKFree + model costs | ★ 5.5k | 2d ago | Python | OpenAI API |
How does FollowAgents rate this agent?
Why each dimension lost points
The README says a standard LLM API is required, external applications and services are optional, and the GM processes entity actions, making the main data flow and external dependencies reasonably visible (2). The package materials do not explain data retention, sensitive-input handling, permission boundaries, or user confirmation; users provide API access, so sensitive-data handling and confirmation each score 1. No undo or rollback mechanism is shown (0). The dependency file pins versions with hashes, and the workflow uses read-only default permissions and pinned action commits, supporting a score of 2 for dependency security. The README includes a paper citation, supporting attribution (2).
The README, directory descriptions, installation steps, and configuration are broadly consistent about the library's purpose. The dependency file pins versions and hashes to support ordinary installation, though the README notes some underlying dependencies may not support a user's environment. The provided material does not show concrete error handling or troubleshooting guidance, so failure messages score 1.
The README names social science, AI safety and ethics, cognitive neuroscience, economics, synthetic data, and service evaluation, giving strong evidence of intended audiences and scenarios (3). It describes entities, components, prefabs, the engine, and LLM/embedder requirements, but does not clearly bound the validity of simulation results or their use in real-world decisions (2). The GUI/CLI guide, tutorials, examples, and choice of LLM help users adapt the framework; specific triggers are mostly determined by how callers build a simulation (2).
The README organizes directories by function and points to tutorials, installation, examples, and citation guidance (3). PyPI installation and manual development setup for Python 3.12+ are fairly clear, but extra LLM dependencies require user management (2). Core terms are explained, but the material does not show API compatibility or migration policy (2). Tutorials, GUI/CLI guidance, and examples help, though no dedicated FAQ is shown (2). The README identifies the LLM API requirement and notes that some dependency environments may be unsupported (2). The Apache-2.0 terms are explicit in LICENSE (3). No changelog or version history is included in the packet (1). A security reporting path and response target are stated, but general maintenance ownership and support channels are limited (2).
The entity/component/engine pattern, prefabs, and examples support building simulations whose generated actions and observations can be used for research or evaluation (2). A modular framework for generative social simulation offers clear additional value for that use (3). The framework requires an LLM API and embedder and may connect to external services; the materials give no cost, latency, or resource estimates (1).
Claims about purpose, architecture, installation, and citation are described concretely in the README, with some corroboration from pyproject, dependency pins, security guidance, and release/scanning workflows (2 for traceability and 2 for cross-source corroboration). The README identifies simulations as generative models, names external dependencies, and states the product is not officially supported; however, the packet provides no empirical validation for example outcomes or applicability claims (2 for separating fact from inference).
- Not found in source: rollback or recovery pathBack up first, or work on a git branch or snapshot, so its changes can be undone.
- Running simulations requires API access to an external LLM and may involve external applications or services; the materials do not explain data retention, sensitive-input safeguards, or spending limits.
- The documentation describes a simulation framework; generated behavior alone should not be treated as evidence of real population behavior or as a basis for high-impact decisions.
- This assessment uses only the supplied static materials; code was not run and example results were not verified.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
[2.4.0] - 2026-03-06 Changed - Use InteractiveDocument RNG for diversified answers - NextActingActiveEntity returns the current player for async threads - Make more basic entity parameters configurable and give them more sensible default values. Remove the relevant memories component since it does not really help here, and it can confuse, especially in simulations that don't have a concrete concept of time. - Make LastNObservations component give a more sensible error message if the user passes a wrong type history length. …View on GitHub ↗ -
Release notes excerpt
[2.3.0] - 2026-02-04 Changed - Deleted all deprecated files. - Support overriding the default language model either for agents or game masters in the generic simulation prefab. - tests for event resolution filtering - Replace print() statements with absl.logging - Add analyze-logs skill - Add option on generic simulation.play to produce new style structured logs. No change to default behavior. New log style is off by default (for now). - Improve the new structured logging library and remove functions used only for comparison to the old format. …View on GitHub ↗
FAQ
What are the runtime requirements for Concordia?
Is Concordia free to use?
How can I integrate my business logic into a Concordia simulation?
Are simulation results reproducible?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.