Getting Started with OpenClaw
Complete step-by-step tutorial to install, configure, and run your first OpenClaw AI assistant
Complete step-by-step tutorial to install, configure, and run your first OpenClaw AI assistant
I walked through this setup myself when I first installed OpenClawβhere's what actually works. You'll go from zero to a running assistant in about 15β20 minutes. We'll use the one-liner installer and the onboard wizard; you can tweak things later.
Command not found after install: Restart your terminal (or open a new tab). The installer adds OpenClaw to your PATH, but existing sessions don't see it until you reload.
Wizard hangs or QR code expires: Channel linking (Telegram, WhatsApp) can time out. Just run openclaw onboard again and pick the same channel; you don't have to redo everything.
Gateway won't start: Run openclaw doctor --fix. If you see port or token errors, check the Troubleshooting guideβmost issues are fixable in a few steps.
Alternatively, use the Setup Wizard in your browser to get install and config steps with downloadable scripts, then add channels or skills from the same flow.
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).
ollama launch openclaw --model kimi-k2.5:cloud. One command installs OpenClaw, configures the model, and starts the gateway. See the Ollama + OpenClaw tutorial.
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.6 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 βExtend functionality with community-built skills from ClawHub.
Browse Skills βIf you encounter issues:
lsof -i :18789node --versionFor more help, see our Troubleshooting Guide or FAQ.