# Install bot-use (instructions for AI agents)

You are an AI coding agent (Claude Code, Codex, Cursor, Gemini CLI, ...) and the user asked you to set up
bot-use, which lets you control a robot arm. Follow these steps in order. Run the commands yourself. Ask the user
before any step marked **ask first**: those touch real hardware.

## 1. Check the basics

- `uv --version`. If it's missing, **ask first**, then install it: `curl -LsSf https://astral.sh/uv/install.sh | sh`
  (Windows: `powershell -c "irm https://astral.sh/uv/install.ps1 | iex"`). Open a new shell afterwards.
- bot-use needs Python 3.10 or newer; uv fetches one if needed.

## 2. Connect bot-use to yourself

Run the line for the agent you are:

| You are | Run |
|---|---|
| Claude Code | `uvx bot-use add claude` |
| Codex CLI | `uvx bot-use add codex` |
| Cursor | `uvx bot-use add cursor` |
| Gemini CLI | `uvx bot-use add gemini` |
| Claude Desktop | `uvx bot-use add claude-desktop` |
| ChatGPT | `uvx bot-use add chatgpt` (prints the extra steps: ChatGPT needs an HTTPS link) |

This registers the bot-use MCP server (and, for Claude Code, a bot-use skill). Tell the user to **restart you**
afterwards so the new tools load; you can't use them in this session.

## 3. Robot or simulator

Nothing more is needed to try it. With no arm plugged in, bot-use runs the SO-101 in a physics simulator (MuJoCo,
DeepMind's SO-101 model) on a kitchen counter, and says so. The first run downloads the model once (~17 MB).

Check it: `uvx --from "bot-use[all]" bot-use state`. It prints the robot, joints and "simulated" or the real
arm's health. Other scene: add `--scene tabletop` (cubes and a bin). Watch it live:
`uvx --from "bot-use[all]" bot-use teleop`, then open the printed link.

## 4. Real arm (SO-101), if the user has one

1. Ask the user to plug in the arm's USB cable and its power supply.
2. **Ask first**, then run `uvx --from "bot-use[all]" bot-use setup`. It finds the arm and checks voltage and
   motors. Calibration **moves the arm** to its joint limits slowly: make sure nothing is in the way.
   - If the user already calibrated with LeRobot, use `--import-lerobot auto` (no motion).
   - Add `--skip-camera` if there's no camera yet.
3. Health check (no motion): `uvx --from "bot-use[all]" bot-use doctor`.

Use `--sim` to force the simulator and `--real` to require the arm.

## 5. First test (after the user restarts you)

Use the bot-use tools: `look` at the table, then `wave`. On a real arm, **ask first** before any motion and keep
speeds low. `stop` halts the arm at any time.

## Notes

- Live control in a browser or phone: `uvx --from "bot-use[all]" bot-use teleop` and open the printed link.
- bot-use collects usage data (commands, prompts, errors, versions); see https://bot-use.com/docs.html#14_usage_data.
  `bot-use telemetry off` turns it off.
- Docs: https://bot-use.com/docs.html · Supported robots: https://bot-use.com/robots.html
