Catalog PyPI
PACKAGE EXPLORERView in registry

agentcore-rl-toolkit

PyPI

Toolkit for Seamlessly Enabling RL Training with Bedrock AgentCore.

Versions collected1
Direct dependencies30From release 0.2.0
Last observed20 Oct, 21:43 UTC

README

Version 0.2.0 documentation

🚀 AgentCore RL Toolkit (ART)

Scalable, Composable Reinforcement Learning for Real-World Agents.

CI PyPI Python License

Website · Documentation · Getting Started · Blogs · Examples

AgentCore RL Toolkit (ART) helps developers improve custom agents with reinforcement learning on AWS Bedrock AgentCore Runtime. It brings together scalable, sandboxed rollouts, token-level trajectory capture, training integrations, and examples spanning coding, office automation, and customer service.

Bring your agent framework, tools, and environments. Define your reward function and choose either a self-hosted or a managed training backend while keeping most of your production code intact.

🎯 Agents We've Trained

Our experiments include Strands and OpenHands agents working with real repositories, office applications, and stateful customer-service environments.

Agent and taskModelTask successLearn more
Java code migration
Strands · MigrationBench
Qwen3.8-27B52% → 93%rLLM collaboration
Agent code
Qwen3-Coder-30B-A3B43% → 76%
Office automation
Strands · OfficeBench
Qwen3-30B-A3B24% → 41%Results · Agent code
Software engineering
OpenHands · SWE-Gym
Qwen3-Coder-30B-A3B56% → 64%Results · Agent code
Customer service
Strands · τ²-Bench Telecom
Qwen3-30B-A3B-Thinking38% → 96% (SFT + RL)Data synthesis and results
Automotive assistant
Strands · CAR-bench
Qwen3-30B-A3B-Thinking52% → 83% (SFT + RL)BMW collaboration

🧩 What ART Provides

  • Train your own agent. Reuse your framework, tools, and application logic. Examples include Strands, OpenHands, and mini-swe-agent; agents use standard OpenAI- or Anthropic-compatible model clients.
  • Scale complex rollouts. Run long-running agents and their environments on Bedrock AgentCore Runtime, with isolated sessions and on-demand scaling. Builds, tests, and tool execution run separately from the GPU training infrastructure.
  • Capture the data RL needs. The rollout gateway records the exact sampled token IDs, logprobs, and loss masks across model turns, including branching conversations, without custom model wrappers in your agent.
  • Choose your training backend. Train with verl, slime, Tinker, or SkyRL. Agent execution stays separate from model training.
  • Evaluate and verify. Collect rollout results with concurrency control, timeouts, and session cleanup. Use the Sandbox SDK to execute commands and verifiers in task-specific container environments on AgentCore.

How It Works

%%{init: {"flowchart": {"rankSpacing": 20}}}%%
flowchart LR
    subgraph acr["AgentCore Runtime"]
        direction TB
        agent["Agent session<br/>Your agent + tools"]
        sandbox["Sandbox session<br/>(optional)"]
        agent <-.->|Tool I/O| sandbox
    end

    gateway["ART rollout gateway<br/>Token capture"]
    backend["Training backend<br/>Sampling + updates"]
    acr <-->|Model calls| gateway
    gateway <-->|Tokens +<br/>logprobs| backend
    acr -->|Task rewards| backend

Tools can run within the agent session or execute commands in a separate sandbox session for task isolation.

ART's training integrations combine captured trajectories with task rewards so the backend can update the model. Your agent keeps its application-level model interface throughout the loop. See the architecture overview for the runtime, gateway, and result-delivery details.

🔬 Research & Collaborations

We share the training methods and systems work behind these agents, including joint experiments with the rLLM team and collaboration with BMW on CAR-bench.

⚡ Getting Started

The core SDK supports Python 3.11+. Training environments such as Megatron and the SkyRL service require Python 3.12; follow their setup guides.

Install the core SDK:

pip install 'agentcore-rl-toolkit[core]'

