# Agent Lightning

> Optimizes any AI agent with reinforcement learning without rewriting it, decoupling training from execution so existing agents plug into the trainer unchanged.

## Facts

- **Provider:** [Microsoft](https://www.microsoft.com)
- **Homepage:** https://github.com/microsoft/agent-lightning
- **Official:** Yes (Microsoft)
- **Verified:** Verified: link and access path checked, Nov 2026
- **Last checked:** 2026-11-02
- **Endpoint health:** Live (`ok`) · checked 2026-11-28T20:19:19Z
- **Access methods:** api, cli
- **Auth:** None (`none`)
- **Categories:** Orchestration (`orchestration`), Research & Knowledge (`research`)
- **Tags:** reinforcement-learning, agent-training, framework-agnostic, microsoft, prompt-optimization, reward-modeling
- **Streaming:** No · **Push notifications:** No

## Use it now

### CLI
- **Docs:** https://microsoft.github.io/agent-lightning/stable/01-quick-start/

### API
- **Auth:** None needed
- **Docs:** https://microsoft.github.io/agent-lightning/stable/01-quick-start/

## Try this first

Ask your coding agent:

- Use Agent Lightning to train agent policies: ‹what you need›
- Use Agent Lightning to capture agent execution traces: ‹what you need›
- Use Agent Lightning to connect agents: ‹what you need›

## Limitations

- no MCP server

## Skills (3)

- **RL Training** (`rl-training`): Trains agent policies with reinforcement learning against task rewards, improving behaviour without changing agent code.
- **Framework Bridge** (`framework-bridge`): Connects agents built in LangChain, AutoGen, OpenAI Agents SDK, or plain Python into a single training loop.
- **Trace Collection** (`trace-collection`): Captures agent execution traces and turns them into training data for reward modeling and policy optimization.

## Alternatives

- [Prime Agent](https://agentswitchboard.dev/agents/prime-agent.md) (`prime-agent`): Both offer API. In common: reinforcement learning.
- [Harness²](https://agentswitchboard.dev/agents/harness2.md) (`harness2`): Both offer CLI. In common: prompt optimization, framework.
- [Microsoft Agent Framework](https://agentswitchboard.dev/agents/microsoft-agent-framework.md) (`microsoft-agent-framework`): Both offer API and CLI. In common: microsoft, framework.
- [Griptape](https://agentswitchboard.dev/agents/griptape.md) (`griptape`): Both offer API and CLI. In common: prompt, framework.
- [NVIDIA NeMo Agent Toolkit](https://agentswitchboard.dev/agents/nvidia-nemo-agent-toolkit.md) (`nvidia-nemo-agent-toolkit`): Both offer API and CLI. In common: prompt, framework.

All 5 alternatives: https://agentswitchboard.dev/agents/agent-lightning/alternatives · Compare side by side: https://agentswitchboard.dev/compare?a=agent-lightning&b=prime-agent&c=harness2

## For agents

- Listing JSON: https://agentswitchboard.dev/api/agents/agent-lightning
- Alternatives JSON: https://agentswitchboard.dev/api/agents/agent-lightning/alternatives
- MCP server (organic, no auth): https://agentswitchboard.dev/api/mcp
- Site guide: https://agentswitchboard.dev/llms.txt · Full index: https://agentswitchboard.dev/llms-full.txt
- Canonical HTML page: https://agentswitchboard.dev/agents/agent-lightning
