Mesa-LLM: Generative Agent-Based Modeling with Large Language Models Empowered Agents
| CI/CD | |
| Package | |
| Meta | |
| Chat |
Mesa-LLM integrates large language models (LLMs) as decision-making agents into the Mesa agent-based modeling (ABM) framework. It enables sophisticated, language-driven agent behaviors, allowing researchers to model scenarios involving communication, negotiation, and decision-making influenced by natural language.
⚠️ WARNING ⚠️ This repository is currently under active development. The API and functionality may change significantly. Please stay tuned for our first release coming soon!
Installation
To install Mesa-LLM, run:
pip install -U mesa-llm
Mesa-LLM pre-releases can be installed with:
pip install -U --pre mesa-llm
You can also use pip to install the GitHub version:
pip install -U -e git+https://github.com/mesa/mesa-llm.git#egg=mesa-llm
Or any other (development) branch on this repo or your own fork:
pip install -U -e git+https://github.com/YOUR_FORK/mesa-llm@YOUR_BRANCH#egg=mesa-llm
For more help on using Mesa-LLM, check out the following resources:
Supported LLM Providers
Mesa-LLM supports the following LLM providers:
- OpenAI
- Anthropic
- xAI
- Hugging Face
- Ollama
- OpenRouter
- Novita AI
- Google Gemini
Contributing to Mesa-LLM
Want to join the team, or just curious about what is happening with Mesa and Mesa-LLM? You can:
- Join our Matrix chat room where questions, issues, and ideas can be discussed informally.
- Come to a monthly dev session (you can find dev session times, agendas, and notes at Mesa discussions).
- Check out the code on GitHub.
If you run into an issue, please file a ticket for us to discuss. If possible, follow up with a pull request.
If you would like to add a feature, please reach out via a ticket or join a dev session (see Mesa discussions).
A feature is most likely to be added if you build it!
Don't forget to check out the Contributors Guide.
Release files for Mesa-LLM 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mesa_llm-0.3.2.tar.gz | 193.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mesa_llm-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 253.1 kB
Release files / mesa_llm-0.3.2.tar.gz
| Download URL | mesa_llm-0.3.2.tar.gz |
|---|---|
| Size | 193.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
946fb0da40577eb91ab114f279ff7333604a376ce8e36523e1509b6335a5a6bc
|
|
BLAKE2b-256 checksum How to use checksums |
fdf009cbba2223b936e351e72d40d3d0197ac706c4e7d0859ff7e57cf0dec844
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 26, 2026.
Transparency logRelease files / mesa_llm-0.3.2-py3-none-any.whl
| Download URL | mesa_llm-0.3.2-py3-none-any.whl |
|---|---|
| Size | 59.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
891747a458f46a9775dadf3fb0a9ca3a00780545b5503b9009fe145d6bd81687
|
|
BLAKE2b-256 checksum How to use checksums |
64ff63b1e3248178651f26f834567918b4569d9279d0638685848a7efd13b6eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 26, 2026.
Transparency log