Or use uv add 'agentcore-rl-toolkit[core]'. The core SDK includes agent apps and rollout clients. See the installation guide for component-specific dependencies and the deployment CLI.

  1. Start with an agent. Try the math agent for a small end-to-end example, or choose a task from Example Agents.
  2. Choose a training backend. Follow its guide for the required agent entrypoint, dependencies, AWS deployment, and networking setup.
  3. Define success and train. Supply task inputs and a reward function, evaluate your baseline, then launch the backend's training recipe.

Already have an agent? The AgentCoreRuntimeApp example shows how to keep @app.entrypoint while running rollouts and returning task rewards. Follow your training backend's guide for its supported agent setup and deployment steps.

🔌 Training Backends

ART integrates with the following training backends through its rollout gateway for token-level trajectory capture.

IntegrationTraining setupGet started
verlSelf-hosted training with verlSetup guide
slimeSelf-hosted training with slimeSetup guide
SkyRLSelf-hosted training through its Tinker-compatible APITraining guide · Deployment example
TinkerManaged training through the official Tinker APITraining guide

SkyRL and Tinker share the toolkit's Tinker-compatible API integration.

rLLM

rLLM natively integrates with AWS Bedrock AgentCore Runtime. Follow its AgentCore integration guide for installation, configuration, and training.

🛠️ Example Agents

TaskFrameworkExample
Math reasoning with a calculator · GSM8KStrandsStart here
Java repository migration · MigrationBenchStrandsGuide
Office automation · OfficeBenchStrandsGuide
Personal assistant · AppWorldStrandsGuide
Customer service · τ²-BenchStrandsGuide
Software engineering · SWE-GymOpenHandsGuide
Terminal tasks · Harbor / TMaxmini-swe-agentGuide

Terminal agents with separate sandboxes. The terminal agent example uses the Sandbox SDK to run mini-swe-agent and its task environment in separate AgentCore sessions. Verifier tests are withheld until the agent finishes, keeping tests and grading feedback out of the model conversation.

Contributing

Contributions to agent examples, training integrations, and the core toolkit are welcome. See CONTRIBUTING.md for development setup and contribution guidelines, and the design document process for significant features or architectural changes.

Security

See security issue notifications.

License

This project is licensed under the Apache-2.0 License.

Downloads & popularity

