Skip to main content
skill CX Codex

openclaw-rl-training — Claude Code skill: train agents with RL

This skill sets up OpenClaw-RL, an async reinforcement learning framework that turns live conversations into training signals for a personal agent.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add reason-machines/trending-skills --skill openclaw-rl-training -a claude-code
Open on GitHub

What openclaw-rl-training does

OpenClaw-RL serves your self-hosted model behind an Anthropic-compatible API through OpenClaw, captures multi-turn conversations, and keeps optimizing the policy in the background while you keep using the agent. Four async loops run side by side: serving rollouts, collecting trajectories, scoring turns with a PRM or judge, and training the policy. GRPO, on-policy distillation and a combined method are all available.

Setup starts from the repo. Clone OpenClaw-RL, install requirements.txt, then install slime as the training backend. SGLang is optional and speeds up inference. Launch scripts come ready-made; you supply paths through environment variables such as MODEL_PATH, DATA_PATH and CKPT_SAVE_DIR, plus JUDGE_MODEL_PATH for OPD and PRM_MODEL_PATH for Binary RL.

GPU partitioning is on you. The example splits eight cards into four for training and four for rollout, and the script will not run without that split. LoRA cuts memory use when cards are scarce. Extension points like --custom-loss-function-path and --custom-rm-path let you plug in your own loss or reward model without touching slime core.

What it helps with

  • turn live agent conversations into training trajectories
  • set up GRPO training with a Process Reward Model
  • build on-policy distillation with a judge and textual hints
  • run an async RL pipeline without pausing agent serving
  • plug in a custom loss or reward model without editing the core

Example prompts for the agent

  • Set up agent training with OpenClaw-RL using run_qwen3_7b_openclaw_rl.sh
  • Split the GPUs between training and rollout, then launch run_qwen3_7b_openclaw_combine.sh
  • Wire in my own reward model with --custom-rm-path ./my_method/custom_rm.py

How to install openclaw-rl-training

1Skills CLI (Vercel)

npx skills add reason-machines/trending-skills --skill openclaw-rl-training -a claude-code

2Manually: put the files in place

~/.claude/skills/openclaw-rl-training/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/openclaw-rl-training/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about openclaw-rl-training

How do I install openclaw-rl-training in Claude Code?

Run npx skills add reason-machines/trending-skills --skill openclaw-rl-training -a claude-code. The skill lands at ~/.claude/skills/openclaw-rl-training/SKILL.md.

What does openclaw-rl-training do?

It sets up OpenClaw-RL, an asynchronous reinforcement learning framework that collects multi-turn conversations and keeps refining the agent policy in the background.

What do I need before starting a training run?

Paths to the base model, the conversation data and a checkpoint directory, passed as environment variables. OPD also needs JUDGE_MODEL_PATH, Binary RL needs PRM_MODEL_PATH.

Similar skills

All skills for AI and ML →

From the same set139

taiwan-md-knowledge-base A skill for maintaining an open knowledge base about Taiwan built on Astro v5, with Chinese and English articles and a D3.js graph. Useful if you write or translate content for that project. CX Codex +1 1,300installs zeroboot-vm-sandbox This skill runs agent code inside a real KVM virtual machine through Zeroboot, forking a template in under a millisecond. CX Codex +1 1,300installs slug-font-rendering Provides reference HLSL shaders for GPU vector font rendering with the Slug algorithm. Useful for drawing glyphs at any scale without texture atlases. CX Codex +1 1,300installs memory-lancedb-pro-openclaw Guides setup of OpenClaw’s LanceDB memory plugin. Useful when an agent needs to retain project context between sessions or retrieve stored details. CX Codex +1 1,300installs trump-code-market-signals Evaluates Truth Social and X posts against S&P 500 movements using tested trading rules. Helpful when studying market sentiment signals. CX Codex +1 1,300installs clui-cc-claude-overlay This skill puts a floating macOS overlay on top of Claude, with tabbed sessions, tool-call approval and voice input. CX Codex +1 1,300installs translate-book-parallel Turns a full book in PDF, DOCX or EPUB into another language. Each slice of text gets its own context window, so a long file does not get cut short. CX Codex +1 1,300installs toon-format Encodes JSON data into compact TOON syntax to trim prompt tokens by roughly 40%. Helps agents format inputs efficiently for language models. CX Codex +1 1,300installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor