- Python 3.9+ (the kernel needs nothing else)
- Optional:
fastapi+uvicornfor the control plane (pip install -r requirements.txt)
git clone https://github.com/huzjie/agentlightning.git
cd agentlightning
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txtpython -m agentlightning doctorExpected output lists the harnesses (codex, deepseek, claude_code, local, mock), providers (9 + mock), and reward functions (5).
python -m agentlightning train --task "Solve: implement fizzbuzz"This collects trajectories in the mock harness, scores them, and runs PPO over the policy's learnable parameters. Fully offline.
python -m agentlightning rollout --task "Answer: what is 2+2?" --episodes 16python -m agentlightning verify --task "capital of France" --n 5 --mode majoritypython -m agentlightning serve --host 0.0.0.0 --port 8000