ゼロから AI アシスタントまで 5 分で

プラットフォームを選んで手順に従うだけ。あっという間に AI と会話できます。

macOS へのインストール

最速の始め方。Node.js 18 以上が必要です。

1

OpenClaw をインストール

npm install -g openclaw
2

セットアップウィザードを実行

API キーの設定と基本設定をガイドします。

openclaw init
3

Gateway を起動

Gateway は OpenClaw のバックグラウンドサービスで、すべての接続を管理します。

openclaw gateway start
4

挨拶してみよう!

openclaw chat "Hello! What can you do?"

API キーを取得

OpenClaw には使用する AI プロバイダーの API キーが必要です。

🟢 OpenAI(GPT-4)

  1. platform.openai.com にアクセス
  2. 新しい API キーを作成
  3. openclaw init 実行時にコピー&ペースト

🟣 Anthropic(Claude)

  1. console.anthropic.com にアクセス
  2. API Keys ページへ移動
  3. キーを作成してコピー

🔵 OpenRouter(マルチモデル)

  1. openrouter.ai にアクセス
  2. アカウントを作成してクレジットを追加
  3. API キーをコピー

1つのキーで複数プロバイダーのあらゆるモデルが使えます!

トラブルシューティング

よくある問題とその解決方法。

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 が起動したら、次のステップへ進みましょう。