Software
Stretch AI
By Hello Robot, from github.com/hello-robot/stretch_ai (opens in a new tab)
- Humanoids and robot learning
- Framework
- Apache-2.0
Stretch AI is a software toolkit for building intelligent behaviors on the Stretch 3 mobile manipulator, covering grasping, mapping, navigation, LLM agents, speech, and embodied question answering.
- Archived. The repository is archived on GitHub: read-only, no more changes.
Facts
- GitHub stars
- 251read on 29 Nov 2026
- Last update
- 13 Nov 2026Newest commit on main
- Maintenance
- Archivedthe repository is archived (read-only)
- Difficulty
- Advanced
- Hardware it needs, as the project states it
- Stretch 3 robot from Hello Robot; a computer with an NVIDIA GPU running Ubuntu 22.04 (tested mainly with an NVIDIA GeForce RTX 4090); a microphone on the GPU computer for voice features; a dedicated WiFi access point; optionally the Stretch Dexterous Teleop Kit for learning from demonstration.
Checked on GitHub on 29 Nov 2026.
Licenses
- Code
- Apache-2.0 (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit 4431187 (opens in a new tab), on 15 Nov 2026.
- Commercial use
- Yes
At a glance
- What it is
- Provides code for grasping, manipulation, mapping, navigation, and LLM agents on the Stretch 3 robot.
- Includes text-to-speech and speech-to-text, plus visualization and debugging tools.
- Offers a language-directed pick and place demo where the robot picks up an object and places it in a receptacle described in words.
- Runs a server on the Stretch robot while the AI workloads run on a separate GPU computer over WiFi.
- Supports embodied question answering, where the robot explores its environment to answer user questions.
- Includes learning-from-demonstration support, which requires an optional dexterous teleop kit.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- Apache-2.0. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's README (opens in a new tab)
- Maintenance
- Archived, last commit on 13 Nov 2026.
Use it
How to install it, in the creator's words: The project's README (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/hello-robot/stretch_ai (opens in a new tab)
- The version Robotheca read4431187 (opens in a new tab)
- Latest releaseNone published on GitHub
Robotheca read the repository at two versions: the summary at 6272b28 and the facts and the README at 4431187 (read on 29 Nov 2026).
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by Hello Robot, at commit 4431187, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
Stretch AI
Note: This demo repo is for Stretch RE1, RE2 and SE3. If you are looking for AI capabilities for Stretch 4, please visit https://github.com/hello-robot/stretch4_ai/ (opens in a new tab).
Security notice: It has been reported that there is a known remote execution vulnerability when running the code in this repository. The vulnerability arises from the use of pyzmq's
recv_pyobj()to deserialize incoming messages on port 4402 withpickle. If you are using the transport capabilities in this repository, it is recommended to locally patch this bug, or limit access to the client machine and robot on your network.
(opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab)
Stretch AI is designed to help researchers and developers build intelligent behaviors for the Stretch 3 (opens in a new tab) mobile manipulator from Hello Robot (opens in a new tab). It contains code for:
- grasping
- manipulation
- mapping
- navigation
- LLM agents
- text to speech and speech to text
- visualization and debugging
- embodied question answering
Much of the code is licensed under the Apache 2.0 license. See the LICENSE (opens in a new tab) file for more information. Parts of it are derived from the Meta HomeRobot (opens in a new tab) project and are licensed under the MIT license (opens in a new tab).
Hardware Requirements
We recommend the following hardware to run Stretch AI. Other GPUs and other versions of Stretch may support some of the capabilities found in this repository, but our development and testing have focused on the following hardware.
- Stretch 3 (opens in a new tab) from Hello Robot (opens in a new tab)
- When Checking Hardware,
stretch_system_check.pyshould report that all hardware passes.
- When Checking Hardware,
- Computer with an NVIDIA GPU
- The computer should be running Ubuntu 22.04. Later versions might work, but have not been tested.
- Most of our testing has used a high-end CPU with an NVIDIA GeForce RTX 4090.
- Microphone connected to the GPU computer
- Required when using voice-enabled features such as:
python -m stretch.app.ai_pickup --use_llm --use_voice
- Required when using voice-enabled features such as:
- Dedicated WiFi access point
- Performance depends on high-bandwidth, low-latency wireless communication between the robot and the GPU computer.
- The official Stretch WiFi Access Point (opens in a new tab) provides a tested example.
- (Optional) Stretch Dexterous Teleop Kit (opens in a new tab).
- To use the learning-from-demonstration (LfD) code you'll need the Stretch Dexterous Teleop Kit.
Quick-start Guide
Artificial intelligence (AI) for robots often has complex dependencies, including the need for trained models. Consequently, installing stretch-ai from source can be challenging.
First, you will need to install software on your Stretch robot and another computer with a GPU (GPU computer). Use the following link to go to the installation instructions: Instructions for Installing Stretch AI (opens in a new tab)
Once you've completed this installation, you can start the server on your Stretch robot. Prior to running the script, you need to have homed your robot with stretch_robot_home.py. Then, run the following command:
./scripts/run_stretch_ai_ros2_bridge_server.sh
After this, we recommend trying the Language-Directed Pick and Place demo.
Experimental support for Older Robots
The older model of Stretch, the Stretch RE2, did not have an camera on the gripper. If you want to use this codebase with an older robot, you can purchase a Stretch 2 Upgrade Kit (opens in a new tab) to give your Stretch 2 the capabilities of a Stretch 3. Alternatively, you can run a version of the server with no d405 camera support on your robot.
Note that many demos will not work with this script (including the Language-Directed Pick and Place demo) and learning from demonstration (opens in a new tab). However, you can still run the simple motions demo (opens in a new tab) and view images with this script.
./scripts/run_stretch_ai_ros2_bridge_server.sh --no-d405
Optional: Docker Quickstart
To help you get started more quickly, we provide two pre-built Docker (opens in a new tab) images that you can download and use with two shell scripts.
On your remote machine, you can install docker as normal, then, you can start the client on your GPU computer:
./scripts/run_stretch_ai_gpu_client.sh
This script will download the Docker image and start the container. You will be able to run Stretch AI applications from within the container.
Language-Directed Pick and Place
Now that you have the server running on Stretch, we recommend you try a demonstration of language-directed pick and place.
For this application, Stretch will attempt to pick up an object from the floor and place it inside a nearby receptacle on the floor. You will use words to describe the object and the receptacle that you'd like Stretch to use.
While attempting to perform this task, Stretch will speak to tell you what it is doing. So, it is a good idea to make sure that you have the speaker volume up on your robot. Both the physical knob on Stretch's head and the volume settings on Stretch's computer should be set so that you can hear what Stretch says.
Now, on your GPU computer, run the following commands in the Docker container that you started with the script above.
You need to let the GPU computer know the IP address (#.#.#.#) for your Stretch robot.
./scripts/set_robot_ip.sh #.#.#.#
Please note that it's important that your GPU computer and your Stretch robot be able to communicate via the following ports 4401, 4402, 4403, and 4404. If you're using a firewall, you'll need to open these ports.
Next, run the application on your GPU computer:
python -m stretch.app.ai_pickup
It will first spend time downloading various models that it depends on. Once the program starts, you will be able to bring up a Rerun-based GUI (opens in a new tab) in your web browser.

Then, in the terminal, it will ask you to specify an object and a receptacle. For example, in the example pictured below, the user provided the following descriptions for the object and the receptacle.
Enter the target object: plush rabbit toy
Enter the target receptacle: yellow chair
At Hello Robot, people have successfully commanded the robot to pick up a variety of objects from the floor and place them in nearby containers, such as baskets and boxes.
Find out more about the LLM-based AI agent in its documentation (opens in a new tab). And once you're ready to learn more about Stretch AI, you can try out the variety of applications (apps) (opens in a new tab) that demonstrate various capabilities.
Next Steps
Check out additional documentation for ways to use Stretch AI:
- LLM Agent (opens in a new tab) -- How to use the LLM agent for language-directed pick and place
- Add a New LLM Task (opens in a new tab) -- How to add a new task that can be called by an LLM
- DynaMem (opens in a new tab) -- Run the LLM agent in dynamic scenes, meaning you can walk around and place objects as the robot explores
- Data Collection for Learning from Demonstration (opens in a new tab) -- How to collect data for learning from demonstration
- Embodied Question Answering (opens in a new tab) -- Allow the robot to explore the environment and answer questions from the users about the environment.
- Learning from Demonstration (opens in a new tab) -- How to train and evaluate policies with LfD
- Open-Vocabulary Mobile Manipulation (opens in a new tab) -- Experimental code which can handle more complex language commands
- Apps (opens in a new tab) -- List of many different apps that you can run
- Simple API (opens in a new tab) -- How to use the simple API to control the robot over wireless
Development
Clone this repo on your Stretch and PC, and install it locally using pip with the "editable" flag:
cd stretch_ai/src
pip install -e .[dev]
pre-commit install
Then follow the quickstart section. See CONTRIBUTING.md (opens in a new tab) for more information. There is some information on how to debug (opens in a new tab) and update (opens in a new tab) the codebase.
You can test out most code in the simulation (opens in a new tab) environment, which is a good way to test code without needing a robot.
Updating Code on the Robot
See the update guide (opens in a new tab) for more information. Code installed from git must be updated manually, including code from this repository.
You can also pull the latest docker image on the robot with the following command:
./scripts/run_stretch_ai_ros2_bridge_server.sh --update
Building Docker Images
Docker build and other instructions are located in the docker guide (opens in a new tab). Generally speaking, from the root of the project, you can run the docker build process with:
docker build -t stretch-ai_cuda-11.8:latest .
See the docker guide (opens in a new tab) for more information and troubleshooting advice.
Acknowledgements
Parts of this codebase were derived from the Meta HomeRobot (opens in a new tab) project, and is licensed under the MIT license (opens in a new tab). We thank the Meta team for their contributions.
The stretch_ros2_bridge (opens in a new tab) package is based on the OK robot (opens in a new tab) project's Robot Controller (opens in a new tab), and is licensed under the Apache 2.0 license (opens in a new tab).
We use LeRobot from HuggingFace (opens in a new tab) for imitation learning, though we use our own fork (opens in a new tab).
License
This code is licensed under the Apache 2.0 license. See the LICENSE (opens in a new tab) file for more information.
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.