| title | Installation |
|---|---|
| description | Get started with Marvin in under a minute |
| icon | download |
- Python 3.10 or higher
- An API key from an LLM provider (OpenAI by default, or AI/ML API)
The easiest way to install Marvin is a package manager like pip or uv:
# add marvin to your project
uv add marvin
# add marvin to your virtual environment
uv pip install marvin
# add marvin to your script
uv add --script some_script.py marvin
# run a python process with marvin installed ephemerally
uv run --with marvin some_script.pypip install marvinBy default, Marvin uses OpenAI's models. Set your API key as an environment variable:
export OPENAI_API_KEY="your-api-key"To use AI/ML API, set the AIML_API_KEY variable instead:
export AIML_API_KEY="your-api-key"To use another provider, see the docs on configuring LLMs.
For development, install Marvin with development dependencies:
git clone https://github.com/prefecthq/marvin.git
cd marvin
uv venv && source .venv/bin/activate
uv sync --devgit clone https://github.com/prefecthq/marvin.git
cd marvin
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"- Follow the Quickstart guide to build your first AI application
- Learn about Tasks, the building blocks of AI workflows
- Explore Agents to create specialized AI workers
- Read about Threads for managing conversation context