Installation
Prerequisites¶
- Python 3.13+ (will be automatically installed by
uv) - uv (easily manage Python environments and agents' dependencies)
- mcpd (interface to manage and run MCP servers)
- (Optional) Docker (for containerized server deployment)
Installation¶
-
Clone the repository and navigate to the agent's source directory:
git clone https://github.com/mozilla-ai/agent-factory.git && cd agent-factory -
Install the dependencies using
uv:uv sync --dev -
Activate the virtual environment:
source .venv/bin/activate -
Create a
.envfile in the project root directory and add your OpenAI API key and Tavily API key (required). You can get a free Tavily API key by signing up here.OPENAI_API_KEY=sk-... TAVILY_API_KEY=tvly_... -
(Only required if you are developing the library) Install pre-commit hooks:
pre-commit install