How do I control an SO-101 robot arm with Claude Code or Codex?
Install bot-use, run bu calibrate --yes once, then bu add codex (or bu add claude). The agent gets
the arm as a set of tools (move_to_pose, go_to, grip, pick_at, look, stop) through an MCP server, so you
ask in plain English and it moves the real arm. No servo scripts, and a safety layer sits underneath every move.
Why not just ask Claude to write a script?
That's what I did first, and it's slow. Every session starts from zero: which serial port, which servo is which, which way "closed" is, what the joint limits are. The agent writes a script, you run it, it does something slightly wrong, you describe what happened, it edits the script. And nothing stops a wrong sign from driving the gripper into its end stop.
bot-use keeps all of that in a profile the agent never has to be told about, and returns a short report after every
move that says where the joints ended and what happened (reached, contact, stalled, grasped, missed).
Install it
uv tool install "bot-use[all]" # or run any command with uvx: uvx bot-use add codex
bu doctor # read-only: 6/6 motors, voltage, temperature, error flags
bu calibrate --yes # about 3 minutes, the arm calibrates itself
bu add codex # or: bu add claude, bu add cursor, bu add gemini
Restart the agent, then try:
- "Describe the robot and its current state."
- "Move the base 20 degrees left slowly, then back. Tell me what each move reported."
- "Go to x=24 y=0 z=12, nod, then go back."
What does the agent actually see?
| Tool | What it does |
|---|---|
describe_robot, get_state |
joints and safe ranges, poses, cameras, skills; live angles, tip position, loads |
move_to_pose, go_to, move_joints, nudge |
motion, in degrees or centimetres |
grip, open_gripper, release |
grip closes until it feels the object, then reports grasped or missed |
pick_at, place_at, point_at, wave, go_back, rest, trace, press |
higher-level skills |
look |
a camera image with a labelled grid, the gripper marked, coloured objects boxed |
watch, set_speed, pause, stop |
follow and steer a running motion; stop always works |
After each move it gets a digest like this (real output from the arm):
trace circle x2: done in 8.4s
gripper tip: x=22.4 y=-2.6 z=8.8 cm
health: ok (35 C max, 11.8 V)
Does it work with other agents?
Yes. The same tool set is exposed over MCP (Claude Code, Codex, Cursor, Claude Desktop, ChatGPT through an HTTPS
tunnel), over a JSON HTTP API, and as a headless loop (bu agent "task") for Claude or OpenAI models.
What it doesn't do yet
- Pick-and-place from the camera needs a camera that can see the arm and a one-time camera calibration
(
bu camera find, thenbu setup --camera-only). Without one, the agent works blind with poses and coordinates. - Only the SO-101 has a built-in profile so far.
- Only one program can drive the arm at a time: quit the agent before using
bu teleop.
FAQ
Do I need LeRobot installed? No. bot-use talks to the Feetech STS3215 servos directly. It can read LeRobot calibrations and write LeRobot datasets if you use both.
Which Python version? 3.10 or newer (MuJoCo extras need 3.11+).
Can the agent break the arm? Targets outside the calibrated range are clamped, speeds are capped, and overload, overheat and voltage faults stop motion. It can still bump into things in the workspace: keep it clear.
Does it need a GPU? No. The agent runs in Claude Code or Codex; bot-use itself is a small Python process.
Where are the docs? bot-use.com/docs.html.
By Dheeraj Pai ยท last updated 2026-11-22