OpenClaw チートシート

インストール / コアコマンド / ワークスペース構造 / スラッシュコマンド クイックリファレンス

クイックスタート

インストール + 初回実行

curl -fsSL https://openclaw.ai/install.sh | bash
openclaw onboard --install-daemon
openclaw doctor
openclaw status
openclaw health
openclaw dashboard

日常オペレーション

openclaw doctor
openclaw status --all
openclaw logs --follow

よく使うスラッシュコマンド

/status
/new
/compact
/model
/stop
/think
インストール

ワンライナーインストール(推奨)

macOS / Linux

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

Windows(PowerShell)

iwr -useb https://openclaw.ai/install.ps1 | iex

オンボーディングをスキップした場合

openclaw onboard --install-daemon

手動インストール(Node.js)

npm または pnpm

npm install -g openclaw@latest
# or
pnpm add -g openclaw@latest

openclaw onboard --install-daemon

sharpビルドエラーの修正

SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install -g openclaw@latest

システム要件

  • Node >= 22
  • macOS、Linux、または Windows(WSL2)
ゲートウェイ

ゲートウェイの実行

openclaw gateway --port 18789

システムサービスとして管理

openclaw gateway service status
openclaw gateway service install
openclaw gateway service start
openclaw gateway service stop
openclaw gateway service restart

ゲートウェイログ

openclaw logs --follow
openclaw logs --limit 200
openclaw logs --plain
openclaw logs --json
チャンネル

WhatsApp ログイン

openclaw channels login
openclaw channels logout

チャンネルアカウントの追加

openclaw channels add --channel telegram --account alerts --name "Alerts Bot" --token $TELEGRAM_BOT_TOKEN
openclaw channels add --channel discord --account work --name "Work Bot" --token $DISCORD_BOT_TOKEN

チャンネルステータス

openclaw channels status
openclaw channels status --probe
診断

ヘルスチェック

openclaw doctor
openclaw status
openclaw health --json
openclaw dashboard

詳細診断

openclaw doctor --deep
openclaw status --all
openclaw status --deep
モデルと認証

モデルの一覧と切り替え

openclaw models list
openclaw models status
openclaw models set <model>

認証

openclaw models auth add
openclaw models auth setup-token --provider anthropic
openclaw models auth paste-token --provider <provider>
スキルとプラグイン

スキル

openclaw skills list
openclaw skills info <name>
openclaw skills check

プラグイン

openclaw plugins list
openclaw plugins install <path|.tgz|npm-spec>
openclaw plugins enable <id>
openclaw plugins disable <id>
openclaw plugins doctor

メモリ

openclaw memory status
openclaw memory index
openclaw memory search "<query>"
ブラウザ

ブラウザ自動化

openclaw browser status
openclaw browser start
openclaw browser tabs
openclaw browser open https://example.com
openclaw browser snapshot
openclaw browser screenshot
スラッシュコマンド

コマンドはGatewayで処理されます。ほとんどは単独のメッセージとして送信してください。

コマンド

ステータス、プロバイダークォータを表示
IDを表示(エイリアス:/id)
新しいセッション(/new [model])
コンテキストを圧縮
モデルの切り替え/一覧
現在の実行を中止
再起動(commands.restart: true が必要)

ディレクティブ(セッショントグル)

思考強度
詳細出力
推論メッセージ
昇格モード
ツール実行ルーティング

Bash(デフォルト無効)

ホストシェルを実行(commands.bash: true が必要)
バックグラウンドbashタスクの表示/停止
ワークスペース

ワークスペースはエージェントの「ホーム」で、コンテキストとして読み書きされます。状態ディレクトリには設定、資格情報、セッション、インデックスが保存されます。

デフォルトの場所

状態ルートディレクトリ
デフォルトワークスペース
マルチプロファイル
開発分離

主要ワークスペースファイル

AGENTS.mdエージェントへの高レベル指示(行動/目標)
SOUL.mdペルソナ(アイデンティティ、トーン、境界)
USER.mdユーザーの好み/背景
IDENTITY.mdID情報(初回起動時に書き込み)
TOOLS.md現在のマシン/スキル関連の環境メモ
HEARTBEAT.mdハートビートタスク指示(アクティブモード)
BOOTSTRAP.md初回Q&A;セットアップ後に削除
memory/YYYY-MM-DD.md日次メモリ(追記のみ);今日+昨日を読み込み
MEMORY.md長期メモリ(オプション;プライベートメインセッションのみ)

openclaw setup
パスリファレンス
メイン設定(state)
資格情報(state)
セッション(state)
ログ(デフォルト)
メモリインデックス(SQLite)
Cronジョブ
Cronジョブ

ジョブは ~/.openclaw/cron/jobs.json に保存され、Gateway再起動後も保持されます。実行場所は 'main'(システムイベント)または 'isolated'(独立セッション)。

Cronジョブの管理

openclaw cron list
openclaw cron status
openclaw cron add --name "Reminder" --at "20m" --session main --system-event "Reminder: ..." --wake now
openclaw cron run <jobId> --force
openclaw cron runs --id <jobId>
トラブルシューティング

DMの返信がない?

ペアリング/許可リストの問題の可能性が高い

openclaw pairing list whatsapp
openclaw pairing approve whatsapp <code> --notify

グループチャットで無言?

routing.groupChat.mentionPatterns と requireMention の設定を確認。/status を送信してテスト。

ゲートウェイがダウン?

詳細診断を実行

openclaw doctor --deep
openclaw status --deep

メモリ検索が不正確?

インデックスを再構築

openclaw memory index
openclaw memory status