How to Install OpenClaw: Beginner-Friendly Setup Guide
Tutorials

How to Install OpenClaw: Beginner-Friendly Setup Guide

I'll be honest with you — when I first heard about OpenClaw, I almost gave up before starting. All the tutorials I found assumed you already knew what Node.js was, what a command line looked like, and why you'd need a "gateway" for an AI assistant. That wasn't me.

I was just someone who wanted a personal AI agent that could actually do things — search the web, remember my preferences, chat with me through Telegram — without handing over all my data to some company. OpenClaw promised exactly that. But getting it installed felt like solving a puzzle with half the pieces missing.

So I spent weeks going through documentation, Reddit threads, YouTube tutorials, and more than a few failed attempts. I learned what worked and what didn't. I figured out where beginners got stuck and why. And now I'm writing this guide to save you that frustration.

If you want to install OpenClaw without feeling overwhelmed, you're in the right place. I'll walk you through everything from checking your computer to sending your first message to your new AI assistant. Let's get started.

What You Need Before Installing OpenClaw?

Before you run any commands or download anything, let's make sure your computer is ready. OpenClaw isn't like installing an app on your phone — it has specific requirements that your machine needs to meet.

Understanding the Basic Requirements

OpenClaw runs on Node.js, which is essentially a runtime that lets JavaScript code execute on your computer rather than just in a browser. This means you need two things: a compatible operating system and Node.js installed.

The operating systems that work are macOS, Linux, and Windows. But here's something important for Windows users — while OpenClaw technically works on native Windows, the recommended approach is to use WSL2 (Windows Subsystem for Linux). This sounds complicated, but it's actually a free feature built into Windows that lets you run Linux software more reliably. The official OpenClaw documentation strongly suggests WSL2 for Windows users because many issues people face come from trying to use native Windows instead.

