Record, train, and deploy from one place with Strands Agents, LeRobot, and Hugging Face Storage Buckets AWS's open source Strands Robots SDK now integrates with Hugging Face Storage Buckets to enable a continuous data loop for robot learning, allowing users to record demonstrations, train policies, and deploy them to hardware without repeated full dataset transfers. The integration leverages LeRobot's dataset format, already used by over 90,000 datasets and models from more than 8,000 publishers on the Hugging Face Hub, and was announced in March 2026. The workflow is demonstrated in a runnable notebook, examples/notebooks/05_streaming_data_loop.ipynb, and supports robots like the SO-101. Robotics • 5B • Updated • 7.01k • 21 Record, train, and deploy from one place with Strands Agents, LeRobot, and Hugging Face Storage Buckets Enterprise Article /blog A walkthrough of the streaming data loop in Strands Robots, one agent loop that records robot demonstrations, trains on them by reading straight from the Hub, and deploys the policy back to hardware, with the dataset in the same on-disk LeRobot format the whole way through. You have an agent that can already record a demonstration and push it to the Hugging Face Hub https://huggingface.co/ . Now you want to run that loop continuously: collect episodes through the day, train a policy on the growing dataset, deploy it, and pull the next batch back to improve it. Run that loop once and every piece works. Run it every day and you start paying for the same byte transfers over and over. The recordings you upload keep growing, each training run copies the whole dataset to the GPUs before it starts, and every new checkpoint ships out while the next batch of recordings comes back. The first post in this series https://huggingface.co/blog/amazon/strands-lerobot-hub-to-hardware introduced Strands Robots https://github.com/strands-labs/robots , an open source SDK from AWS Apache 2.0 https://www.apache.org/licenses/LICENSE-2.0 that exposes robot abstractions, simulation, and the LeRobot https://github.com/huggingface/lerobot stack as AgentTools you compose into a single Strands agent. It covered the Robot factory, recording a demonstration in simulation, running a policy, and deploying the same agent code to a physical SO-101. That factory resolves a name against a registry of arms, humanoids, mobile bases, and hands, so the SO-100 used throughout this post is one of many supported embodiments. The robot catalog https://strands-labs.github.io/robots/robots/ lists every robot the factory knows about. LeRobot's dataset format is already used by over 90,000 datasets and models on the Hub from more than 8,000 publishers LeRobot Project Pulse https://huggingface.co/spaces/imstevenpmwork/lerobot-adoption-dashboard . A Strands Robots recording is one more of them, so anything built to read LeRobot data can read it without conversion. If you are new to Strands Robots, start there; this post assumes that setup. That post followed the agent loop in one direction, from a Hub dataset to a physical robot. This one follows the data the other way, from the first recorded frame back to the deployed policy, over Hugging Face Storage Buckets https://huggingface.co/docs/hub/storage-buckets - a mutable, non-versioned, Xet https://huggingface.co/blog/from-files-to-chunks -backed object-storage repository type announced in March 2026 https://huggingface.co/blog/storage-buckets . A bucket sits beside your dataset repositories in the same hf:// namespace and uses the hf CLI you already have, so it becomes the working layer that holds your data between the day you record it and the day you train on it. Someone has to decide which episodes to keep, when the scene has drifted far enough to re-record, whether today's batch is enough to train on, and which checkpoint replaces the one on the arm. Each of those decisions comes up dozens of times over a collection campaign, and each one needs a look at what came back before the next command goes out. That is the work an agent is for. This post walks you through the data loop inside a single agent: record a demonstration into a Storage Bucket, store it so that each sync uploads only the bytes that changed, train by streaming the dataset straight from the Hub instead of downloading it, and deploy the checkpoint back to hardware with one keyword argument change. The runnable companion to this post lives at examples/notebooks/05 streaming data loop.ipynb https://github.com/strands-labs/robots/blob/main/examples/notebooks/05 streaming data loop.ipynb . What you'll build Where the first post recorded a dataset and pushed it to the Hub, the agent you build here records a LeRobotDataset from a natural-language prompt, syncs it into a Storage Bucket, and streams that same dataset back frame by frame, decoding camera video on the fly, with no local copy. You read it back in the same process that wrote it: the same Strands Robots Robot that recorded the dataset streams it. Your trained checkpoint then deploys to that same Robot with one keyword argument change, and the demonstrations it records on hardware return to the same bucket. Figure 1. The four stages share one backend. Robot "so100" records a LeRobotDataset through the shared DatasetRecorder ; sync dataset to bucket ... syncs it into a Storage Bucket; stream dataset ... reads it back over the Hub with no full download; and the trained checkpoint deploys to the same Robot with mode="real" . The on-disk format stays exactly as LeRobot wrote it. Because one Robot both records a dataset and reads it back, collecting data and training on it are two methods on one object over one backend. The agent decides to run an episode and invokes one tool; the rollout then proceeds at the robot's control frequency until the episode ends, with the trained policy producing every action. The whole loop, in a handful of lines: python from strands import Agent from strands robots import Robot sim = Robot "so100" mode="sim" default - safe, no hardware agent = Agent tools= sim Record a demonstration and sync it to a bucket. agent "Record a pick-the-cube demo and sync it to my-org/robot-fave." Stream it back from the bucket to train, without downloading it first. for batch in sim.stream dataset "my-org/robot-fave/cube pick", repo type="bucket" .dataloader batch size=64 : ... What follows is what's actually happening inside that loop, step by step. Prerequisites Minimal default simulation path - Python 3.12+, on Linux or macOS Apple Silicon supported for the MuJoCo backend . - A Strands-compatible model provider for the agent's reasoning. Amazon Bedrock https://aws.amazon.com/bedrock/ with AWS credentials, the Anthropic API https://docs.anthropic.com/ , OpenAI, or Ollama https://ollama.com/ running locally. - Strands Robots with the dataset extras: uv pip install -U "strands-robots sim-mujoco,lerobot =0.5.1" . The lerobot extra pulls in LeRobot =0.6.1 , datasets , av , and torchcodec , so recording and video decode both work without further setup. Refer to installation guide https://strands-labs.github.io/robots/getting-started/installation/ . That's it. Every stage in this post runs on a laptop with these three. What runs is the loop, not a working policy: the default path uses a mock policy, which records a valid dataset but not a useful one. Advanced buckets, hardware, real policies - A Hugging Face account and a token with write permission, plus the hf CLI for creating buckets and syncing datasets: pip install -U "huggingface-hub =1.6.0,<2.0.0" , then hf auth login . - For the hardware path: an SO-101 follower and leader pair, or any other LeRobot-supported robot, with calibration files under ~/.cache/huggingface/lerobot/calibration/ . - For local vision-language-action VLA inference: an NVIDIA GPU. For training at scale, a GPU cluster reading from the Hub. - To run the training step: uv pip install "lerobot training " . Recording and streaming do not need it. If you skip it, trainer.train returns an error result rather than a checkpoint. The troubleshooting guide https://strands-labs.github.io/robots/troubleshooting/ names that error and the install that fixes it. Step 1 - Record a demonstration into a bucket You record new episodes through the day, each a continuous run of camera frames and joint state-action telemetry. LeRobot writes that as a small set of large files that grow as you record. Push them into a versioned dataset repository and every append becomes a commit, and every revision is retained. Collection wants the reverse: somewhere to write bytes and overwrite them in place. That is a Storage Bucket https://huggingface.co/docs/hub/storage-buckets , which lives inside your Hugging Face workspace and uses the permissions you already have. There are no identity and access management IAM roles to configure, no cross-origin resource sharing CORS rules, and no upload service to maintain. Your agent records a LeRobotDataset in the same format LeRobot writes on hardware. Record the episode, then sync the finished dataset into a bucket. The prompt asks for the mock policy, a stand-in that produces joint actions without a trained model, so you can run the whole loop before you have a checkpoint to run: python from strands import Agent from strands robots import Robot, sync dataset to bucket sim = Robot "so100" mode="sim" by default agent = Agent tools= sim One prompt drives scene setup, cameras, policy, and recording. agent "Create a world with the so100 robot, add a red cube and a front camera, " "start recording repo id='local/cube pick', root='/tmp/cube pick', fps=30, " "overwrite=True, task='pick up the red cube' , run the mock policy for " "60 steps, then stop recording." Sync the finished on-disk dataset into the bucket no live recording session needed . sync dataset to bucket "/tmp/cube pick", "my-org/robot-fave" - {"status": "success", "bucket uri": "hf://buckets/my-org/robot-fave/cube pick"} The sync writes to hf://buckets/{bucket}/{run id} , where run id defaults to the dataset directory name. The streaming read in Step 3 names the run too: the first two segments of the id are the bucket, and everything after them is the path inside it. sync dataset to bucket root, bucket, run id=... validates the dataset and syncs it through the hf CLI, decoupled from the recording lifecycle. The same capability is on DatasetRecorder.sync to bucket bucket, run id=... if you drive an open recorder directly, and stop recording bucket=... syncs at the moment you stop an active recording. The bucket is the working layer you write to through the day; for the versioned, published artifact you still call push to hub . Both hold the same format. The episode is structurally complete, but the actions are placeholders, so it is not training data you would want. Swap in a real policy with create policy "