60downloads
1-day window · source-reported counts20 Oct 2026
12160.50
2026-07-23: 30 · observed 2026-10-21T08:53:37.2051391Z · period 2026-07-23–2026-07-232026-07-24: 41 · observed 2026-10-21T08:53:37.2051391Z · period 2026-07-24–2026-07-242026-07-25: 28 · observed 2026-10-21T08:53:37.2051391Z · period 2026-07-25–2026-07-252026-07-26: 15 · observed 2026-10-21T08:53:37.2051391Z · period 2026-07-26–2026-07-262026-07-27: 22 · observed 2026-10-21T08:53:37.2051391Z · period 2026-07-27–2026-07-272026-07-28: 6 · observed 2026-10-21T08:53:37.2051391Z · period 2026-07-28–2026-07-282026-07-29: 13 · observed 2026-10-21T08:53:37.2051391Z · period 2026-07-29–2026-07-292026-07-30: 2 · observed 2026-10-21T08:53:37.2051391Z · period 2026-07-30–2026-07-302026-07-31: 13 · observed 2026-10-21T08:53:37.2051391Z · period 2026-07-31–2026-07-312026-08-01: 6 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-01–2026-08-012026-08-02: 1 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-02–2026-08-022026-08-03: 3 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-03–2026-08-032026-08-04: 12 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-04–2026-08-042026-08-05: 13 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-05–2026-08-052026-08-06: 1 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-06–2026-08-062026-08-07: 13 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-07–2026-08-072026-08-08: 1 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-08–2026-08-082026-08-09: 10 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-09–2026-08-092026-08-10: 11 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-10–2026-08-102026-08-11: 7 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-11–2026-08-112026-08-12: 5 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-12–2026-08-122026-08-13: 12 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-13–2026-08-132026-08-14: 33 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-14–2026-08-142026-08-15: 22 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-15–2026-08-152026-08-16: 10 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-16–2026-08-162026-08-17: 10 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-17–2026-08-172026-08-18: 6 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-18–2026-08-182026-08-19: 97 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-19–2026-08-192026-08-20: 43 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-20–2026-08-202026-08-21: 5 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-21–2026-08-212026-08-22: 8 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-22–2026-08-222026-08-23: 3 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-23–2026-08-232026-08-24: 15 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-24–2026-08-242026-08-25: 8 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-25–2026-08-252026-08-26: 8 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-26–2026-08-262026-08-27: 10 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-27–2026-08-272026-08-28: 15 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-28–2026-08-282026-08-29: 2 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-29–2026-08-292026-08-31: 8 · observed 2026-10-21T08:53:37.2051391Z · period 2026-08-31–2026-08-312026-09-01: 7 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-01–2026-09-012026-09-02: 5 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-02–2026-09-022026-09-03: 6 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-03–2026-09-032026-09-04: 7 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-04–2026-09-042026-09-05: 2 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-05–2026-09-052026-09-06: 2 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-06–2026-09-062026-09-07: 14 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-07–2026-09-072026-09-08: 4 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-08–2026-09-082026-09-10: 5 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-10–2026-09-102026-09-11: 1 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-11–2026-09-112026-09-12: 2 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-12–2026-09-122026-09-13: 3 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-13–2026-09-132026-09-14: 17 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-14–2026-09-142026-09-15: 13 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-15–2026-09-152026-09-16: 8 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-16–2026-09-162026-09-17: 8 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-17–2026-09-172026-09-18: 11 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-18–2026-09-182026-09-19: 5 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-19–2026-09-192026-09-20: 8 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-20–2026-09-202026-09-21: 7 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-21–2026-09-212026-09-22: 4 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-22–2026-09-222026-09-23: 18 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-23–2026-09-232026-09-24: 12 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-24–2026-09-242026-09-25: 16 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-25–2026-09-252026-09-26: 3 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-26–2026-09-262026-09-27: 5 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-27–2026-09-272026-09-28: 11 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-28–2026-09-282026-09-29: 13 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-29–2026-09-292026-09-30: 20 · observed 2026-10-21T08:53:37.2051391Z · period 2026-09-30–2026-09-302026-10-01: 24 · observed 2026-10-21T08:53:37.2051391Z · period 2026-10-01–2026-10-012026-10-02: 113 · observed 2026-10-21T08:53:37.2051391Z · period 2026-10-02–2026-10-022026-10-03: 12 · observed 2026-10-21T08:53:37.2051391Z · period 2026-10-03–2026-10-032026-10-04: 121 · observed 2026-10-21T08:53:37.2051391Z · period 2026-10-04–2026-10-042026-10-05: 11 · observed 2026-10-21T08:53:37.2051391Z · period 2026-10-05–2026-10-052026-10-06: 19 · observed 2026-10-21T08:53:37.2051391Z · period 2026-10-06–2026-10-062026-10-07: 15 · observed 2026-10-21T08:53:37.2051391Z · period 2026-10-07–2026-10-072026-10-08: 18 · observed 2026-10-21T08:53:37.2051391Z · period 2026-10-08–2026-10-082026-10-09: 13 · observed 2026-10-21T08:53:37.2051391Z · period 2026-10-09–2026-10-092026-10-10: 27 · observed 2026-10-21T08:53:37.2051391Z · period 2026-10-10–2026-10-102026-10-11: 12 · observed 2026-10-21T08:53:37.2051391Z · period 2026-10-11–2026-10-112026-10-12: 12 · observed 2026-10-21T08:53:37.2051391Z · period 2026-10-12–2026-10-122026-10-13: 96 · observed 2026-10-21T08:53:37.2051391Z · period 2026-10-13–2026-10-132026-10-14: 38 · observed 2026-10-21T08:53:37.2051391Z · period 2026-10-14–2026-10-142026-10-15: 26 · observed 2026-10-21T08:53:37.2051391Z · period 2026-10-15–2026-10-152026-10-16: 14 · observed 2026-10-21T08:53:37.2051391Z · period 2026-10-16–2026-10-162026-10-17: 19 · observed 2026-10-21T08:53:37.2051391Z · period 2026-10-17–2026-10-172026-10-18: 15 · observed 2026-10-21T08:53:37.2051391Z · period 2026-10-18–2026-10-182026-10-19: 71 · observed 2026-10-21T08:53:37.2051391Z · period 2026-10-19–2026-10-192026-10-20: 60 · observed 2026-10-21T08:53:37.2051391Z · period 2026-10-20–2026-10-20
23 Jul20 Oct

