0Pricing
OpenClaw Academy · Lesson

Install the OpenClaw CLI

Install globally with npm install -g openclaw@latest, or use the one-line curl install script from the homepage.

Install the OpenClaw CLI is a free OpenClaw Academy lesson on CoddyKit — lesson 2 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the OpenClaw Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Time to Install

With your prerequisites ready, installing OpenClaw is one short step. The install puts the openclaw command on your machine so you can run it from anywhere.

The npm Way

The standard method uses npm, which comes bundled with Node. It downloads OpenClaw from the npm registry and sets it up for you.

Install Globally

Run this command to install OpenClaw. The -g flag installs it globally, so the openclaw command works from any folder.

npm install -g openclaw@latest

What @latest Means

The @latest tag tells npm to grab the newest published release. You always start on the current version instead of an old cached one.

The One-Line Script

Prefer not to use npm directly? The homepage offers a curl install script that does the setup for you in a single line.

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

Reading the curl Flags

In that one-liner, -fsSL makes curl fail quietly on errors and follow redirects, then bash runs the downloaded script. Both methods reach the same place.

npm or curl

Either path works, so pick what fits you. The choice is just preference: npm if you manage Node packages, curl for a quick hands-off setup.

Why Install Once, Run Anywhere

A global install registers a single openclaw command. From then on you type openclaw in any terminal without reinstalling per project.

Confirm It Landed

After installing, check that the command exists. Running openclaw --version prints the installed version and proves the install worked.

openclaw --version

If the Command Is Missing

If your shell cannot find openclaw, the global npm bin folder may not be on your PATH. Reopening the terminal often picks up the new command.

Installed, Not Configured Yet

Installing only places the tool on disk. The next stage, onboarding, is where you actually wire up the daemon and your channels.

Quick Check

Which command installs OpenClaw globally via npm?

Recap

You can now install OpenClaw two ways: npm install -g openclaw@latest or the curl one-liner. A quick --version check confirms it is ready to onboard. ⚙️

Frequently asked questions

Is the “Install the OpenClaw CLI” lesson free?

Yes — the full text of “Install the OpenClaw CLI” is free to read here on the web, and the OpenClaw Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the OpenClaw Academy course, upgrade to CoddyKit PRO.

What will I learn in “Install the OpenClaw CLI”?

Install globally with npm install -g openclaw@latest, or use the one-line curl install script from the homepage. You practise OpenClaw Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start OpenClaw Academy?

No prior experience is required. OpenClaw Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 2 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Install the OpenClaw CLI” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this OpenClaw Academy lesson?

Yes. Every OpenClaw Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Check Your Prerequisites
  2. Install the OpenClaw CLI
  3. Run the Onboarding Wizard
  4. Open the Local Dashboard
← Back to OpenClaw Academy