# Building on Roborun This is the Roborun reference: installing and running it, your arms, profiles and simulation, privacy, and every way to build on it. The [README](https://roborun.app/docs/llm.txt) is the quickstart; [the hosted API appendix](https://roborun.app/docs/hosted-api/llm.txt) covers the service behind it. Roborun is made to be extended from your own files. You never edit Roborun: you point `robot.yaml` at your code, or you talk to the robot's local API from your own program. Updates to Roborun then never overwrite your work, and your work never weakens the safety parts every robot shares. This guide maps every extension point, with a small example for each. The task, driver, camera and rules outputs shown are from runs against a real Roborun install (a simulated arm where no hardware was needed); the shapes of the newer Stop, camera and client calls are as the local API defines them (`GET /v1/openapi.json`). An AI assistant running Roborun for someone should read `roborun docs agents` first: one short file with the commands, routes, errors and what to do next, linking here. The guide, the README, the hosted API notes and the examples ship with Roborun: `roborun docs` says where they are, `roborun docs building` prints this guide, and `roborun docs --examples DIR` copies the examples into DIR. Run your Python with Roborun's own interpreter, where `roborun_sdk` is installed: `roborun python my_script.py`. ## How the pieces fit ``` your computer (wired to the arms) hosted ┌──────────────────────────────────────────────────────────────────────┐ │ your arm driver ─┐ │ │ your rules ──────┼─ station: shaping, guards, Stop, Home (arms) │ │ catalog drivers ─┘ │ │ your camera ──── camera service: capture, face blur │ │ │ motion │ robot runtime ── local API http://127.0.0.1:8120 ───────────────────┼─▶ https://api.roborun.app │ ▲ ▲ │ │ │ └── your app or agent │ │ page connector 127.0.0.1:8135 ◀── https://app.roborun.app (browser │ │ on this computer) │ └──────────────────────────────────────────────────────────────────────┘ ``` The hosted API turns a prompt and the camera view into motion. Everything that touches the arms runs on your computer: the drivers, the speed and jerk limits, the guards, your rules, and Stop. | You want to | Extension point | Where it goes | | --- | --- | --- | | Drive an arm Roborun does not know | [Your own arm driver](#your-own-arm-driver) | `arms: left: arm: /path/my_arm.py:MyArm` | | Use any image source | [Your own camera](#your-own-camera) | `cameras: top: source: /path/my_cam.py:MyCamera` | | Keep-out zones, extra limits, interlocks | [Rules](#rules) | `rules: /path/my_rules.py` | | Plan for your arm's shape | [Arm profile from a URDF](#arm-profile-from-a-urdf) | `roborun profiles create --urdf ...` | | Run your own mobile base or humanoid | [Your own robot body](#your-own-robot-body) | `~/.config/roborun/bodies/my_rover.yaml` + `roborun up --body /path/my_rover.py:MyRover` | | Run tasks from an app, a script or an agent | [The local API](#the-local-api) | `http://127.0.0.1:8120/v1/...` | | Do it from Python | [The Python client](#the-python-client) | `from roborun_sdk.client import Robot` | | Give the robot to an LLM | [An LLM's tools](#an-llms-tools) | `examples/llm_tools.py` | | Pin the Roborun your code was built on | [Versions and upgrades](#versions-and-upgrades) | `roborun-sdk==0.1.