pypistats · 88 observations shown. Missing days are unknown. Source category: overall: without mirrors.

View observed values
Date / source periodValueObserved at
2026-10-20 – 2026-10-20602026-10-21T08:53:37.2051391Z
2026-10-19 – 2026-10-19712026-10-21T08:53:37.2051391Z
2026-10-18 – 2026-10-18152026-10-21T08:53:37.2051391Z
2026-10-17 – 2026-10-17192026-10-21T08:53:37.2051391Z
2026-10-16 – 2026-10-16142026-10-21T08:53:37.2051391Z
2026-10-15 – 2026-10-15262026-10-21T08:53:37.2051391Z
2026-10-14 – 2026-10-14382026-10-21T08:53:37.2051391Z
2026-10-13 – 2026-10-13962026-10-21T08:53:37.2051391Z
2026-10-12 – 2026-10-12122026-10-21T08:53:37.2051391Z
2026-10-11 – 2026-10-11122026-10-21T08:53:37.2051391Z
2026-10-10 – 2026-10-10272026-10-21T08:53:37.2051391Z
2026-10-09 – 2026-10-09132026-10-21T08:53:37.2051391Z
2026-10-08 – 2026-10-08182026-10-21T08:53:37.2051391Z
2026-10-07 – 2026-10-07152026-10-21T08:53:37.2051391Z
2026-10-06 – 2026-10-06192026-10-21T08:53:37.2051391Z
2026-10-05 – 2026-10-05112026-10-21T08:53:37.2051391Z
2026-10-04 – 2026-10-041212026-10-21T08:53:37.2051391Z
2026-10-03 – 2026-10-03122026-10-21T08:53:37.2051391Z
2026-10-02 – 2026-10-021132026-10-21T08:53:37.2051391Z
2026-10-01 – 2026-10-01242026-10-21T08:53:37.2051391Z
2026-09-30 – 2026-09-30202026-10-21T08:53:37.2051391Z
2026-09-29 – 2026-09-29132026-10-21T08:53:37.2051391Z
2026-09-28 – 2026-09-28112026-10-21T08:53:37.2051391Z
2026-09-27 – 2026-09-2752026-10-21T08:53:37.2051391Z
2026-09-26 – 2026-09-2632026-10-21T08:53:37.2051391Z
2026-09-25 – 2026-09-25162026-10-21T08:53:37.2051391Z
2026-09-24 – 2026-09-24122026-10-21T08:53:37.2051391Z
2026-09-23 – 2026-09-23182026-10-21T08:53:37.2051391Z
2026-09-22 – 2026-09-2242026-10-21T08:53:37.2051391Z
2026-09-21 – 2026-09-2172026-10-21T08:53:37.2051391Z
2026-09-20 – 2026-09-2082026-10-21T08:53:37.2051391Z
2026-09-19 – 2026-09-1952026-10-21T08:53:37.2051391Z
2026-09-18 – 2026-09-18112026-10-21T08:53:37.2051391Z
2026-09-17 – 2026-09-1782026-10-21T08:53:37.2051391Z
2026-09-16 – 2026-09-1682026-10-21T08:53:37.2051391Z
2026-09-15 – 2026-09-15132026-10-21T08:53:37.2051391Z
2026-09-14 – 2026-09-14172026-10-21T08:53:37.2051391Z
2026-09-13 – 2026-09-1332026-10-21T08:53:37.2051391Z
2026-09-12 – 2026-09-1222026-10-21T08:53:37.2051391Z
2026-09-11 – 2026-09-1112026-10-21T08:53:37.2051391Z
2026-09-10 – 2026-09-1052026-10-21T08:53:37.2051391Z
2026-09-08 – 2026-09-0842026-10-21T08:53:37.2051391Z
2026-09-07 – 2026-09-07142026-10-21T08:53:37.2051391Z
2026-09-06 – 2026-09-0622026-10-21T08:53:37.2051391Z
2026-09-05 – 2026-09-0522026-10-21T08:53:37.2051391Z
2026-09-04 – 2026-09-0472026-10-21T08:53:37.2051391Z
2026-09-03 – 2026-09-0362026-10-21T08:53:37.2051391Z
2026-09-02 – 2026-09-0252026-10-21T08:53:37.2051391Z
2026-09-01 – 2026-09-0172026-10-21T08:53:37.2051391Z
2026-08-31 – 2026-08-3182026-10-21T08:53:37.2051391Z
2026-08-29 – 2026-08-2922026-10-21T08:53:37.2051391Z
2026-08-28 – 2026-08-28152026-10-21T08:53:37.2051391Z
2026-08-27 – 2026-08-27102026-10-21T08:53:37.2051391Z
2026-08-26 – 2026-08-2682026-10-21T08:53:37.2051391Z
2026-08-25 – 2026-08-2582026-10-21T08:53:37.2051391Z
2026-08-24 – 2026-08-24152026-10-21T08:53:37.2051391Z
2026-08-23 – 2026-08-2332026-10-21T08:53:37.2051391Z
2026-08-22 – 2026-08-2282026-10-21T08:53:37.2051391Z
2026-08-21 – 2026-08-2152026-10-21T08:53:37.2051391Z
2026-08-20 – 2026-08-20432026-10-21T08:53:37.2051391Z
2026-08-19 – 2026-08-19972026-10-21T08:53:37.2051391Z
2026-08-18 – 2026-08-1862026-10-21T08:53:37.2051391Z
2026-08-17 – 2026-08-17102026-10-21T08:53:37.2051391Z
2026-08-16 – 2026-08-16102026-10-21T08:53:37.2051391Z
2026-08-15 – 2026-08-15222026-10-21T08:53:37.2051391Z
2026-08-14 – 2026-08-14332026-10-21T08:53:37.2051391Z
2026-08-13 – 2026-08-13122026-10-21T08:53:37.2051391Z
2026-08-12 – 2026-08-1252026-10-21T08:53:37.2051391Z
2026-08-11 – 2026-08-1172026-10-21T08:53:37.2051391Z
2026-08-10 – 2026-08-10112026-10-21T08:53:37.2051391Z
2026-08-09 – 2026-08-09102026-10-21T08:53:37.2051391Z
2026-08-08 – 2026-08-0812026-10-21T08:53:37.2051391Z
2026-08-07 – 2026-08-07132026-10-21T08:53:37.2051391Z
2026-08-06 – 2026-08-0612026-10-21T08:53:37.2051391Z
2026-08-05 – 2026-08-05132026-10-21T08:53:37.2051391Z
2026-08-04 – 2026-08-04122026-10-21T08:53:37.2051391Z
2026-08-03 – 2026-08-0332026-10-21T08:53:37.2051391Z
2026-08-02 – 2026-08-0212026-10-21T08:53:37.2051391Z
2026-08-01 – 2026-08-0162026-10-21T08:53:37.2051391Z
2026-07-31 – 2026-07-31132026-10-21T08:53:37.2051391Z
2026-07-30 – 2026-07-3022026-10-21T08:53:37.2051391Z
2026-07-29 – 2026-07-29132026-10-21T08:53:37.2051391Z
2026-07-28 – 2026-07-2862026-10-21T08:53:37.2051391Z
2026-07-27 – 2026-07-27222026-10-21T08:53:37.2051391Z
2026-07-26 – 2026-07-26152026-10-21T08:53:37.2051391Z
2026-07-25 – 2026-07-25282026-10-21T08:53:37.2051391Z
2026-07-24 – 2026-07-24412026-10-21T08:53:37.2051391Z
2026-07-23 – 2026-07-23302026-10-21T08:53:37.2051391Z

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.2.019 Oct 202630

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
awslabs/agentcore-rl-toolkit

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:43 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:26e806f591af10e26bc14963a2ad13c5339e246daf7d8b9494f8e38b5f1fa4d7