Are you seeing many YouTube videos about OpenClaw? You're not alone. It is one of the most talked-about tech projects of 2025. OpenClaw is an open-source project that lets you turn your computer, or even a Raspberry PI, into a 24/7 AI agent that works with apps like WhatsApp, Telegram, Discord, Slack, and more.
However, the setup is not always easy. In this guide, you'll find a simple way to install OpenClaw, an explanation of the main steps, and help to avoid common problems.
Why run OpenClaw on a Raspberry PI π
In a typical setup, OpenClaw can have access to manage the computer where the gateway is running. For that reason, it is a good idea to isolate this service on a separate machine, away from your personal documents, files, and other sensitive information.
You could run OpenClaw on a VPS (Virtual Private Server) or use a cloud provider that offers a custom solution. However, if you already have a Raspberry Pi at home, this is a great chance to use it again and save money, since you don't need to pay for external infrastructure.
Prerequisites π§°
Before getting started, make sure you have the following items ready:
- Host Computer: This is the main computer you will use to flash the operating system to the Raspberry PI SD card and run a few additional commands.
- Raspberry Pi: You will use this device to install the OpenClaw gateway, which will connect to your main apps like WhatsApp or Telegram.
- Subscription to OpenAI: You will need access to OpenAI so you can use the latest model, GPT-5.4.
Preparing the Raspberry Pi 4
In this step, you will install the operating system on your Raspberry Pi SD card, but if your card already has an OS installed, you can skip this section and continue to the next one.
To install the operating system, you will need a tool called Raspberry Pi Imager, which is the official software provided by the Raspberry PI Foundation.
On your host computer (your main computer, not the Raspberry Pi), download the official software, insert the SD card, and follow the next steps to go through the configuration:
- Select your Raspberry Pi device: Here, you need to choose the correct Raspberry Pi model. In this guide, the device used is a Raspberry Pi 4, but make sure to select the correct version if you are using another model.
- Choose operating system: It's important to choose a 64-bit operating system. Otherwise, OpenClaw will not install. Select "Raspberry Pi OS (64-bit)".
- Select your storage device: Be careful to choose the correct SD card; selecting the wrong device may format another storage device connected to the computer. In this example, the correct device is named "Genesys TF USB3 Reader Media".
- Customisation: Choose a hostname: Select the name that will be used for the Raspberry PI. In this guide, the hostname "raspberrypi48" is used.
- Customisation: Localisation: Select the correct city, time zone, and keyboard layout based on the location and personal preferences.
- Customisation: Choose username: This step is important because it creates the user account for the Raspberry Pi operating system. Choose a username and password, and save them carefully, since they will be needed later to connect through SSH or log in directly on the device. In this guide, the username `tiagocodepi48`is used.
- Customisation: Choose Wi-Fi: Enter the name of the Wi-Fi network and its password so the Raspberry Pi can connect to the internet as soon as it starts.
- Customisation: SSH authentication: Enable SSH and add the SSH keys. If SSH keys are not available yet on your host machine, a separate tutorial can be followed to create them before continuing with this step. Github Docs - Generating a new SSH key.
- Customisation: Raspberry Pi Connect: This step is optional, but Raspberry Pi Connect is an excellent tool that allows the acess to the device through screen sharing or SSH from a web browser. In this guide, it is only used to connect through screen sharing after the SD card is inserted. Just confirm that the operating system has booted correctly. This step is fully optional. The same check can also be done by connecting to the Raspberry Pi to a monitor or by accessing it directly through SSH.
- Write image: At this point, a summary of the selected configuration will be shown. Click the "Write" button to start writing the operating system to the SD card. The system may ask for the host computer password before starting the process.
Write complete!
This is the confirmation message shown when the writing process has finished successfully. At this point, the SD card can be removed from the host computer and inserted into the Raspberry Pi. The device can then be powered on. π
If Raspberry Pi Connect was enabled in the previous steps, it can now be used to access the device through screen sharing and confirm that the system has booted correctly.
Open Raspberry Pi Connect, sign in with the corresponding account, locate the device named. "raspberrypi48", and connect through screen sharing. At this point, the Raspberry Pi OS desktop should be visible, which confirms that the system has booted successfully.
Configuring OpenClaw πΎ
In this section, the Raspberry Pi will be accessed through SSH, and the OpenClaw installer script will be used to configure the OpenClaw Gateway.
The gateway works as a connection point between the messaging applications, such as WhatsApp, Telegram, and others, and AI coding agents like OpenAI GPT-5.4. Since it can control the machine where it runs, this guide uses a Raspberry Pi 4 as an isolated device for that purpose.
Connect to the Raspberry PI via SSH
To connect via SSH to your Raspberry Pi 4, use the following command, where `tiagocodepi48` is the username configured when burning the Raspberry Pi OS, and `192.168.8.18` is the IP address assigned to the Raspberry Pi 4 in the local network. Keep in mind that the IP address may be different in your case.
ssh [email protected]If you configured the SSH properly and the username in the OS, you should see the following message after running the previous command:
Update the operating system and packages
Before installing OpenClaw, it is good practice to update the operating system packages. Run the following command and wait until the process finishes. This may take a few minutes. βοΈ
sudo apt-get update && sudo apt-get upgrade -yInstall OpenClaw
At this stage, OpenClaw can be installed by running the installation script provided in the project's official documentation.
This script identifies the operating system, installs the required dependencies, and prompts for input whenever additional information is needed during the setup process.
curl -fsSL https://openclaw.ai/install.sh | bashAccept security disclaimer
During the installation process, OpenClaw will display a security disclaimer. This step should not be ignored.
OpenClaw is still in beta and may be vulnerable to prompt injection or other security issues if it's not configured carefully. For that reason, the disclaimer should be considered before enabling tools or granting permissions that could expose the machine to unnecessary risk.
Once all the points have been reviewed and understood, select "yes" to continue with the installation.
Select the onboarding mode
For this guide, select the option "manual", since it allows some configuration values to be adjusted according to the needs of the setup and to understand what you are configuring.
Manual configurations
At this stage, the installer will ask for a few values that must be configured manually. The following options are used in this guide.
- What do you want to set up?: Select "Local gateway (this machine).
- Workspace directory: The default directory proposed by the installer can be kept `/home/tiagocodepi48/.openclaw/workspace`.
- Model/auth provider: Select "OpenAI", since GPT-5.4 is used in this setup.
- OpenAI auth method: Select "OpenAI Codex (ChatGPT OAuth)", or choose the authentication method that best fits the intended setup.
Authenticating with OpenAI Codex OAuth
After "OpenAI Codex (ChatGPT OAuth)" is selected, the installer will display a long URL. That URL must be copied and opened in the web browserof the host machine, not on the Raspberry Pi.
The browser will then redirect to the OpenAI's login page. Sin in using the preferred method, such as Google, Apple, Microsoft, or phone login. After the login is completed, and the confirmation message is accepted, the browser will redirect to a page showing an error such as "This site can't be reached."
This is expected β . At that point, copy the full URL from the browser address bar. It should look similar to this:
http://localhost:1455/auth/callback?code=...&scope=openid+profile+email+offline_access&state=...Then return to the terminal session connected to the Raspberry Pi and paste that full URL when the installer shows the message "Paste the redirect URL".
Select the default AI model
At this stage, the model powering the 24/7 agent must be selected. Choosing the latest frontier model is usually the best option when the goal is to get the strongest overall performance and capabilities. In this guide, GPT-5.4 is used.
More manual configurations
The installer will now ask for a few additional configuration values. The following settings are used in this guide.
- Gateway port: Leave the default, `18879`. This is the port where the gateway listens for connections.
- Gateway bind: Select "Loopback (127.0.0.1)". With this option, the gateway only accepts local connections from the Raspberry Pi itself, which is a safer default for an isolated setup.
- Gateway auth: Leave the default "Token". This means that any client or service connecting to the gateway must provide a valid authentication token.
- Tailscale exposure: Select "Off".
- How do you want to provide the gateway token?: Select "Generate/store plaintext token". This option generates the token automatically and stores it locally in plain text.
- Gateway token (blank to generate): Leave this field empty, and press Enter to let the installer generatge the token automatically.
Creating a Telegram bot
The creation of the bot must be completed from the Telegram app on the main machine (not the Raspberry Pi) or on a mobile phone. Before Telegram can be configured in OpenClaw, a bot must be created, and its token must be obtained, so the gateway can connect to it.
Then, open your Telegram app and search for "@BotFather" in the search bar. Once the "BotFather" appears in the results, click on the "Open" button. A pop-up will appear, and you need to click on the "Launch" button.
Next, another pop-up will appear. Click the "Create a New Bot" button and complete the required information:
- Image: Choose a desired image for your bot.
- Name: Enter the name that will be assigned to the bot. In this guide, the bot is named "Clawsi".
- Description: Enter a short description for the bot. In this example, the description is "It's my personal assistant connected to OpenClaw".
- Username: Enter a unique username for the Telegram bot. In this guide, the username is "ClawsiOpenClawBot".
Then click "Create bot". Once the bot has been created, the token will appear on the screen. Copy it, since it will be required in the next steps of the OpenClaw installer.
Configure the messaging app
The next step is to set the configuration to connect Telegram to the OpenClaw gateway running on the Raspberry Pi. After these steps and one more command at the end of the installation, the bot will be able to receive messages and send them to the agent.
During the installation process, choose the following options:
- Configure chat channels now?: Select the option "Yes".
- Select a channel: Select the option "Telegram (Bot API)".
- How do you want to provide this Telegram bot token?: Select "Enter Telegram bot token".
- Enter Telegram bot token: At this moment, you'll be prompted to enter the token generated in the section "Creating a Telegram bot".
- Select a channel: This option will appear again. This time, select "Finished" to continue.
- Configure DM access policies now? (default: pairing): Select the option "No" and press Enter to continue.


































