ゼロから AI アシスタントまで 5 分で
プラットフォームを選んで手順に従うだけ。あっという間に AI と会話できます。
macOS へのインストール
最速の始め方。Node.js 18 以上が必要です。
OpenClaw をインストール
npm install -g openclaw セットアップウィザードを実行
API キーの設定と基本設定をガイドします。
openclaw init Gateway を起動
Gateway は OpenClaw のバックグラウンドサービスで、すべての接続を管理します。
openclaw gateway start 挨拶してみよう!
openclaw chat "Hello! What can you do?" Windows へのインストール
OpenClaw は WSL2(推奨)またはネイティブ Node.js で Windows 上でも快適に動作します。
WSL2 のセットアップ(推奨)
WSL2 がインストールされていない場合は、管理者として PowerShell を開いて実行してください。
wsl --install インストール後にコンピューターを再起動してください。
WSL に Node.js をインストール
WSL ターミナル(Ubuntu)を開いて Node.js をインストールします。
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs OpenClaw をインストール
npm install -g openclaw 初期化して起動
openclaw init
openclaw gateway start
openclaw chat "Hello!" Linux へのインストール
Node.js 18 以上がある任意のディストリビューションで動作します。サーバーに最適!
Node.js をインストール(必要な場合)
"comment"># Ubuntu/Debian
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs
"comment"># Arch
sudo pacman -S nodejs npm OpenClaw をインストール
npm install -g openclaw 初期化して起動
openclaw init
openclaw gateway start 動作確認
openclaw chat "Hello! What can you do?" Docker でのインストール
隔離とデプロイに便利。Docker が動く環境ならどこでも使えます。
イメージを取得
docker pull openclaw/openclaw:latest セットアップウィザードを実行
docker run -it \
-v openclaw-config:/home/openclaw/.openclaw \
openclaw/openclaw:latest init Gateway を起動
docker run -d \
--name openclaw \
--restart unless-stopped \
-v openclaw-config:/home/openclaw/.openclaw \
openclaw/openclaw:latest gateway start チャット開始
docker exec -it openclaw openclaw chat "Hello!" クラウドへのデプロイ
ワンクリックデプロイで常時稼働。
API キーを取得
OpenClaw には使用する AI プロバイダーの API キーが必要です。
トラブルシューティング
よくある問題とその解決方法。
Command not found: openclaw
Make sure npm's global bin directory is in your PATH. Try:
npm config get prefix
Add the returned path + /bin to your shell's PATH variable.
Gateway won't start
Check if the port is already in use. The gateway runs on port 3000 by default.
lsof -i :3000 # macOS/Linux
netstat -ano | findstr :3000 # Windows
You can also try restarting: openclaw gateway restart
API key not working
Verify your API key is correctly set:
openclaw config show
Make sure there are no extra spaces. You can reset it with openclaw init.
WhatsApp QR code not appearing
The WhatsApp QR code is shown in the terminal. Make sure you run the command in a terminal that supports QR display. If issues persist, see the official WhatsApp docs.
まだ解決しない場合は?
🎉 準備完了!
OpenClaw が起動したら、次のステップへ進みましょう。