For hardware, you don't need anything fancy. If you're just running the AI assistant for personal use with cloud-based models (meaning the heavy computation happens on someone else's servers), the minimum requirements are quite low. You'll want at least a dual-core processor, 4GB of RAM, and about 100GB of storage space. However, if you plan to run everything locally or handle more demanding tasks, aiming for 8GB to 16GB of RAM will give you a much smoother experience.

Checking If Node.js Is Already Installed

Here's something many beginners don't realize — Node.js might already be on your computer. OpenClaw works best with Node.js version 22 or higher, with version 24 being the recommended choice.

To check if you have it, open your terminal (Terminal on Mac, PowerShell on Windows) and type:

node --version

If you see a number like v22.14.0 or v24.x.x, you're good to go. If you see an error or nothing at all, you'll need to install Node.js. The easiest way is to download it from nodejs.org — the LTS version is what you want.

For Mac and Linux users who prefer a more automated approach, you can also use the Node Version Manager (nvm), which lets you install and switch between different Node versions easily. But for most people, the direct download from nodejs.org works perfectly fine.

Getting an API Key Ready

OpenClaw is the framework, but it needs an AI model to actually think and respond. This means you'll need an API key from a model provider. Don't worry — several options have free tiers that are perfectly adequate for getting started.

The main options include Anthropic's Claude (which has a free tier with limited usage), OpenAI's GPT models, Google's Gemini, and various aggregators like OpenRouter that give you access to multiple models through one account. Some providers like Groq offer surprisingly capable free tiers with decent rate limits.

You don't need to decide this perfectly right now — the installation wizard will walk you through choosing a provider and entering your key. But having an idea of which direction you want to go helps.

For Windows Users: Setting Up WSL2

If you're on Windows and plan to use the terminal-based installation (which I recommend), you'll want to set up WSL2 first. Microsoft has made this surprisingly easy.

Open PowerShell as Administrator (right-click the Start menu, choose Terminal (Admin) or Windows PowerShell (Admin)) and run:

wsl --install

Your computer will download and install the Ubuntu Linux distribution along with WSL2. This takes about 10 to 15 minutes depending on your internet speed. Once it finishes, you'll need to restart your computer.

After restart, Ubuntu will open and ask you to create a username and password. This is your Linux environment where you'll be running the OpenClaw commands. Everything from that point forward works identically to how it works on Mac or Linux.

The reason I suggest WSL2 even though native Windows support exists is that the overwhelming majority of tutorials, documentation, and community help assumes you're on a Unix-like system (Mac, Linux, or WSL2). Using WSL2 makes your life significantly easier when something goes wrong and you need to search for solutions.

How to Install OpenClaw Step by Step?

Now that you understand what you need, let's actually install OpenClaw. I'll walk through the recommended installer script method, which handles most of the complexity automatically.

Step 1: Running the Installation Script

Open your terminal. On Mac or Linux, this is the Terminal app. On Windows, open the Ubuntu app (which you just installed with WSL2) or Windows Terminal if you prefer.

Copy and paste this command:

For Mac, Linux, or WSL2:

curl -fsSL https://openclaw.ai/install.sh | bash

For Windows PowerShell (if not using WSL2):

irm https://openclaw.ai/install.ps1 | iex

Press Enter and watch. The installer is smart — it will detect your operating system, check if Node.js is installed, install it if needed, and then install OpenClaw itself. You might see some downloading progress as packages are fetched and installed.

On a typical fast connection, this takes two to five minutes. If you're on a slower connection or the servers are busy, it could take longer. Don't worry if it seems to pause at certain points — it's working.

Step 2: Running the Onboarding Wizard

Once the installation completes, you'll want to run the onboarding process. This is what sets up your gateway, configures your API key, and gets everything ready to run. Type this command:

openclaw onboard --install-daemon

The onboarding wizard will launch and ask you a series of questions. Here's what to expect:

First, it'll ask about the network interface. For a local setup on your own computer, choose the Loopback option (this keeps everything on your machine). If you're setting up a server that you want to access remotely, you'd choose differently, but for most people starting out, loopback is correct.

Next, you'll select your model provider. The wizard typically offers several common options. Choose whichever you have an account with or want to try. If you're unsure, Anthropic (Claude) or OpenRouter are popular choices that work well.

Then comes the API key step. Paste your API key when prompted. The wizard will verify it works before moving on.

Finally, you'll choose whether to install the daemon. Say yes to this — it allows OpenClaw to run in the background so you don't have to keep a terminal window open all the time.

The whole onboarding process takes about five to fifteen minutes depending on how quickly you make decisions and whether everything validates on the first try.

Step 3: Verifying Everything Works

After onboarding completes, let's make sure everything is actually running. Run this command to check your gateway status:

openclaw gateway status

You should see something indicating the gateway is running and listening on port 18789. If you see an error message instead, don't panic — we'll cover troubleshooting in the Common Issues section.

You can also run:

openclaw doctor

This command performs a health check and will tell you if anything looks wrong. Think of it as your first diagnostic tool whenever something isn't working.

Step 4: Opening the Dashboard

One of the nice things about OpenClaw is that it comes with a web-based dashboard where you can chat with your AI assistant and manage settings.

To open it, simply type:

openclaw dashboard

Your default browser will open and take you to http://127.0.0.1:18789. You'll likely see a token prompt — the wizard will have displayed a temporary token during the onboarding process, or you can find it in your configuration. Enter it and you should see the dashboard interface.

If the dashboard opens without errors, congratulations — you've successfully installed OpenClaw.

How to Install OpenClaw Without Any Code?

Not everyone is comfortable with terminals and command lines. Maybe you tried the steps above and found them overwhelming, or maybe you're simply someone who prefers graphical interfaces for everything. Either way, there's good news: you have options.

Understanding the No-Code Options

If the terminal commands above make your head spin, I completely understand. Not everyone wants to deal with command lines, configuration files, and all that technical stuff. Good news — there's a simpler way to get OpenClaw running on your machine.

The easiest option is to use Nut Studio. It's a platform that lets you deploy OpenClaw with just one click. No commands to copy, no configuration to worry about, no technical knowledge required. You literally press a button and OpenClaw is up and running.

One-Click Deployment with Nut Studio

Here's how straightforward it is. First, you head to Nut Studio and create an account if you don't have one already. Then you find the OpenClaw deployment option — it's right there on the dashboard, clearly labeled. You click "Download," and the platform takes care of everything else in the background.

🚀 Nut Studio makes OpenClaw easy to deploy

Nut Studio lets you run OpenClaw with one click, no setup or coding required. Log in to enjoy 30 free points!

Free Download

Nut Studio supports multiple AI providers with free options to get you started. You can connect Telegram, Discord, or other platforms so you can chat with your assistant from your phone. Everything happens through the web interface — no terminal required.

Once deployment completes, your OpenClaw instance is live and ready to use. The whole process takes under five minutes for most people, even if you've never touched anything like this before.

Deployment Speed
5 Seconds
Average Deployment Time
Availability
99.9%
Service Availability Guarantee
Support Team
24/7
Round-the-Clock Technical Support

Common Issues of Installing OpenClaw

Even with a good guide, things sometimes go wrong. Here are the problems I see most often and how to fix them.

"openclaw: command not found" Error

This is probably the most common issue, especially on Windows or after a fresh Node.js installation. The problem is that your terminal can't find the openclaw command because the directory where it's installed isn't in your PATH.

First, verify that Node.js is working by running node --version. If that works, check where npm installs global packages by running npm prefix -g. The openclaw executable should be in the bin directory inside that path.

To fix the PATH issue on Mac or Linux, add this line to your shell configuration file (like ~/.zshrc or ~/.bashrc):

export PATH="$(npm prefix -g)/bin:$PATH"

On Windows with WSL2, the same command works in your ~/.bashrc. Then run source ~/.zshrc or source ~/.bashrc to reload the configuration.

Gateway Won't Start or Port Already in Use

If you see an error about port 18789 being in use or another gateway already running, something else is occupying that port. This could be a previous installation that didn't shut down properly, or another program using that port.

First, check what's using the port with:

lsof -i :18789

Or on Windows:

netstat -ano | findstr :18789

If you see something, you can either stop that program or configure OpenClaw to use a different port. To change the port, edit your configuration file at ~/.openclaw/openclaw.json and add:

"gateway": { "port": 18790 }

Then restart the gateway.

Authentication or API Key Errors

If your AI assistant isn't responding or you're seeing authentication errors, your API key might be invalid, expired, or incorrectly configured.

Double-check that you copied the API key correctly — there shouldn't be any extra spaces or characters. Verify that your API key is still active by logging into your provider's dashboard and checking its status.

Some providers require you to enable API access in their settings. For example, Anthropic requires you to explicitly create an API key through their console — it doesn't happen automatically just because you have an account.

Dashboard Says "Unauthorized"

If the dashboard keeps asking for a token or says unauthorized, there might be a mismatch between the token being used and what the gateway expects.

Try running openclaw dashboard again — this command generates a fresh token each time and opens the correct URL. If you're connecting to a remote gateway, make sure both machines are using compatible authentication settings.

Installation Stuck or Very Slow

Sometimes the installer appears to freeze or takes an unusually long time. This is usually a network issue — the servers might be busy, or your connection might be slow.

You can re-run the installer with verbose output to see what's happening:

curl -fsSL https://openclaw.ai/install.sh | bash -s -- --verbose

The verbose flag will show you exactly what step the installer is on and help identify where it's getting stuck.

What To Do After OpenClaw Installation?

You've got OpenClaw installed and running. Now what? Here's a practical checklist of things to do after your first successful installation.

1 Connect a Messaging Channel

The dashboard is great, but you probably want to talk to your AI assistant from your phone or through an app you already use. Telegram is the easiest channel to set up.

To connect Telegram, you need to create a bot. Open Telegram and search for @BotFather. Send the message "/newbot" and follow the prompts — you'll give your bot a name and get a token. Then in your OpenClaw configuration, add your Telegram bot token.

Once configured, open Telegram, find your bot by searching its name, and send "/start". Your AI assistant should respond. This opens up the ability to message your assistant from anywhere, not just when you're at your computer.

2 Explore Available Skills

OpenClaw comes with skills that extend what your AI assistant can do. Skills are essentially prompt templates and instructions that tell the AI how to handle specific tasks.

Some useful skills to explore include the browser skill (lets your assistant browse websites and take screenshots), the web search skill (for searching the internet), and various calculation and file operation skills. The skill system is one of the things that makes OpenClaw powerful, so spend some time learning what's available.

3 Set Up Memory and Context

A unique thing about OpenClaw is that it can maintain persistent memory across conversations. By default, it stores information in markdown files in your workspace.

You can help your assistant remember things by explicitly asking it to save information to memory. For example, "Please remember that I prefer to be notified about meetings 24 hours in advance." The AI can read and write to memory files, making it genuinely useful for ongoing tasks rather than just one-off questions.

4 Configure for Your Security Needs

Before connecting channels or giving your assistant access to sensitive information, take a moment to review the security settings. The default configuration is reasonable, but you might want to tighten things based on your comfort level.

Consider things like who should be allowed to message your assistant, what commands should require approval before execution, and whether you want your assistant to be accessible from outside your local network.

5 Test with Simple Tasks First

Before relying on OpenClaw for important tasks, test it with simple things first. Ask it to search for something, help you draft an email, or explain a concept. This helps you understand how it responds and where its limitations are.

Notice how it handles errors, how it asks for clarification when something is ambiguous, and how it explains its reasoning. Understanding these behaviors will help you use it more effectively for more complex tasks later.

FAQs About Installing OpenClaw

Do I need a powerful computer to run OpenClaw?

For basic use with cloud-based AI models, no. A computer with 4GB of RAM and a dual-core processor is enough. However, if you want to run local models (everything on your own hardware), you'll need significantly more resources, including a capable GPU with substantial VRAM.

Can I use OpenClaw without any technical knowledge?

Yes, through platforms like Nut Studio that let you deploy OpenClaw with one click. The direct installation does assume some comfort with command-line interfaces, but the no-code alternatives make it accessible to anyone.

Is OpenClaw free to use?

The OpenClaw software itself is free and open-source. However, you'll need to pay for AI model usage through your chosen provider. Many providers have free tiers that are sufficient for personal use, though heavier usage will incur costs.

How long does OpenClaw installation take?

With prerequisites (Node.js) already installed, the installation takes about five minutes. If you need to install Node.js first, add another ten to fifteen minutes. The initial onboarding process takes another five to fifteen minutes depending on how quickly you configure things. Using Nut Studio's one-click deployment cuts this down to under ten minutes total.

What happens if I need to update OpenClaw?

OpenClaw can update itself through the command line. Run openclaw update to fetch and install the latest version. However, updates sometimes introduce breaking changes that require configuration adjustments, so it's a good idea to check the changelog before updating if you're running a stable setup.

Can I run OpenClaw on a server so it's always available?

Yes, this is a common use case. Many people run OpenClaw on a VPS (Virtual Private Server) so the AI assistant is available 24/7 without needing their personal computer to be on. Various hosting providers offer affordable options for this. Nut Studio also handles server deployment if you prefer not to manage it yourself.

Why does OpenClaw need my API key?

OpenClaw is the framework that manages conversations, executes tasks, and coordinates with other services. But the actual AI thinking happens through language models from providers like Anthropic or OpenAI. Your API key gives OpenClaw permission to use those models on your behalf. Think of it as the difference between having a phone (OpenClaw) and having a service plan (the API key).

What if I want to switch AI providers later?

You can change your AI provider and API key at any time through the configuration file or by running the onboarding process again. This flexibility is one of the benefits of the open architecture.

Conclusion

Installing OpenClaw isn't as complicated as it first appears. Once you understand what Node.js is, why you need it, and what the installer script actually does, the process becomes straightforward.

If you're comfortable with command lines, the direct installation gives you the most control and is well-documented. If terminals scare you, Nut Studio's one-click deployment lets you get everything working through a web interface in minutes.

The key things to remember are: make sure you have Node.js 22 or higher, get an API key from a model provider before you start, and don't skip the verification step after installation. Running openclaw doctor and openclaw gateway status takes thirty seconds and confirms everything is working before you try to actually use the assistant.

I found that the people who struggled most with OpenClaw installation were those who jumped in without reading about what they were actually installing. Understanding that OpenClaw is a framework that needs an AI model to think, and that everything runs through a gateway service on your machine, changes how you approach troubleshooting when things go wrong.

Take your time with the initial setup. Once it's working, you'll have a personal AI assistant that respects your privacy, runs on your own hardware, and can be extended in ways that commercial AI assistants simply can't match. For many people, that initial investment of twenty to thirty minutes is one of the most worthwhile technical decisions they'll make.

If you run into issues that this guide doesn't cover, the OpenClaw documentation at docs.openclaw.ai is thorough, and the community (particularly on Discord and Reddit) is generally helpful for troubleshooting specific problems.

Contents