
Making Agentic Robotics Safer with OpenShell
At Skild AI, we build general-purpose intelligence for robots. One approach we’re exploring is an agent that controls a robot by writing and running code, much as language models have learned to control computers over the past couple of years. Interest in bringing this to robots is growing quickly.
Once a robot is deployed, fleet operators cannot write a program in advance for every request it gets or every place an object ends up. The agent should operate autonomously to perform its functions, such as changing a grasp or composing a new sequence of skills.
Whoever deploys the robot should decide in advance which files the agent’s code can change and which services it can contact. We use OpenShell, an open-source runtime that enforces those rules inside a sandbox. The robot’s own service checks motion requests against hardware limits.
Our agentic safety harness
Our harness gives the agent one tool, a Python interpreter. From it, the agent’s programs call the robot’s API, which runs locally on the robot. The API offers skills, such as grasping an object, and low-level capabilities, such as reading a camera or moving a joint in a limited way. The agent can combine them in any order, so it is not confined to tasks that we planned for.
The API sits outside the agent’s workspace, and is the only way the agent’s code can reach the hardware. The robot checks each request against its own limits before anything moves.
Asked to “fetch a drink”, for example, the agent writes a short program that looks through the robot’s cameras, locates the beverage, calls a grasp skill and reads the gripper to check whether the grasp held. When a grasp misses, the agent writes a different one.
The concierge robot
We’re testing OpenShell with a Dexmate mobile robot that serves as an office concierge, powered by a NVIDIA Jetson AGX Orin. Guests and employees can talk to the robot through its microphone and speaker.

It works by letting the agent write code that drives the robot and calls its skills. For example, when we asked it to bring a drink to a desk, it wrote a program that drove the robot to the fridge, picked up a can with a grasp skill, drove back and set the can on the desk.
When asked questions about Skild, OpenShell lets us restrict which files and services the agent can draw from. The agent then reads only its approved reference files without changing them.
What the sandbox enforces
The agent writes each program right before it runs. The program runs on a machine that has motors, connects to a company network, and works around people. It could try to change files on the robot, contact a server it has no reason to reach, or change a setting that protects the hardware.
For example, when a grasp fails we want the agent to try a different one—but we never want its code to be able to raise the current limit on the arm, which protects the motors. On a deployed robot, rules like this need to be set ahead of time and apply to every program the agent writes.
We run the agent’s code in an OpenShell sandbox on the robot’s onboard computer. The robot service, which drives the hardware, runs on the same computer as a separate process that code in the sandbox can only reach through its API.
On the robot, no sandboxOn the robot, in a sandbox
Skild harness
Runs the Python that the agent writes
open("skills/grasp.py", "w")file changedPermissionErrorurlopen("https://example.com")connectedPermissionErrorWhat the agent’s code can reach
- Robot serviceReached through the robot APIReached through the robot API
- Files on the robotCan read and change them, including skills and settingsOne writable workspace. Everything else is read-only or hidden
- The internetCan connect to any siteLanguage model API and the Skild blog only
The sandbox contains the harness, which runs the Python that the agent writes. We provide a policy that sets what the code running in the sandbox can access. In our policy, the agent’s code can write to only one directory. We set the files the concierge uses to answer questions about Skild to read-only, so the agent can use them and cannot change them.
OpenShell denies outbound network connections by default. Our policy allows connections to (1) the language model’s API, (2) the robot’s own local API and (3) the Skild blog, which the concierge reads for our latest updates. OpenShell refuses every other connection, which keeps the agent away from websites where a page could contain text written to take over the agent (a prompt injection). The credential for the language model stays outside the sandbox.
The skills, the hardware drivers, the calibration, the command limits, the stop and the motor enable all stay in that separate process, outside the sandbox. The agent’s code can call them through the API and cannot edit any of them.
What comes next
We are excited to deploy this in places where a robot has to act flexibly. The first deployments are concierges in our own offices in Pittsburgh, San Mateo and Bengaluru, where OpenShell will let the robot get updated information safely, from a restricted set of sources.
OpenShell is a critical piece of infrastructure for this work, and we look forward to working with NVIDIA tools and libraries to deploy coding-agent robots safely in production.