OrbStack "Machines" are lightweight Linux VMs (using LXD) that are perfect for running background services like OpenClaw.
- Open OrbStack on your Mac.
- Create a New Machine:
- Click the "Machines" tab on the sidebar.
- Click "New Machine" (or the
+icon). - Choose Ubuntu 24.04 (recommended) or Debian.
- Give it a name (e.g.,
openclaw-vm).
- Configure Resources:
- OpenClaw performs best with at least 2GB of RAM. OrbStack usually manages this dynamically, but ensure your global settings allow it.
- Start the Machine: Once created, click the play button or double-click the machine name to open a terminal inside the VM.
The easiest way to install the AI assistant is via the official installation script.
-
Inside the OrbStack terminal, run the following command to download and install OpenClaw:
curl -fsSL https://openclaw.bot/install.sh | bash(Note: If the command above fails, ensure
curlis installed:sudo apt update && sudo apt install curl -y) -
Run the Onboarding Wizard: After installation, start the interactive setup:
openclaw onboard --install-daemon
This wizard will ask you for:
- AI Provider: You will need an API key (OpenAI, Anthropic/Claude, or local via Ollama).
- Messaging Channels: Follow the prompts if you want to connect it to WhatsApp, Telegram, or Discord.
- Persistence: Setting it as a "daemon" ensures it stays running in the background of your OrbStack VM.
OrbStack automatically handles networking between your Mac and the VM.
- OpenClaw runs a web dashboard on port 18789 by default.
- On your Mac's browser (Chrome/Safari), go to:
http://openclaw-vm.local:18789(Replaceopenclaw-vmwith whatever name you gave your machine in OrbStack). - If that doesn't work, you can use the internal IP or
localhost:18789if OrbStack is port-forwarding (check the "Network" tab in OrbStack for the specific machine).
- Docker Approach: If you prefer using Docker, OrbStack is a drop-in replacement for Docker Desktop. You can simply run the OpenClaw Docker image directly in the "Containers" tab instead of creating a full VM.
- Permissions: OpenClaw often asks for "full computer access." Since it’s inside an OrbStack VM, it is sandboxed from your main macOS files unless you explicitly mount them. This is a great way to test the agent safely.
- File Access: You can access your Mac files inside the VM at
/mnt/mac. If OpenClaw needs to read your documents to help you, you can point it to that directory.
If you wanted to play the 1997 game reimplementation:
- In your OrbStack Ubuntu VM, install the dependencies:
sudo apt install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-gfx-dev
- Download the latest
.debpackage from the OpenClaw GitHub releases. - Note: OrbStack does not support GUI/Graphical apps out-of-the-box. To see the game, you would need to install an X11 server like XQuartz on your Mac and export the display from the VM, or use NoMachine/VNC.