Installation¶
This guide explains how to install the openmas package.
Prerequisites¶
- Python 3.10 or newer.
Standard Installation¶
The quickest way to install OpenMAS is using pip:
Using Virtual Environments (Recommended)¶
Python's built-in tool for creating lightweight virtual environments.
-
Create the environment:
-
Activate the environment:
- macOS/Linux:
source .venv/bin/activate - Windows (Command Prompt):
.venv\Scripts\activate.bat - Windows (PowerShell):
.venv\Scripts\Activate.ps1
- macOS/Linux:
-
Install OpenMAS:
A modern tool for Python dependency management and packaging, which automatically handles virtual environments.
-
Add OpenMAS to your Poetry project: (Run this command inside your project directory where
pyproject.tomlis located)- Poetry will create a virtual environment if one doesn't exist for the project and install
openmasinto it. - If you haven't initialized your project with Poetry yet, run
poetry initfirst orpoetry new your-project-name.
- Poetry will create a virtual environment if one doesn't exist for the project and install
-
Run commands within the environment:
- Either prefix commands with
poetry run(e.g.,poetry run python your_script.py) - Or activate the shell explicitly:
poetry shell
- Either prefix commands with
An extremely fast Python package installer and resolver, capable of replacing pip and venv.
-
Create the environment:
-
Activate the environment:
- macOS/Linux:
source .venv/bin/activate - Windows (Command Prompt):
.venv\Scripts\activate.bat - Windows (PowerShell):
.venv\Scripts\Activate.ps1
- macOS/Linux:
-
Install OpenMAS using uv:
A popular package and environment manager, often used in data science.
-
Create the environment:
-
Activate the environment:
-
Install OpenMAS:
Optional Dependencies¶
OpenMAS is modular. Install optional features as needed:
mcp: Model Context Protocol integration.grpc: gRPC communication support.mqtt: MQTT communication support.all: All optional dependencies.
Install these extras using brackets []. The specific command depends on how you manage your environment:
-
If using
piporuv: -
If using
Poetry:
Verify Installation (Optional)¶
After installation, you can verify it using one of these methods:
- Use the
--versionflag to quickly check the installed version:
- Use the
infocommand which shows detailed information about the installation including version and module information:
Example output:
OpenMAS version: 0.1.0
Python version: 3.10.17 (CPython)
Platform: macOS-15.4.1-arm64-arm-64bit
Optional modules:
base ✓
http ✓
mcp ✓
grpc ✗
mqtt ✓
For more information, visit: https://docs.openmas.ai/
For JSON output (useful for scripting), use:
- You can also verify installation by importing the package: