A Microsoft Research framework for optimizing AI agents through Reinforcement Learning and prompt tuning with zero code changes.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install agent-lightning
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install agent-lightning using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Agent Lightning is a specialized framework developed by Microsoft Research that allows developers to turn standard AI agents into optimized powerhouses. By employing Reinforcement Learning (RL), Automatic Prompt Optimization (APO), and Supervised Fine-tuning (SFT), it provides a pathway to enhance agent logic and efficiency without rewriting core code. This framework is a critical addition to the Openclaw Skills ecosystem for developers who need to scale agent capabilities across various platforms like LangChain, CrewAI, and AutoGen.
The tool focuses on selective optimization, meaning you can choose to improve specific agents within a complex multi-agent system. Its zero-code-change philosophy, implemented via tracers or simple helper functions, ensures that your existing development workflow remains intact while the underlying intelligence of your agents evolves through automated training cycles.
To install the framework, use the following command in your terminal:
pip install agentlightning
For developers requiring the latest nightly builds to test with new Openclaw Skills features:
pip install --upgrade --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ --pre agentlightning
Ensure your environment variables are configured for the trainer:
export OPENAI_API_KEY="sk-..."
export AGL_STORAGE="s3://your-bucket/path/"
Agent Lightning utilizes a structured approach to manage training data and agent state, making it easy to integrate with other Openclaw Skills.
| Data Type | Description | Storage Method |
|---|---|---|
| Traces | Captured logs of messages and tool calls | LightningStore |
| Configs | YAML files defining hyperparameters and tasks | Local Filesystem |
| Checkpoints | Saved states of prompts or model weights | Local/S3 |
| Logs | Detailed training metrics and loss curves | ~/.agent-lightning/logs/ |
| Evaluations | Results from benchmark tasks like math or coding | JSON Reports |
Loading
A mechanical enforcement framework that uses git hooks and scripts to ensure AI agents follow project standards and security protocols.

A specialized skill for remote SSH management of high-performance 4090 servers hosting Dify and Docker-based AI infrastructure.

A comprehensive AI agent skill designed to automate the entire TikTok slideshow marketing pipeline from competitor research to conversion-driven iteration.

A professional wellness integration for Openclaw Skills that provides mindfulness exercises, mood tracking, and burnout prevention tools.

A CLI-driven micro-payment tool that enables AI agents and humans to send quality signals through financial tipping.

An emergent psychological affect system that transforms interaction data into complex internal states and behavioral snapshots for AI agents.








































