Skip to content

Installation

Quick Install

pip install agentopt-py
uv add agentopt

Optional Dependencies

Requires PyTorch and BoTorch:

pip install "agentopt-py[bayesian]"
pip install "agentopt-py[bayesian]"

Development Setup

git clone https://github.com/AgentOptimizer/agentopt.git
cd agentopt
uv sync --extra dev
uv run pytest

Requirements

  • Python >= 3.10
  • LLM API key (e.g., OPENAI_API_KEY set in your environment)

No framework dependency

AgentOpt has minimal core dependencies (httpx, pydantic). It works alongside whatever LLM framework you already use — no need to install framework-specific adapters.