Complete step-by-step tutorial to install, configure, and run your first OpenClaw AI assistant
This tutorial will guide you through installing and setting up OpenClaw (formerly Moltbot, Clawdbot) from scratch. By the end, you'll have a working AI assistant ready to use. Estimated time: 15-20 minutes.
Before you begin, ensure you have:
We'll use the one-liner installation method, which is the easiest for beginners. It automatically installs Node.js and all dependencies.
curl -fsSL https://openclaw.ai/install.sh | bash
What this does: This single command downloads and runs the OpenClaw installer, which will:
Platform support: Works on macOS, Linux, and Windows (via Git Bash or WSL2).
After installation completes, verify it worked:
openclaw --version
You should see a version number (e.g., 2026.1.29). If you get "command not found", try restarting your terminal or check that Node.js is in your PATH.
The onboarding wizard is the easiest way to set up OpenClaw. It provides an interactive Terminal User Interface (TUI) that guides you through the entire setup process.
openclaw onboard --install-daemon
The wizard will launch an interactive terminal UI and guide you through:
--install-daemon flag installs the Gateway as a background service. On macOS, it uses launchd; on Linux, it uses systemd.
After QuickStart completes, the wizard will prompt you to set up your AI model. The wizard will show you a list of available model providers.
OpenClaw supports multiple AI model providers:
Depending on your chosen provider, you'll authenticate using:
gemini-3-flash) to choose from.
We recommend Anthropic Claude Pro/Max with Opus 4.5 because it offers:
After configuration: Your settings are saved to ~/.clawdbot/moltbot.json (or ~/.openclaw/ for newer installations).
For advanced configuration options, see the Configuration Reference.
After setting up your model and channels, the wizard will ask you to choose how you want to interact with OpenClaw:
Recommended for first-time setup. Everything stays in your terminal. Provides direct, immediate feedback and shows the same conversation flow you'll see in Telegram later.
Web-based dashboard that opens in your browser. Access it via the Web UI link shown in your terminal (typically http://localhost:18789).
For this tutorial, select "Hatch in TUI" to continue with the terminal interface.
When you select "Hatch in TUI", the wizard will ask you some simple questions to personalize your agent:
After answering these questions, your OpenClaw will confirm its setup with a personalized response that reflects the personality you've configured. This is your agent's "hatching" moment!
If you used --install-daemon, the Gateway should already be running. Verify it's active:
openclaw gateway status
If the Gateway isn't running, start it manually:
openclaw gateway --port 18789 --verbose
You should see output indicating the Gateway is running and listening on port 18789.
Now let's verify everything works by sending a test message:
openclaw agent --message "Hello! Can you introduce yourself?"
If you set up a channel (Telegram, WhatsApp, etc.) during onboarding, simply send a message to your bot. It should respond!
Now that you have OpenClaw running, here's what to explore next:
Set up WhatsApp, Telegram, or Discord to chat with your assistant.
Setup Channel →If you encounter issues:
lsof -i :18789node --versionFor more help, see our Troubleshooting Guide or FAQ.